PUT /purchase-statuses/{id}.json

PUT /purchase-statuses/{id}.json

Path parameters

  • id integer(int64) Required

    Numeric ID of the instance

    Minimum value is 1.

application/json

Body Required

  • 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

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