younifyd
Menu

List All Attribute Terms

List all terms for a product attribute

GET/products/attributes/{attributeId}/terms

Use it in a workflow

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

Request

Path parameters

attributeIdintegerrequired

Query parameters

contextstring

Scope under which the request is made; determines fields present in response. Options: view and edit. Default is view.

One ofvieweditDefault "view"

pageinteger

Current page of the collection. Default is 1.

Default 1

per_pageinteger

Maximum number of items to be returned in result set. Default is 10.

Default 10

searchstring

Limit results to those matching a string.

orderbystring

Sort collection by resource attribute. Options: name, slug, term_group, description, count. Default is name.

One ofnameslugterm_groupdescriptioncountDefault "name"

orderstring

Order sort attribute ascending or descending. Options: asc and desc. Default is asc.

One ofascdescDefault "asc"

hide_emptyboolean

Whether to hide resources not assigned to any products. Default is false.

Default false

parentinteger

Limit result set to resources assigned to a specific parent.

productinteger

Limit result set to resources assigned to a specific product.

slugstring

Limit result set to resources with a specific slug.

includearray<integer>

Limit result set to specific IDs.

excludearray<integer>

Ensure result set excludes specific IDs.

Response

Returns 200 with a array<object>. Read it in later steps with {{listAllAttributeTerms.response.data.<field>}}.

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