younifyd
Menu

Import File

Import a File

POST/files/import

Use it in a workflow

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

Request

Request body

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

urlstringrequired

The URL to download the file from.

dataobject
typeany
descriptionany
json
{
  "url": "string",
  "data": {
    "type": null,
    "description": null
  }
}

Response

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

dataobject
typeany
descriptionany
json
{
  "data": {
    "type": null,
    "description": null
  }
}

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

Was this page helpful?