Code | Description |
---|---|
404 | Resource Not Found |
422 | Validation Error |
500 | Internal Server Error |
curl 'https://app.octopi.co/api/v1/service_orders/ORDER_NUMBER/service_order_items/ORDER_ITEM_ID' \ -X 'PUT' \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ -H 'Authorization: Token token=YOURTOKEN' \ -d '{ "service_order_item": { "container_id": 4337700, "service_id": "inspection" } }'
{ "order_number": "API_TEST_003", "id": 80, "status": "pending", "container_id": 4337700, "container_number": "0317933", "service_type": "default", "service_id": "inspection", "service_name": "Inspection (Default)" }
Param name | Description |
---|---|
order_number required |
Octopi ID or the unique service order number given while creating one. Validations:
|
id required |
Octopi ID of the service order item. Validations:
|
service_order_item optional |
Validations:
|
service_order_item[container_id] required |
Octopi ID of any container or breakbulk. Validations:
|
service_order_item[service_id] required |
default or custom service IDs provided by Octopi. Validations:
|