Namespace: microsoft.graph
Important
APIs under the /beta
version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.
Stop the transcription of a call.
This API is available in the following national cloud deployments.
Global service |
US Government L4 |
US Government L5 (DOD) |
China operated by 21Vianet |
✅ |
✅ |
✅ |
❌ |
Permissions
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
Permission type |
Least privileged permissions |
Higher privileged permissions |
Delegated (work or school account) |
Not supported. |
Not supported. |
Delegated (personal Microsoft account) |
Not supported. |
Not supported. |
Application |
Calls.JoinGroupCall.All |
Not available. |
HTTP request
POST /communications/calls/{id}/microsoft.graph.StopTranscription
Request body
In the request body, provide a JSON object with the following parameters.
Parameter |
Type |
Description |
language |
String |
Language of the transcription. Currently supporting: en-us . |
Response
This method returns a 202 Accepted
response code and a stopTranscriptionOperation object created for this request.
Example
The following example shows how to call this API.
Request
The following example shows the request.
POST https://graph.microsoft.com/beta/communications/calls/02000980-58ea-4bf2-bb77-8ba548da56f7/microsoft.graph.StopTranscription
Content-Type: application/json
Content-Length: 56
{
"language": "en-us"
}
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.Communications.Calls.Item.StopTranscription;
var requestBody = new StopTranscriptionPostRequestBody
{
Language = "en-us",
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Communications.Calls["{call-id}"].StopTranscription.PostAsync(requestBody);
// Code snippets are only available for the latest major version. Current major version is $v0.*
// Dependencies
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-beta-sdk-go"
graphcommunications "github.com/microsoftgraph/msgraph-beta-sdk-go/communications"
//other-imports
)
requestBody := graphcommunications.NewStopTranscriptionPostRequestBody()
language := "en-us"
requestBody.SetLanguage(&language)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
stopTranscription, err := graphClient.Communications().Calls().ByCallId("call-id").StopTranscription().Post(context.Background(), requestBody, nil)
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
com.microsoft.graph.beta.communications.calls.item.stoptranscription.StopTranscriptionPostRequestBody stopTranscriptionPostRequestBody = new com.microsoft.graph.beta.communications.calls.item.stoptranscription.StopTranscriptionPostRequestBody();
stopTranscriptionPostRequestBody.setLanguage("en-us");
var result = graphClient.communications().calls().byCallId("{call-id}").stopTranscription().post(stopTranscriptionPostRequestBody);
const options = {
authProvider,
};
const client = Client.init(options);
const stopTranscriptionOperation = {
language: 'en-us'
};
await client.api('/communications/calls/02000980-58ea-4bf2-bb77-8ba548da56f7/microsoft.graph.StopTranscription')
.version('beta')
.post(stopTranscriptionOperation);
<?php
use Microsoft\Graph\Beta\GraphServiceClient;
use Microsoft\Graph\Beta\Generated\Communications\Calls\Item\StopTranscription\StopTranscriptionPostRequestBody;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new StopTranscriptionPostRequestBody();
$requestBody->setLanguage('en-us');
$result = $graphServiceClient->communications()->calls()->byCallId('call-id')->stopTranscription()->post($requestBody)->wait();
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.communications.calls.item.stop_transcription.stop_transcription_post_request_body import StopTranscriptionPostRequestBody
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = StopTranscriptionPostRequestBody(
language = "en-us",
)
result = await graph_client.communications.calls.by_call_id('call-id').stop_transcription.post(request_body)
Response
The following example shows the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 202 Accepted
Location: https://graph.microsoft.com/beta/communications/calls/02000980-58ea-4bf2-bb77-8ba548da56f7/operations/2d7ab59c-f8bd-4911-8302-6d58ab60e338
{
"@odata.type": "#microsoft.graph.stopTranscriptionOperation",
"clientContext": "clientContext-value",
"status": "completed"
}