younifyd
Menu

Getancestorsofaterm

Get ancestors of a term

GET/v3/taxonomies/{taxonomy_uid}/terms/{term_uid}/ancestors

Use it in a workflow

  1. Add a step and choose the Contentstack connector.
  2. Pick the Getancestorsofaterm action (under CMA | Taxonomy).
  3. Fill in the fields below, then reference the result from later steps as {{getancestorsofaterm.response.data}}.

Request

Path parameters

taxonomy_uidstringrequired
term_uidstringrequired

Query parameters

localestring

Locale from which to fetch the ancestor taxonomy terms. If not specified, the master locale is used.

include_fallbackstring

Determines whether to follow the fallback locale hierarchy of the specified branch (or the main branch) when the term is not available in the given locale.

include_children_countstring

Set this parameter to 'true' to include in response the total count of child terms available in the parent term.

include_referenced_entries_countstring

Set this parameter to 'true' to include in response the total count of entries in which the term is added.

include_countstring

Set this parameter to 'true' to include in response the total count of terms available in the specified taxonomy.

limitstring

Enter the maximum number of terms to be returned.

skipstring

Enter the number of terms to be skipped from the response body.

Headers

branchstring

Enter your branch unique ID.

Response

Returns 200 with a any. Read it in later steps with {{getancestorsofaterm.response.data.<field>}}.

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