Skip to content

Commit 78f1744

Browse files
Merge pull request #521 from laujan/patch-3
Update rest-api.md
2 parents 5f5b425 + 2cd9528 commit 78f1744

File tree

1 file changed

+5
-5
lines changed
  • articles/ai-services/document-intelligence/quickstarts/includes

1 file changed

+5
-5
lines changed

articles/ai-services/document-intelligence/quickstarts/includes/rest-api.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.date: 09/09/2024
1010
ms.author: lajanuar
1111
---
1212

13-
<!-- markdownlint-disable MD036 -->
13+
<!-- markdownlint-disable MD036 -->
1414

1515
:::moniker range="doc-intel-4.0.0"
1616
| [Document Intelligence REST API](/rest/api/aiservices/operation-groups?view=rest-aiservices-v4.0%20(2024-07-31-preview)&preserve-view=true) | [Supported Azure SDKS](../../sdk-overview-v4-0.md)
@@ -109,7 +109,7 @@ Before you run the cURL command, make the following changes to the [post request
109109
:::moniker range="doc-intel-4.0.0"
110110

111111
```bash
112-
curl -v -i POST "{endpoint}/documentintelligence/documentModels/{modelId}:analyze?api-version=2024-02-29-preview" -H "Content-Type: application/json" -H "Ocp-Apim-Subscription-Key: {key}" --data-ascii "{'urlSource': '{your-document-url}'}"
112+
curl -v -i POST "{endpoint}/documentintelligence/documentModels/{modelId}:analyze?api-version=2024-07-31-preview" -H "Content-Type: application/json" -H "Ocp-Apim-Subscription-Key: {key}" --data-ascii "{'urlSource': '{your-document-url}'}"
113113
```
114114

115115
:::moniker-end
@@ -140,7 +140,7 @@ You receive a `202 (Success)` response that includes a read-only **Operation-Loc
140140

141141
:::moniker range="doc-intel-4.0.0"
142142

143-
After you call the [`Analyze document`](/rest/api/aiservices/document-models/analyze-document?view=rest-aiservices-2024-02-29-preview&preserve-view=true&branch=docintelligence&tabs=HTTP) API, call the [**Get analyze result**](/rest/api/aiservices/document-models/get-analyze-result?view=rest-aiservices-2024-02-29-preview&preserve-view=true&branch=docintelligence&tabs=HTTP) API to get the status of the operation and the extracted data. Before you run the command, make these changes:
143+
After you call the [`Analyze document`](/rest/api/aiservices/document-models/analyze-document?view=rest-aiservices-v4.0%20(2024-07-31-preview)&preserve-view=true&tabs=HTTP) API, call the [**Get analyze result**](/rest/api/aiservices/document-models/get-analyze-result?view=rest-aiservices-v4.0%20(2024-07-31-preview)&preserve-view=true&tabs=HTTP) API to get the status of the operation and the extracted data. Before you run the command, make these changes:
144144
:::moniker-end
145145

146146
:::moniker range="doc-intel-3.1.0"
@@ -165,7 +165,7 @@ After you call the [`Analyze document`](/rest/api/aiservices/document-models/ana
165165
:::moniker range="doc-intel-4.0.0"
166166

167167
```bash
168-
curl -v -X GET "{endpoint}/documentintelligence/documentModels/{modelId}/analyzeResults/{resultId}?api-version=2024-02-29-preview" -H "Ocp-Apim-Subscription-Key: {key}"
168+
curl -v -X GET "{endpoint}/documentintelligence/documentModels/{modelId}/analyzeResults/{resultId}?api-version=2024-07-31-preview" -H "Ocp-Apim-Subscription-Key: {key}"
169169
```
170170

171171
:::moniker-end
@@ -202,7 +202,7 @@ You receive a `200 (Success)` response with JSON output. The first field, `"stat
202202
"createdDateTime": "2024-03-25T19:31:37Z",
203203
"lastUpdatedDateTime": "2024-03-25T19:31:43Z",
204204
"analyzeResult": {
205-
"apiVersion": "2024-02-29-preview",
205+
"apiVersion": "2024-07-31-preview",
206206
"modelId": "prebuilt-invoice",
207207
"stringIndexType": "textElements"...
208208
..."pages": [

0 commit comments

Comments
 (0)