---
title: "Cancel all media operations."
method: POST
path: "/calling/callConnections/{callConnectionId}/:cancelAllMediaOperations"
tags: ["CallConnection"]
---

# Cancel all media operations.

`POST /calling/callConnections/{callConnectionId}/:cancelAllMediaOperations`

Cancel all media operations.

## Path parameters

- `callConnectionId` string, required

## Query parameters

- `api-version` string, required

## Request body

- CancelAllMediaOperationsRequest — The request payload for cancel all media operations
  - `operationContext` string — The context for this operation.

## Response `200`

Returns the cancel all media operations response.

- CancelAllMediaOperationsResult — The response payload of the cancel all media operations.
  - `operationId` string — The operation id.
  - `status` 'notStarted' | 'running' | 'completed' | 'failed', required — The status of the operation
  - `operationContext` string — The operation context provided by client.
  - `resultInfo` ResultInfo — Result info class to be used to report result status for actions/operations.
    - `code` integer, required — The result code associated with the operation.
    - `subcode` integer, required — The subcode that further classifies the result.
    - `message` string — The message is a detail explanation of subcode.

## Other responses

- `400` — BadRequest
- `401` — Unauthorized
- `403` — Forbidden
- `404` — NotFound
- `500` — InternalServerError

---

[API](https://skmtc.dev/azure/apis/communication-callingserver.md) · [All operations](https://skmtc.dev/azure/apis/communication-callingserver/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/communication-callingserver/revisions/85ed6f36b472/schema)
