api_slug already exists, it will be updated.
| Parameter | Required | Description |
|---|---|---|
shipment_id | Yes | The ID of the shipment |
| 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) |
update permission on the shipment.
201 Created with the custom field resource on success.
find_or_initialize_by internally, so it creates if missing or updates if it existsToken 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
Shipment ID