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 exists