Supported Formats

json

Errors

Code Description
400 Bad Request.
404 Not found.
422 Unprocessable entity.
500 Server crashed for some reason.

Examples

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" }
  }
}

Params

Param name Description
container_number
required

The container number.

Validations:

  • Must be a String

yard_slot_id
required

The Octopi ID of the destination yard slot. Yard slot IDs are listed by GET /yard_areas/:id.

Validations:

  • Must be a Integer