application/json

Body Required

  • level string | null Required

    Level

    Values are default, warning, or danger. Default value is default.

  • name string Required

    Name

Responses

  • 200 application/json

    Successful response

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

      Created at

    • id integer(int32)

      Id

    • level string | null Required

      Level

      Values are default, warning, or danger. Default value is default.

    • name string Required

      Name

    • updatedAt string(date-time)

      Updated at

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