Skip to content

Commit f1d2159

Browse files
committed
API fixes summarization
1 parent 6b4ba08 commit f1d2159

File tree

1 file changed

+6
-6
lines changed
  • articles/cognitive-services/language-service/summarization/includes/quickstarts

1 file changed

+6
-6
lines changed

articles/cognitive-services/language-service/summarization/includes/quickstarts/rest-api.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ The following example will get you started with document extractive summarizatio
7575
1. Copy the command below into a text editor. The BASH example uses the `\` line continuation character. If your console or terminal uses a different line continuation character, use that character instead.
7676

7777
```bash
78-
curl -i -X POST $LANGUAGE_ENDPOINT/language/analyze-text/jobs?api-version=2022-10-01-preview \
78+
curl -i -X POST $LANGUAGE_ENDPOINT/language/analyze-text/jobs?api-version=2023-04-01 \
7979
-H "Content-Type: application/json" \
8080
-H "Ocp-Apim-Subscription-Key: $LANGUAGE_KEY" \
8181
-d \
@@ -111,13 +111,13 @@ curl -i -X POST $LANGUAGE_ENDPOINT/language/analyze-text/jobs?api-version=2022-1
111111
4. Get the `operation-location` from the response header. The value will look similar to the following URL:
112112

113113
```http
114-
https://<your-language-resource-endpoint>/language/analyze-text/jobs/12345678-1234-1234-1234-12345678?api-version=2022-10-01-preview
114+
https://<your-language-resource-endpoint>/language/analyze-text/jobs/12345678-1234-1234-1234-12345678?api-version=2023-04-01
115115
```
116116

117117
5. To get the results of the request, use the following cURL command. Be sure to replace `<my-job-id>` with the numerical ID value you received from the previous `operation-location` response header:
118118

119119
```bash
120-
curl -X GET $LANGUAGE_ENDPOINT/language/analyze-text/jobs/<my-job-id>?api-version=2022-10-01-preview \
120+
curl -X GET $LANGUAGE_ENDPOINT/language/analyze-text/jobs/<my-job-id>?api-version=2023-04-01 \
121121
-H "Content-Type: application/json" \
122122
-H "Ocp-Apim-Subscription-Key: $LANGUAGE_KEY"
123123
```
@@ -209,7 +209,7 @@ The following example will get you started with conversation issue and resolutio
209209
1. Copy the command below into a text editor. The BASH example uses the `\` line continuation character. If your console or terminal uses a different line continuation character, use that character instead.
210210

211211
```bash
212-
curl -i -X POST $LANGUAGE_ENDPOINT/language/analyze-conversations/jobs?api-version=2022-10-01-preview \
212+
curl -i -X POST $LANGUAGE_ENDPOINT/language/analyze-conversations/jobs?api-version=2023-04-01 \
213213
-H "Content-Type: application/json" \
214214
-H "Ocp-Apim-Subscription-Key: $LANGUAGE_KEY" \
215215
-d \
@@ -298,13 +298,13 @@ Only the `resolution` aspect supports sentenceCount. If you do not specify the `
298298
4. Get the `operation-location` from the response header. The value will look similar to the following URL:
299299

300300
```http
301-
https://<your-language-resource-endpoint>/language/analyze-conversations/jobs/12345678-1234-1234-1234-12345678?api-version=2022-10-01-preview
301+
https://<your-language-resource-endpoint>/language/analyze-conversations/jobs/12345678-1234-1234-1234-12345678?api-version=2023-04-01
302302
```
303303

304304
5. To get the results of the request, use the following cURL command. Be sure to replace `<my-job-id>` with the numerical ID value you received from the previous `operation-location` response header:
305305

306306
```bash
307-
curl -X GET $LANGUAGE_ENDPOINT/language/analyze-conversations/jobs/<my-job-id>?api-version=2022-10-01-preview \
307+
curl -X GET $LANGUAGE_ENDPOINT/language/analyze-conversations/jobs/<my-job-id>?api-version=2023-04-01 \
308308
-H "Content-Type: application/json" \
309309
-H "Ocp-Apim-Subscription-Key: $LANGUAGE_KEY"
310310
```

0 commit comments

Comments
 (0)