Body
Required
-
customFieldId
integer(int32) Required Custom field
object
object | null | array | boolean | integer | number | string Object
-
source
string | null Required Source
Values are
manual
,inventory_feed
, orchannel
. Default value ismanual
. -
value
string | null Value
-
values
array[string] | null Values
-
variantId
integer(int32) Required Variant
POST
/custom-field-variants.json
curl \
--request POST 'http://api.example.com/v1/custom-field-variants.json' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"customFieldId":42,"object":{},"source":"manual","value":"string","values":["string"],"variantId":42}'
Request examples
{
"customFieldId": 42,
"object": {},
"source": "manual",
"value": "string",
"values": [
"string"
],
"variantId": 42
}
Response examples (200)
{
"createdAt": "2025-05-04T09:42:00Z",
"customFieldId": 42,
"id": 42,
"object": {},
"source": "manual",
"updatedAt": "2025-05-04T09:42:00Z",
"value": "string",
"values": [
"string"
],
"variantId": 42
}