---
title: "Update VCS (PR/MR) info for a task"
method: PATCH
path: "/api/tasks/{id}/vcs"
tags: ["Tasks"]
---

# Update VCS (PR/MR) info for a task

`PATCH /api/tasks/{id}/vcs`

## Path parameters

- `id` string, required

## Request body

- object
  - `vcsProvider` 'github' | 'gitlab', required
  - `vcsRepo` string, required
  - `vcsNumber` integer, required
  - `vcsUrl` string, uri, required

## Response `200`

VCS info updated

## Other responses

- `404` — Task not found

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/revisions/92a1dcbd2fc7/schema)
