latestSwagger 2.02026-08-102194011.3 MB

602fc25ddd76

Custom Field Options V1

Create Custom Field Options V1

Create a custom field option. If the sort key is not supplied, it'll default to 1000, so the option appears near the end of the list.

post/v1/custom_field_options

Request body

custom_field_idstring required

ID of the custom field this option belongs to

sort_keyinteger

Sort key used to order the custom field options correctly

valuestring required

Human readable name for the custom field option

Example request

{
  "custom_field_id": "01FCNDV6P870EA6S7TK1DSYDG0",
  "sort_key": 10,
  "value": "Product"
}

Response

Created response.

Example response

{
  "custom_field_option": {
    "custom_field_id": "01FCNDV6P870EA6S7TK1DSYDG0",
    "id": "01FCNDV6P870EA6S7TK1DSYDG0",
    "sort_key": 10,
    "value": "Product"
  }
}