Skip to main content
PUT
Upsert a custom-field value

Authorizations

Authorization
string
header
required

API key issued per entity via Settings > Developers > API Keys. Each key carries scopes (e.g. orders:read, products:write). Bearer token format: Authorization: Bearer ark_live_ent_ Test keys use ark_test_ent_. Both are issued per entity via Settings > Developers > API Keys.

Path Parameters

id
string<uuid>
required

CustomField id.

record_id
string<uuid>
required

Parent resource record id.

Body

application/json
parent_type
string
required

Mirrors CustomField.parent_type.

value
required

Coerced into the matching value_* column per CustomField.field_type.

Response

Upserted value

A custom-field value attached to a parent record (parent_type + parent_id). Exactly ONE of value_text / value_number / value_date / value_datetime / value_boolean / value_json is populated based on the parent CustomField.field_type. Scope: custom_fields:read / custom_fields:write.

id
string<uuid>
read-only
object
string
Example:

"custom_field_value"

entity_id
string<uuid>
read-only
custom_field_id
string<uuid>
parent_type
string

Mirrors CustomField.parent_type.

parent_id
string<uuid>

Id of the parent resource record.

value_text
string | null
value_number
number<float> | null
value_date
string<date> | null
value_datetime
string<date-time> | null
value_boolean
boolean | null
value_json
object | null
created_at
string<date-time>
read-only
updated_at
string<date-time>
read-only