younifyd
Menu

Getallassets|getassetsofaspecificfolder|getassetsandsubfoldersofaparentfolder|getasinglefolderbyname|getsubfoldersofaparentfolder.....

Get all assets | Get assets of a specific folder | Get assets and subfolders of a parent folder | Get a single folder by name | Get subfolders of a parent folder.....

GET/v3/assets

Use it in a workflow

  1. Add a step and choose the Contentstack connector.
  2. Pick the Getallassets|getassetsofaspecificfolder|getassetsandsubfoldersofaparentfolder|getasinglefolderbyname|getsubfoldersofaparentfolder..... action (under Assets).
  3. Fill in the fields below, then reference the result from later steps as {{getallassetsGetassetsofaspecificfolderGetassetsandsubfoldersofaparentfolderGetasinglefolderbynameGetsubfoldersofaparentfolder.response.data}}.

Request

Query parameters

folderstring

Enter either the UID of a specific folder to get the assets of that folder, or enter ‘cs_root’ to get all assets and their folder details from the root folder.

include_foldersstring

Set this parameter to ‘true’ to include the details of the created folders along with the details of the assets.

environmentstring

Enter the name of the environment to retrieve the assets published on them. You can enter multiple environments.

versionstring

Specify the version number of the asset that you want to retrieve. If the version is not specified, the details of the latest version will be retrieved.

include_publish_detailsstring

Enter 'true' to include the publish details of the entry.

include_countstring

Set this parameter to 'true' to include the total number of assets available in your stack in the response body.

relative_urlsstring

Set this to 'true' to display the relative URL of the asset.

ascstring

Enter the unique ID of the field for sorting the assets in ascending order by that field.

descstring

Enter the unique ID of the field for sorting the assets in descending order by that field.

include_branchstring

Set this to 'true' to include the '_branch' top-level key in the response. This key states the unique ID of the branch where the concerned Contentstack module resides.

querystring

Enter the is_dir and name parameters to find the asset folder by name.

Headers

branchstring

Enter your branch unique ID.

Response

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

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

Getallassets|getassetsofaspecificfolder|getassetsandsubfoldersofaparentfolder|getasinglefolderbyname|getsubfoldersofaparentfolder..... — Contentstack — Documentation