Create a container custom field
Containers
Create container custom field
Create or update a custom field value on a container in the Terminal49 API. Attach internal metadata like reference codes, priority, or cost centers.
POST
Create a container custom field
Creates or updates a custom field on a container. If a custom field with the specifiedDocumentation Index
Fetch the complete documentation index at: https://terminal49.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
api_slug already exists, it will be updated.
Path parameters
| Parameter | Required | Description |
|---|---|---|
container_id | Yes | The ID of the container |
Request body
| Parameter | Required | Description |
|---|---|---|
api_slug | Yes | The slug of the custom field definition |
value | Yes | The value to set (type depends on the definition’s data type) |
Authorization
Requiresupdate permission on the container.
Response
Returns201 Created with the custom field resource on success.
Behavior
- Uses
find_or_initialize_byinternally, so it creates if missing or updates if it exists - Values are validated against the definition’s data type
- For enum fields, values are validated against the definition’s options
Authorizations
Token YOUR_API_TOKEN
The APIs require authentication to be done using header-based API Key and Secret Authentication.
API key and secret are sent va the Authorization request header.
You send your API key and secret in the following way:
Authorization: Token YOUR_API_KEY
Path Parameters
Container ID
Body
application/json