v1

latestOpenAPI 3.0.1MIT2026-07-263151,3912.3 MB
Categories

Update Category

Update a category using the category ID.

put/v1/categories/{categoryId}

Request body

namestring required

Category name.

hierarchyinteger required

Category hierarchy. Categories with lower hierarchy are processed before categories with higher hierarchy value.

Response

Returns a category object with a refreshed updated_at property.

idstring required

Unique category ID assigned by Voucherify.

namestring required

Category name.

hierarchyinteger required

Category hierarchy. Categories with lower hierarchy are processed before categories with higher hierarchy value.

object'category' required
created_atstring date-time required

Timestamp representing the date and time when the category was created. The value is shown in the ISO 8601 format.

updated_atstring date-time required

Timestamp representing the date and time when the category was updated. The value is shown in the ISO 8601 format.

Example response

{
  "created_at": "2022-07-14T10:45:13.156Z",
  "updated_at": "2022-08-16T10:52:08.094Z"
}