Update offline date
End-point to update signature and inspection done in offline mode for a trip. This end-point could also be used to add signature and inspection separately.
Path Parameters
tripUUID string required
Unique identifier for a trip
Header Parameters
authorization string required
Base64 encoded basic auth
application/json
Request Body required
Update offline request
dealerDepartmentUUIDList string[]
inspections object[]
requesterUserUUID string
signatureUrl string
source string
Possible values: [DEALER_APP
, WEB
, PND_API
, EXTERNAL_CONTROLLER
]
Responses
- 200
- 201
- 401
- 403
- 404
OK
application/json
Schema
Example (from schema)
Schema
error object
status boolean
statusCode int32
warnings object[]
{
"error": {
"errorCode": "string",
"errorDescription": "string",
"metadata": {}
},
"status": true,
"statusCode": 0,
"warnings": [
{
"warningCode": "string",
"warningDescription": "string"
}
]
}
Created
Unauthorized
Forbidden
Not Found
POST /v3/trip/:tripUUID/offline/update
Request
Request
curl / cURL
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/trip/:tripUUID/offline/update' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"dealerDepartmentUUIDList": [
"string"
],
"inspections": [
{
"inspectionType": "CUSTOMER_VEHICLE",
"inspectionUuid": "string"
}
],
"requesterUserUUID": "string",
"signatureUrl": "string",
"source": "DEALER_APP"
}'
python / requests
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/trip/:tripUUID/offline/update' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"dealerDepartmentUUIDList": [
"string"
],
"inspections": [
{
"inspectionType": "CUSTOMER_VEHICLE",
"inspectionUuid": "string"
}
],
"requesterUserUUID": "string",
"signatureUrl": "string",
"source": "DEALER_APP"
}'
go / native
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/trip/:tripUUID/offline/update' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"dealerDepartmentUUIDList": [
"string"
],
"inspections": [
{
"inspectionType": "CUSTOMER_VEHICLE",
"inspectionUuid": "string"
}
],
"requesterUserUUID": "string",
"signatureUrl": "string",
"source": "DEALER_APP"
}'
nodejs / axios
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/trip/:tripUUID/offline/update' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"dealerDepartmentUUIDList": [
"string"
],
"inspections": [
{
"inspectionType": "CUSTOMER_VEHICLE",
"inspectionUuid": "string"
}
],
"requesterUserUUID": "string",
"signatureUrl": "string",
"source": "DEALER_APP"
}'
ruby / Net::HTTP
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/trip/:tripUUID/offline/update' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"dealerDepartmentUUIDList": [
"string"
],
"inspections": [
{
"inspectionType": "CUSTOMER_VEHICLE",
"inspectionUuid": "string"
}
],
"requesterUserUUID": "string",
"signatureUrl": "string",
"source": "DEALER_APP"
}'
csharp / RestSharp
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/trip/:tripUUID/offline/update' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"dealerDepartmentUUIDList": [
"string"
],
"inspections": [
{
"inspectionType": "CUSTOMER_VEHICLE",
"inspectionUuid": "string"
}
],
"requesterUserUUID": "string",
"signatureUrl": "string",
"source": "DEALER_APP"
}'
php / cURL
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/trip/:tripUUID/offline/update' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"dealerDepartmentUUIDList": [
"string"
],
"inspections": [
{
"inspectionType": "CUSTOMER_VEHICLE",
"inspectionUuid": "string"
}
],
"requesterUserUUID": "string",
"signatureUrl": "string",
"source": "DEALER_APP"
}'
java / OkHttp
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/trip/:tripUUID/offline/update' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"dealerDepartmentUUIDList": [
"string"
],
"inspections": [
{
"inspectionType": "CUSTOMER_VEHICLE",
"inspectionUuid": "string"
}
],
"requesterUserUUID": "string",
"signatureUrl": "string",
"source": "DEALER_APP"
}'
powershell / RestMethod
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/trip/:tripUUID/offline/update' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"dealerDepartmentUUIDList": [
"string"
],
"inspections": [
{
"inspectionType": "CUSTOMER_VEHICLE",
"inspectionUuid": "string"
}
],
"requesterUserUUID": "string",
"signatureUrl": "string",
"source": "DEALER_APP"
}'