younifyd
Menu

Create Attribute Term

Create an attribute term

POST/products/attributes/{attributeId}/terms

Use it in a workflow

  1. Add a step and choose the WooCommerce connector.
  2. Pick the Create Attribute Term action (under Product attribute terms).
  3. Fill in the fields below, then reference the result from later steps as {{createAttributeTerm.response.data}}.

Request

Path parameters

attributeIdintegerrequired

Request body

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

idinteger

Term ID.

namestring

Term name.

slugstring

Term slug.

descriptionstring

Term description.

menu_orderinteger

Menu order.

countinteger

Number of products in term.

json
{
  "id": 0,
  "name": "string",
  "slug": "string",
  "description": "string",
  "menu_order": 0,
  "count": 0
}

Response

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

idinteger

Term ID.

namestring

Term name.

slugstring

Term slug.

descriptionstring

Term description.

menu_orderinteger

Menu order.

countinteger

Number of products in term.

json
{
  "id": 0,
  "name": "string",
  "slug": "string",
  "description": "string",
  "menu_order": 0,
  "count": 0
}

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