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 Delivery connector.
  2. Pick the Getancestorsofaterm action (under CDA | 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

limitstring

Number of results to return.

skipstring

Number of results to skip (for pagination).

depthstring

Depth of term hierarchy to retrieve.

localestring

Enter the code of the locale to fetch the term and its ancestors in. The ancestors are returned in the same locale the term resolves to: if the term falls back to another locale, its ancestors are returned in that locale too.

include_fallbackstring

Set to true to return the term and its ancestors through the locale fallback hierarchy of the branch when they are not localized in the requested locale.

Headers

api_keystring

Enter the API key of the stack.

access_tokenstring

Enter your environment-specific delivery token. Check Authentication .

Content-Typestringrequired

Response

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

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

Was this page helpful?