Skip to main content
Use this endpoint to create a custom field value on a shipment or container. The field must reference an existing custom field definition.

Request body

ParameterRequiredDescription
entityYesPolymorphic relationship to a Shipment or Container
api_slugYesThe slug of the custom field definition
valueYesThe field value (must match the definition’s data type)

Value formats by data type

Data typeExpected value format
short_textAny string
numberNumeric value
dateDate string (parsed using definition’s default_format or flexible parsing)
datetimeDateTime string
booleantrue or false
enumString matching one of the definition’s option values
enum_multiArray of strings matching the definition’s option values

Validation

  • Values are validated against the definition’s data type
  • Enum values must match one of the definition’s configured options
  • The api_slug must reference a definition belonging to your account or a Terminal49 template