This API endpoint allows you to create a new chassis.

Supported Formats

json

Errors

Code Description
400 Bad Request.
404 Chassis Not Found
422 Unprocessable entity
500 Internal Server Error.

Examples

curl "https://app.octopi.co/api/v1/chassis.json" -X POST -d '{ "chassis": { "number": "TEST1234", "active": true, "owner_type": "Shipping Line", "owner_id": 10, "size": 40, "equipment_condition": "good", "license_plate_number": "BACD1234" } }' -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Token token=YOUR TOKEN HERE"
{
  "chassis": {
    "id": 4262,
    "number": "TEST1234",
    "active": true,
    "owner": "HAMBURG SUD",
    "size": 40,
    "equipment_condition": "Good",
    "current_location": null,
    "container": null,
    "license_plate_number": "BACD1234",
    "created_at": "2022-07-06T08:39:06Z",
    "updated_at": "2022-07-06T08:39:06Z"
  }
}

Params

Param name Description
chassis
required

Validations:

  • Must be a Hash

chassis[number]
required

The chassis number. Must be unique.

Validations:

  • Must be a String

chassis[active]
optional

Whether the chassis is active or not.

Validations:

  • Must be one of: true, false.

chassis[owner_type]
optional

The owner type for this chassis. Defaults to ‘Organization’.

Validations:

  • Must be one of: Container owner, Organization, Other, Shipping line, Trucking company.

chassis[owner_id]
optional

The owner id for this chassis

Validations:

  • Must be a Integer

chassis[size]
optional

The chassis size.

Validations:

  • Must be one of: 10, 20, 40, 45, 53.

chassis[equipment_condition]
optional

The chassis condition.

Validations:

  • Must be a String

chassis[current_location_type]
optional

The chassis current location type.

Validations:

  • Must be one of: Consignee, Other, Port, Ship, Terminal, Train visit, Voyage, Yard area, Yard slot.

chassis[current_location_id]
optional

The chassis current location id.

Validations:

  • Must be a Integer

chassis[container]
optional

The container number for this chassis.

Validations:

  • Must be a String

chassis[license_plate_number]
optional

The chassis license plate number. Must be unique.

Validations:

  • Must be a String