---
title: "Manually trigger a apply on a task"
method: POST
path: "/runners/workspaces/{workspaceId}/tasks/{taskId}/apply"
tags: ["Runners Workspaces"]
---

# Manually trigger a apply on a task

`POST /runners/workspaces/{workspaceId}/tasks/{taskId}/apply`

Manually triggers a terraform apply for the specified task within the workspace

## Path parameters

- `workspaceId` string, required
- `taskId` string, required

## Request body

- object
  - `taskType` 'apply', required — The type of task to run apply
  - `vcs` object, required
    - `reference` string — The branch to run apply from
    - `type` 'branch' | 'tag' | 'commit'
  - `trigger` object, required — Trigger configuration for the deployment
    - `type` 'manual'
  - `cmdArguments` string — Additional command line arguments

## Response `200`

Manual apply triggered successfully

- object
  - `status` integer
  - `data` object
    - `message` string

## Other responses

- `400` — Bad Request Error
- `401` — Unauthorized Error
- `403` — Insufficient permissions
- `404` — Not Found Error
- `500` — Internal Server Error

---

[API](https://skmtc.net/firefly/apis/api-gateway.md) · [All operations](https://skmtc.net/firefly/apis/api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/firefly/api-gateway/revisions/eea119b4113f/schema)
