Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cancel endpoint for conversations #19025

Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,46 @@
}
}
}
},
"/analyze-conversations/jobs/{jobId}:cancel": {
heaths marked this conversation as resolved.
Show resolved Hide resolved
heaths marked this conversation as resolved.
Show resolved Hide resolved
"post": {
"produces": [
"application/json"
],
"description": "Cancel a long-running Text Analysis conversations job.",
"operationId": "AnalyzeConversation_CancelJob",
"summary": "Cancel a long-running Text Analysis conversations job",
"parameters": [
{
"$ref": "common.json#/parameters/ApiVersionParameter"
},
{
"$ref": "common.json#/parameters/JobId"
}
],
"responses": {
"202": {
"description": "Cancel Job request has been received.",
"headers": {
"Operation-Location": {
"type": "string"
}
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "common.json#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"Successful Job Delete Request": {
"$ref": ".//examples//conversations//SuccessfulAnalyzeConversationsJobsCancelRequest.json"
}
},
"x-ms-long-running-operation": true
}
}
},
"definitions": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"responses": {
"202": {
"headers": {
"Operation-Location": "{Endpoint}/language/analyze-text/jobs/{jobId}?api-version=2022-05-01-preview"
"Operation-Location": "{Endpoint}/language/analyze-text/jobs/{jobId}?api-version=2022-05-15-preview"
heaths marked this conversation as resolved.
Show resolved Hide resolved
heaths marked this conversation as resolved.
Show resolved Hide resolved
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"parameters": {
"Ocp-Apim-Subscription-Key": "{API key}",
"api-version": "2022-05-15-preview",
"Endpoint": "{Endpoint}",
"jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18"
},
"responses": {
"202": {
"headers": {
"Operation-Location": "{Endpoint}/language/analyze-conversations/jobs/{jobId}?api-version=2022-05-15-preview"
}
}
}
}