Update Linked Appointment for trips
End-point to regenerate trip-view for all trips that have a linked appointment from scheduler integration. This, clubbed with the changes to populate linked appointment UUID in maria model, and to map that linked appointment UUID in mongo, will populate the linked appointment UUIDs in mongo for these trips.
Header Parameters
authorization string required
Base64 encoded basic auth
application/json
Request Body required
request
dealerDepartmentUUIDList string[]
endAppointmentTime string
The end of the date range in which trip must be present, in yyyy-MM-dd'T'HH:mm:ssZ format
requesterUserUUID string
source string
Possible values: [DEALER_APP
, WEB
, PND_API
, EXTERNAL_CONTROLLER
]
startAppointmentTime string
The start of the date range in which trip must be present, in yyyy-MM-dd'T'HH:mm:ssZ format
Responses
- 200
- 201
- 401
- 403
- 404
OK
application/json
Schema
Example (from schema)
Schema
error object
statusCode int32
warnings object[]
{
"error": {
"errorCode": "string",
"errorDescription": "string",
"metadata": {}
},
"statusCode": 0,
"warnings": [
{
"warningCode": "string",
"warningDescription": "string"
}
]
}
Created
Unauthorized
Forbidden
Not Found
POST /v3/configure/appointment-with-trip/link
Request
Request
curl / cURL
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/configure/appointment-with-trip/link' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"dealerDepartmentUUIDList": [
"string"
],
"endAppointmentTime": "string",
"requesterUserUUID": "string",
"source": "DEALER_APP",
"startAppointmentTime": "string"
}'
python / requests
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/configure/appointment-with-trip/link' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"dealerDepartmentUUIDList": [
"string"
],
"endAppointmentTime": "string",
"requesterUserUUID": "string",
"source": "DEALER_APP",
"startAppointmentTime": "string"
}'
go / native
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/configure/appointment-with-trip/link' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"dealerDepartmentUUIDList": [
"string"
],
"endAppointmentTime": "string",
"requesterUserUUID": "string",
"source": "DEALER_APP",
"startAppointmentTime": "string"
}'
nodejs / axios
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/configure/appointment-with-trip/link' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"dealerDepartmentUUIDList": [
"string"
],
"endAppointmentTime": "string",
"requesterUserUUID": "string",
"source": "DEALER_APP",
"startAppointmentTime": "string"
}'
ruby / Net::HTTP
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/configure/appointment-with-trip/link' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"dealerDepartmentUUIDList": [
"string"
],
"endAppointmentTime": "string",
"requesterUserUUID": "string",
"source": "DEALER_APP",
"startAppointmentTime": "string"
}'
csharp / RestSharp
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/configure/appointment-with-trip/link' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"dealerDepartmentUUIDList": [
"string"
],
"endAppointmentTime": "string",
"requesterUserUUID": "string",
"source": "DEALER_APP",
"startAppointmentTime": "string"
}'
php / cURL
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/configure/appointment-with-trip/link' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"dealerDepartmentUUIDList": [
"string"
],
"endAppointmentTime": "string",
"requesterUserUUID": "string",
"source": "DEALER_APP",
"startAppointmentTime": "string"
}'
java / OkHttp
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/configure/appointment-with-trip/link' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"dealerDepartmentUUIDList": [
"string"
],
"endAppointmentTime": "string",
"requesterUserUUID": "string",
"source": "DEALER_APP",
"startAppointmentTime": "string"
}'
powershell / RestMethod
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/configure/appointment-with-trip/link' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"dealerDepartmentUUIDList": [
"string"
],
"endAppointmentTime": "string",
"requesterUserUUID": "string",
"source": "DEALER_APP",
"startAppointmentTime": "string"
}'