younifyd
Menu

Update Category

Update Category

PUT/v1/categories/{categoryId}

Use it in a workflow

  1. Add a step and choose the Voucherify connector.
  2. Pick the Update Category action (under Categories).
  3. Fill in the fields below, then reference the result from later steps as {{updateCategory.response.data}}.

Request

Path parameters

categoryIdstringrequired

Unique category ID assigned by Voucherify.

Request body

Enter the body as JSON in the step's Body field.

namestring

Category name.

hierarchyinteger

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

json
{
  "name": "string",
  "hierarchy": 0
}

Response

Returns 200 with an object. Read it in later steps with {{updateCategory.response.data.<field>}}.

idstring

Unique category ID assigned by Voucherify.

namestring

Category name.

hierarchyinteger

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

objectstring

One ofcategoryDefault "category"

created_atstring (date-time)

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

updated_atstring (date-time)

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

json
{
  "id": "string",
  "name": "string",
  "hierarchy": 0,
  "object": "category",
  "created_at": "2022-07-14T10:45:13.156Z",
  "updated_at": "2022-08-16T10:52:08.094Z"
}

Need more? See the Voucherify guide for connection setup and behaviour shared by every action.

Update Category — Voucherify — Documentation