Menu
Trigger Deployment
Trigger Deployment
POST
/deployments/{provider}/projects/{id}/deployUse it in a workflow
- Add a step and choose the Directus connector.
- Pick the Trigger Deployment action (under Deployments).
- Fill in the fields below, then reference the result from later steps as
{{triggerDeployment.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"preview": false,
"clear_cache": true
}
Response
Returns 200 with an object. Read it in later steps with {{triggerDeployment.response.data.<field>}}.
{
"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.
Was this page helpful?