younifyd
Menu

Download Files

Download Files as ZIP

POST/assets/files

Use it in a workflow

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

Request

Request body

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

idsarray<string (uuid)>required

File UUIDs to include in the archive.

json
{
  "ids": [
    "8cbb43fe-4cdf-4991-8352-c461779cec02",
    "b6ac6b72-3c6d-4bd8-9f0f-3e29b6e8b321"
  ]
}

Response

Returns 200 with a string (binary). Read it in later steps with {{downloadFiles.response.data.<field>}}.

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

Was this page helpful?