| Code | Description |
|---|---|
| 400 | Bad Request. |
| 404 | Not found. |
| 422 | Unprocessable entity. |
| 500 | Server crashed for some reason. |
curl "https://app.octopi.co/api/v1/containers/:container_number/relocate.json" -X POST -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Token token=YOUR TOKEN HERE" -d '{"yard_slot_id": 123}'
{
"message": "1 unit of MSCU1234567 has been relocated to A-01-01",
"merged": false,
"cargo": {
"id": 987,
"number": "MSCU1234567",
"vin": null,
"quantity": 1.0,
"yard_slot": { "id": 123, "custom_name": "A-01-01" }
}
}
| Param name | Description |
|---|---|
|
container_number required |
The container number. Validations:
|
|
yard_slot_id required |
The Octopi ID of the destination yard slot. Yard slot IDs are listed by GET /yard_areas/:id. Validations:
|