diff --git a/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulAnalyzeTextJobsDeleteRequest.json b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulAnalyzeTextJobsDeleteRequest.json deleted file mode 100644 index 0fc5399153ef..000000000000 --- a/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulAnalyzeTextJobsDeleteRequest.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "ApiVersion": "2022-03-01-preview", - "Endpoint": "{Endpoint}", - "jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18" - }, - "responses": { - "202": { - "headers": { - "Operation-Location": "{Endpoint}/language/analyze-text/jobs/{jobId}/data?api-version=2022-03-01-preview" - } - } - } - } - \ No newline at end of file diff --git a/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest.json b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest.json index 1267f2783951..691251aca78f 100644 --- a/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest.json +++ b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest.json @@ -42,8 +42,7 @@ "responses": { "202": { "headers": { - "Operation-Location": "{Endpoint}/language/analyze-text/jobs/{jobId}?api-version=2022-03-01-preview", - "Location": "{Endpoint}/language/analyze-text/jobs/{jobId}/data?api-version=2022-03-01-preview" + "Operation-Location": "{Endpoint}/language/analyze-text/jobs/{jobId}?api-version=2022-03-01-preview" } } } diff --git a/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/textanalytics.json b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/textanalytics.json index cb2f119dc791..8ae2b7838737 100644 --- a/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/textanalytics.json +++ b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/textanalytics.json @@ -123,9 +123,6 @@ "headers": { "Operation-Location": { "type": "string" - }, - "Location": { - "type": "string" } } }, @@ -201,14 +198,16 @@ "$ref": "./examples/SuccessfulAnalyzeTextJobsMultipleTaskStatusRequest.json" } } - }, - "delete": { + } + }, + "/analyze-text/jobs/{jobId}:cancel": { + "post": { "produces": [ "application/json" ], - "description": "Cancel Text Analysis job.", + "description": "Cancel a long-running Text Analysis job.", "operationId": "AnalyzeText_CancelJob", - "summary": "Cancel Text Analysis job", + "summary": "Cancel a long-running Text Analysis job", "parameters": [ { "$ref": "#/parameters/JobId" @@ -237,43 +236,6 @@ }, "x-ms-long-running-operation": true } - }, - "/analyze-text/jobs/{jobId}/data": { - "delete": { - "produces": [ - "application/json" - ], - "description": "Delete Text Analysis job and all of its data.", - "operationId": "AnalyzeText_DeleteJob", - "summary": "Delete Text Analysis job and all of its data", - "parameters": [ - { - "$ref": "#/parameters/JobId" - } - ], - "responses": { - "202": { - "description": "Delete Job request has been received.", - "headers": { - "Operation-Location": { - "type": "string" - } - } - }, - "default": { - "description": "Unexpected error", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Successful Job Delete Request": { - "$ref": ".//examples//SuccessfulAnalyzeTextJobsDeleteRequest.json" - } - }, - "x-ms-long-running-operation": true - } } }, "definitions": {