Skip to content

Fleet Dispatch Payload

Request

Payload for sending fleet app dispatches. In this case, we send the payload to an external endpoint for processing.

By default, we send our standard FleetDispatch schema, but the body can also be a custom mapped format.

Bodyapplication/jsonrequired
Any of:
operationstring(DispatchOperation)required
Enum:"CREATE""UPDATE""CANCEL"
payloadobject(FleetDispatchOutput)required
POST
https://<external-fleet-receiving-endpoint>
{ "operation": "CREATE", "payload": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "orders": [], "custom_fields": {}, "resource_allocations": [], "stop_groups": [], "templates": [] } }

Responses

Successful Response

Bodyapplication/json
Any of:

Response schema for the subcontractor dispatch payload. This schema is used to return errors or success messages.

errorsArray of objects or null(Errors)
Any of:

List of errors that occurred during the webhook processing. If empty/omitted, the webhook was processed successfully.

Response
{ "errors": { "error_message": "The payload is invalid.", "error_type": "USER_INPUT_ERROR" } }