POST /options.json

POST /options.json
application/json

Body Required

  • name string Required

    Name

  • position integer(int32) Required

    Position

    Default value is 1.

  • productId integer(int32) Required

    Product

Responses

  • 200 application/json

    Successful response

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

      Created at

    • id integer(int32)

      Id

    • name string Required

      Name

    • position integer(int32) Required

      Position

      Default value is 1.

    • productId integer(int32) Required

      Product

    • updatedAt string(date-time)

      Updated at

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