younifyd
Menu

Uploadasset

Upload asset

POST/v3/assets

Use it in a workflow

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

Request

Query parameters

relative_urlsstring

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

include_dimensionstring

Set this to 'true' to include the dimensions (height and width) of the image in the response.

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.

Request body

Enter the body as JSON in the step's Body field.

asset[upload]string (binary)

Select the input type as 'File'. Then, browse and select the asset file that you want to import. Supported file types include JPG, GIF, PNG, XML, WebP, BMP, TIFF, SVG, and PSD.

asset[parent_uid]string (string)

If needed, assign a parent folder to your asset by passing the UID of the parent folder in this parameter.

asset[title]string (string)

Enter a title for your uploaded asset.

asset[description]string (string)

Enter a description for your uploaded asset.

asset[tags]string (string)

Assign a specific tag(s) to your uploaded asset.

json
{
  "asset[upload]": "string",
  "asset[parent_uid]": "string",
  "asset[title]": "string",
  "asset[description]": "string",
  "asset[tags]": "string"
}

Response

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

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

Uploadasset — Contentstack — Documentation