---
title: "Create a task to queue runs from the commit for VCS-driven workspaces."
method: POST
path: "/vcs-tasks"
tags: ["vcs-tasks"]
---

# Create a task to queue runs from the commit for VCS-driven workspaces.

`POST /vcs-tasks`

## Request body

- VcsTaskRequest — Represents a request for creating a VCS task.
  - `branch` string, required
  - `commit-sha` string, required
  - `repository-id` string, required

## Response `202`

Task is created.

## Other responses

- `404` — VCS-driven workspaces not found.
- `409` — Conflict creating task.
- `4XX` — Client error.
- `5XX` — Server error.

---

[API](https://skmtc.net/scalr/apis/scalr-iacp-api.md) · [All operations](https://skmtc.net/scalr/apis/scalr-iacp-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/scalr/scalr-iacp-api/versions/fc927526ad12/schema)
