Skip to main content
POST
/
custom_field_definitions
Create a custom field definition
curl --request POST \
  --url https://api.terminal49.com/v2/custom_field_definitions \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "attributes": {
      "api_slug": "<string>",
      "display_name": "<string>",
      "description": "<string>",
      "reference_type": "<string>",
      "validation": {},
      "default_format": "<string>",
      "default_value": "<string>"
    }
  },
  "links": {
    "self": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://terminal49-codex-docs-audit-diataxis-skill.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Create a custom field definition to describe metadata you want to store on shipments or containers.

Request body

ParameterRequiredDescription
entity_typeYesThe entity type this field applies to (Shipment or Container)
api_slugYesUnique identifier for the field
display_nameYesHuman-readable name for the field
data_typeYesData type for values (for example: short_text, number, date, reference)
descriptionNoOptional description of the fieldโ€™s purpose
validationNoValidation rules (for example: required, pattern, max_length)
default_formatNoDefault format string for numbers or dates
default_valueNoDefault value for new custom fields
reference_typeNoRequired when data_type is reference

Authorizations

Authorization
string
header
required

Use a Terminal49 API key in the Authorization header with the Token prefix.

Authorization: Token YOUR_API_KEY

Body

application/json
data
object

Response

201 - application/json

Created

data
Custom field definition ยท object