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

# POST /v1/{+name}:cancel

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

POST /v1/projects/{project_id}/deviceSessions/{device_session_id}:cancel Changes the DeviceSession to state FINISHED and terminates all connections. Canceled sessions are not deleted and can be retrieved or listed by the user until they expire based on the 28 day deletion policy.

## Path parameters

- `name` string, required

## Request body

- CancelDeviceSessionRequest — The request object for cancelling a Device Session.

## Response `200`

Successful response

---

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