younifyd
Menu

Trigger Deployment

Trigger Deployment

POST/deployments/{provider}/projects/{id}/deploy

Use it in a workflow

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

Request

Path parameters

providerstringrequired

The deployment provider name (e.g. `vercel`, `netlify`).

One ofvercelnetlify

idstring (uuid)required

Unique identifier of the tracked project.

Request body

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

previewboolean

When `true`, trigger a preview deployment instead of production.

Default false

clear_cacheboolean

When `true`, clears the provider's build cache before deploying.

Default true

json
{
  "preview": false,
  "clear_cache": true
}

Response

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

dataobject
deployment_idstring

Provider-side deployment identifier.

statusstring

One ofbuildingreadyerrorcanceled

urlstring
created_atstring (date-time)
json
{
  "data": {
    "deployment_id": "dpl_abc123",
    "status": "building",
    "url": "https://my-directus-app.vercel.app",
    "created_at": "2025-01-01T00:00:00Z"
  }
}

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