POST /custom-field-scopes.json

POST /custom-field-scopes.json
application/json

Body Required

  • customFieldId integer(int32) Required

    Custom field

  • productId integer(int32) | null

    Product

  • variantId integer(int32) | null

    Variant

Responses

  • 200 application/json

    Successful response

    Hide response attributes Show response attributes object
    • createdAt string(date-time)

      Created at

    • customFieldId integer(int32) Required

      Custom field

    • id integer(int32)

      Id

    • productId integer(int32) | null

      Product

    • updatedAt string(date-time)

      Updated at

    • variantId integer(int32) | null

      Variant

POST /custom-field-scopes.json
curl \
 --request POST 'http://api.example.com/v1/custom-field-scopes.json' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"customFieldId":42,"productId":42,"variantId":42}'
Request examples
{
  "customFieldId": 42,
  "productId": 42,
  "variantId": 42
}
Response examples (200)
{
  "createdAt": "2025-05-04T09:42:00Z",
  "customFieldId": 42,
  "id": 42,
  "productId": 42,
  "updatedAt": "2025-05-04T09:42:00Z",
  "variantId": 42
}