younifyd
Menu

Getanasset

Get an asset

GET/v3/assets/{asset_uid}

Use it in a workflow

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

Request

Path parameters

asset_uidstringrequired

Query parameters

include_pathstring

Set this parameter to ‘true’ to retrieve the complete path of the folder. The path will be displayed as an array of objects which includes the names and UIDs of each parent folder.

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. Note: If no version is mentioned, this request will retrieve the latest published version of the asset. To retrieve a specific version, make use of the version parameter and keep the environment parameter blank.

environmentstring

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

include_publish_detailsstring

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

relative_urlsstring

Set this to 'true' to display the relative URL of the asset. This parameter is not applicable when you delete an asset.

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.

Headers

branchstring

Enter your branch unique ID.

Response

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

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