---
title: "POST /v1/{+name}:cancel"
method: POST
path: "/v1/{+name}:cancel"
tags: ["tasks"]
---

# POST /v1/{+name}:cancel

`POST /v1/{+name}:cancel`

Cancel a task from the agent. If supported one should expect no more task updates for the task.

## Path parameters

- `name` string, required

## Request body

- CancelTaskRequest
  - `tenant` string — Optional tenant, provided as a path parameter. Experimental, might still change for 1.0 release.

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/workspaceevents.md) · [All operations](https://skmtc.dev/google/apis/workspaceevents/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/workspaceevents/revisions/d6202517e9f3/schema)
