POST /products.json

POST /products.json
application/json

Body Required

  • handle string Required

    Handle

  • name string Required

    Name

  • vendor string | null

    Vendor

Responses

  • 200 application/json

    Successful response

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

      Created at

    • handle string Required

      Handle

    • id integer(int32)

      Id

    • name string Required

      Name

    • updatedAt string(date-time)

      Updated at

    • vendor string | null

      Vendor

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