@@ -6,7 +6,7 @@ author: laujan
6
6
manager : nitinme
7
7
ms.service : azure-ai-language
8
8
ms.topic : how-to
9
- ms.date : 06/20 /2024
9
+ ms.date : 11/19 /2024
10
10
ms.author : lajanuar
11
11
---
12
12
@@ -21,8 +21,6 @@ ms.author: lajanuar
21
21
22
22
> [ !IMPORTANT]
23
23
>
24
- > * Native document support is a gated preview. To request access to the native document support feature, complete and submit the [ ** Apply for access to Language Service previews** ] ( https://aka.ms/gating-native-document ) form.
25
- >
26
24
> * Azure AI Language public preview releases provide early access to features that are in active development.
27
25
> * Features, approaches, and processes may change, prior to General Availability (GA), based on user feedback.
28
26
@@ -206,7 +204,7 @@ For this quickstart, you need a **source document** uploaded to your **source co
206
204
1 . Here's the preliminary structure of the POST request:
207
205
208
206
``` bash
209
- POST {your-language-endpoint}/language/analyze-documents/jobs? api-version=2023 -11-15-preview
207
+ POST {your-language-endpoint}/language/analyze-documents/jobs? api-version=2024 -11-15-preview
210
208
```
211
209
212
210
1 . Before you run the ** POST** request, replace ` {your-language-resource-endpoint} ` and ` {your-key} ` with the values from your Azure portal Language service instance.
@@ -217,21 +215,21 @@ For this quickstart, you need a **source document** uploaded to your **source co
217
215
*** PowerShell***
218
216
219
217
``` powershell
220
- cmd /c curl "{your-language-resource-endpoint}/language/analyze-documents/jobs?api-version=2023 -11-15-preview" -i -X POST --header "Content-Type: application/json" --header "Ocp-Apim-Subscription-Key: {your-key}" --data "@pii-detection.json"
218
+ cmd /c curl "{your-language-resource-endpoint}/language/analyze-documents/jobs?api-version=2024 -11-15-preview" -i -X POST --header "Content-Type: application/json" --header "Ocp-Apim-Subscription-Key: {your-key}" --data "@pii-detection.json"
221
219
```
222
220
223
221
***command prompt / terminal***
224
222
225
223
```bash
226
- curl -v -X POST "{your-language-resource-endpoint}/language/analyze-documents/jobs?api-version=2023 -11-15-preview" --header "Content-Type: application/json" --header "Ocp-Apim-Subscription-Key: {your-key}" --data "@pii-detection.json"
224
+ curl -v -X POST "{your-language-resource-endpoint}/language/analyze-documents/jobs?api-version=2024 -11-15-preview" --header "Content-Type: application/json" --header "Ocp-Apim-Subscription-Key: {your-key}" --data "@pii-detection.json"
227
225
```
228
226
229
227
1. Here's a sample response:
230
228
231
229
```http
232
230
HTTP/1.1 202 Accepted
233
231
Content-Length: 0
234
- operation-location: https://{your-language-resource-endpoint}/language/analyze-documents/jobs/f1cc29ff-9738-42ea-afa5-98d2d3cabf94?api-version=2023 -11-15-preview
232
+ operation-location: https://{your-language-resource-endpoint}/language/analyze-documents/jobs/f1cc29ff-9738-42ea-afa5-98d2d3cabf94?api-version=2024 -11-15-preview
235
233
apim-request-id: e7d6fa0c-0efd-416a-8b1e-1cd9287f5f81
236
234
x-ms-region: West US 2
237
235
Date: Thu, 25 Jan 2024 15:12:32 GMT
@@ -250,7 +248,7 @@ You receive a 202 (Success) response that includes a read-only Operation-Locatio
250
248
1 . Here's the preliminary structure of the ** GET** request:
251
249
252
250
``` bash
253
- GET {your-language-endpoint}/language/analyze-documents/jobs/{jobId}? api-version=2023 -11-15-preview
251
+ GET {your-language-endpoint}/language/analyze-documents/jobs/{jobId}? api-version=2024 -11-15-preview
254
252
```
255
253
256
254
1 . Before you run the command, make these changes:
@@ -262,11 +260,11 @@ You receive a 202 (Success) response that includes a read-only Operation-Locatio
262
260
### Get request
263
261
264
262
``` powershell
265
- cmd /c curl "{your-language-resource-endpoint}/language/analyze-documents/jobs/{jobId}?api-version=2023 -11-15-preview" -i -X GET --header "Content-Type: application/json" --header "Ocp-Apim-Subscription-Key: {your-key}"
263
+ cmd /c curl "{your-language-resource-endpoint}/language/analyze-documents/jobs/{jobId}?api-version=2024 -11-15-preview" -i -X GET --header "Content-Type: application/json" --header "Ocp-Apim-Subscription-Key: {your-key}"
266
264
```
267
265
268
266
``` bash
269
- curl -v -X GET " {your-language-resource-endpoint}/language/analyze-documents/jobs/{jobId}?api-version=2023 -11-15-preview" --header " Content-Type: application/json" --header " Ocp-Apim-Subscription-Key: {your-key}"
267
+ curl -v -X GET " {your-language-resource-endpoint}/language/analyze-documents/jobs/{jobId}?api-version=2024 -11-15-preview" --header " Content-Type: application/json" --header " Ocp-Apim-Subscription-Key: {your-key}"
270
268
```
271
269
272
270
#### Examine the response
@@ -373,21 +371,21 @@ Before you run the **POST** request, replace `{your-language-resource-endpoint}`
373
371
*** PowerShell***
374
372
375
373
``` powershell
376
- cmd /c curl "{your-language-resource-endpoint}/language/analyze-documents/jobs?api-version=2023 -11-15-preview" -i -X POST --header "Content-Type: application/json" --header "Ocp-Apim-Subscription-Key: {your-key}" --data "@document-summarization.json"
374
+ cmd /c curl "{your-language-resource-endpoint}/language/analyze-documents/jobs?api-version=2024 -11-15-preview" -i -X POST --header "Content-Type: application/json" --header "Ocp-Apim-Subscription-Key: {your-key}" --data "@document-summarization.json"
377
375
```
378
376
379
377
*** command prompt / terminal***
380
378
381
379
``` bash
382
- curl -v -X POST " {your-language-resource-endpoint}/language/analyze-documents/jobs?api-version=2023 -11-15-preview" --header " Content-Type: application/json" --header " Ocp-Apim-Subscription-Key: {your-key}" --data " @document-summarization.json"
380
+ curl -v -X POST " {your-language-resource-endpoint}/language/analyze-documents/jobs?api-version=2024 -11-15-preview" --header " Content-Type: application/json" --header " Ocp-Apim-Subscription-Key: {your-key}" --data " @document-summarization.json"
383
381
```
384
382
385
383
Here's a sample response:
386
384
387
385
``` http
388
386
HTTP/1.1 202 Accepted
389
387
Content-Length: 0
390
- operation-location: https://{your-language-resource-endpoint}/language/analyze-documents/jobs/f1cc29ff-9738-42ea-afa5-98d2d3cabf94?api-version=2023 -11-15-preview
388
+ operation-location: https://{your-language-resource-endpoint}/language/analyze-documents/jobs/f1cc29ff-9738-42ea-afa5-98d2d3cabf94?api-version=2024 -11-15-preview
391
389
apim-request-id: e7d6fa0c-0efd-416a-8b1e-1cd9287f5f81
392
390
x-ms-region: West US 2
393
391
Date: Thu, 25 Jan 2024 15:12:32 GMT
@@ -405,8 +403,8 @@ You receive a 202 (Success) response that includes a read-only Operation-Locatio
405
403
406
404
1 . Here's the structure of the ** GET** request:
407
405
408
- ``` http
409
- GET {cognitive-service-endpoint}/language/analyze-documents/jobs/{jobId}?api-version=2023 -11-15-preview
406
+ ``` bash
407
+ GET {cognitive-service-endpoint}/language/analyze-documents/jobs/{jobId}? api-version=2024 -11-15-preview
410
408
```
411
409
412
410
1 . Before you run the command, make these changes:
@@ -418,11 +416,11 @@ You receive a 202 (Success) response that includes a read-only Operation-Locatio
418
416
### Get request
419
417
420
418
``` powershell
421
- cmd /c curl "{your-language-resource-endpoint}/language/analyze-documents/jobs/{jobId}?api-version=2023 -11-15-preview" -i -X GET --header "Content-Type: application/json" --header "Ocp-Apim-Subscription-Key: {your-key}"
419
+ cmd /c curl "{your-language-resource-endpoint}/language/analyze-documents/jobs/{jobId}?api-version=2024 -11-15-preview" -i -X GET --header "Content-Type: application/json" --header "Ocp-Apim-Subscription-Key: {your-key}"
422
420
```
423
421
424
422
``` bash
425
- curl -v -X GET " {your-language-resource-endpoint}/language/analyze-documents/jobs/{jobId}?api-version=2023 -11-15-preview" --header " Content-Type: application/json" --header " Ocp-Apim-Subscription-Key: {your-key}"
423
+ curl -v -X GET " {your-language-resource-endpoint}/language/analyze-documents/jobs/{jobId}?api-version=2024 -11-15-preview" --header " Content-Type: application/json" --header " Ocp-Apim-Subscription-Key: {your-key}"
426
424
```
427
425
428
426
#### Examine the response
0 commit comments