Get Tasks Definition
Retrieves the details of a specific task definition for an order. This endpoint is used to view the structure and requirements of tasks that can be created for orders.
Retrieves the details of a specific task definition for an order. This endpoint is used to view the structure and requirements of tasks that can be created for orders.
In: header
Path Parameters
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/orders/tasks-definitions/string"{ "task_definition_id": "c1d2e3f4-5a6b-7c8d-9e0f-1a2b3c4d5e6f", "label": "order_tasks_definition 1", "tasks": [ { "label": "order_summary", "description": "Generate order summary for order 001", "priority": "high" }, { "label": "order_billing_summary", "description": "Generate billing summary for order 001", "priority": "medium" } ], "created_at": "2023-10-01T12:00:00Z", "updated_at": "2023-10-01T12:00:00Z"}{ "detail": {}, "message": "string"}{ "detail": {}, "message": "string"}Get estimated route polyline GET
Retrieve the route polyline for an estimated route by its ID. The `estimated_route_id` is provided in `eta_change` and `eta_change_v2` webhooks. Use this endpoint to fetch the route polyline that was used for the ETA calculation. The response includes: - The route polyline as a GeoJSON LineString - Start and end locations - Total distance (meters) and duration (seconds) of the route
Update Tasks Definition PATCH
Updates an existing task definition for an order. This endpoint is used to modify the structure and requirements of tasks that can be created for orders.