Allows you to modify flex fields for booking line items in Octopi.

Supported Formats

json

PUT /api/v1/shipping_lines/:code/bookings/:number/line_items/:line_item_number/flex_fields/:label
Updates the flex fields for the line item

This resource allows you to access flex fields for booking line items in Octopi.

Supported Formats

json

Errors

Code Description
400 Bad Request.
500 Internal Server Error.

Examples

curl "/api/v1/shipping_lines/OCTO/bookings/177237588/line_items/3/flex_fields/a" \
     -X PUT \
     "Authorization: Token token=ADD TOKEN HERE" \
     -d '{ "value": "FLEX_FIELD_VALUE" }'
"value": "FLEX_FIELD_VALUE" 

Params

Param name Description
code
required

Shipping Line Code

Validations:

  • Must be a String

line_item_number
required

Line Item Number

Validations:

  • Must be a String

number
required

Booking Number

Validations:

  • Must be a String

label
required

Flex field label (case-sensitive).

Validations:

  • Must be a String

value
required

Flex field value. Passing a null value will remove the flex field.

Validations:

  • Must be a String