younifyd
Menu

Getallvariantsinavariantgroup

Get all variants in a variant group

GET/v3/variant_groups/{variant_group_uid}/variants

Use it in a workflow

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

Request

Path parameters

variant_group_uidstringrequired

Query parameters

skipstring

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

limitstring

Enter the maximum number of items to be returned.

include_countstring

Set this parameter to “true” to include the total count of variants in the variant group.

ascstring

Sort the response in ascending order. Options include name, created_at, and updated_at.

descstring

Sort the response in descending order. Options include name, created_at, and updated_at.

Response

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

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