younifyd
Menu

Upload an asset

Upload an asset

POST/assets

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Upload an asset action (under Assets).
  3. Fill in the fields below, then reference the result from later steps as {{uploadAnAsset.response.data}}.

Request

Request body

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

sourceobjectrequired

Source where to download the asset from. Either URL or attachment.

urlstring (uri)

URL of remote asset.

attachmentstring (byte)

Base64-encoded binary asset data.

json
{
  "source": {
    "url": "https://example.com/image.png",
    "attachment": "U3dhZ2dlciByb2Nrcw=="
  }
}

Response

Returns 201 with an object. Read it in later steps with {{uploadAnAsset.response.data.<field>}}.

assetUrlstring

URL of the image, generated by SCAYLE.

json
{
  "assetUrl": "images/084dace7d7ff691e97982fa554113c29"
}

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

Was this page helpful?