You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -65,7 +65,7 @@ The process for copying a custom model consists of the following steps:
65
65
The following HTTP request gets copy authorization from your target resource. You need to enter the endpoint and key of your target resource as headers.
66
66
67
67
```http
68
-
POST https://<your-resource-name>/documentintelligence/documentModels/{modelId}:copyTo?api-version=2024-02-29-preview
68
+
POST https://<your-resource-endpoint>/documentintelligence/documentModels/{modelId}:copyTo?api-version=2024-02-29-preview
69
69
Ocp-Apim-Subscription-Key: {<your-key>}
70
70
```
71
71
@@ -96,7 +96,7 @@ You receive a `200` response code with response body that contains the JSON payl
96
96
The following HTTP request starts the copy operation on the source resource. You need to enter the endpoint and key of your source resource as the url and header. Notice that the request URL contains the model ID of the source model you want to copy.
97
97
98
98
```http
99
-
POST https://<your-resource-name>/documentintelligence/documentModels/{modelId}:copyTo?api-version=2024-02-29-preview
99
+
POST https://<your-resource-endpoint>/documentintelligence/documentModels/{modelId}:copyTo?api-version=2024-02-29-preview
100
100
Ocp-Apim-Subscription-Key: {<your-key>}
101
101
```
102
102
@@ -117,7 +117,7 @@ You receive a `202\Accepted` response with an Operation-Location header. This va
You can also use the **[Get model](/rest/api/aiservices/document-models/get-model?view=rest-aiservices-2023-07-31&preserve-view=true&tabs=HTTP)** API to track the status of the operation by querying the target model. Call the API using the target model ID that you copied down from the [Generate Copy authorization request](#generate-copy-authorization-request) response.
136
136
137
137
```http
138
-
GET https://<your-resource-name>/documentintelligence/documentModels/{modelId}?api-version=2024-02-29-preview" -H "Ocp-Apim-Subscription-Key: <your-key>
138
+
GET https://<your-resource-endpoint>/documentintelligence/documentModels/{modelId}?api-version=2024-02-29-preview" -H "Ocp-Apim-Subscription-Key: <your-key>
139
139
```
140
140
141
141
In the response body, you see information about the model. Check the `"status"` field for the status of the model.
@@ -155,7 +155,7 @@ The following code snippets use cURL to make API calls. You also need to fill in
155
155
**Request**
156
156
157
157
```bash
158
-
curl -i -X POST "<your-resource-name>/documentintelligence/documentModels:authorizeCopy?api-version=2024-02-29-preview"
158
+
curl -i -X POST "<your-resource-endpoint>/documentintelligence/documentModels:authorizeCopy?api-version=2024-02-29-preview"
159
159
-H "Content-Type: application/json"
160
160
-H "Ocp-Apim-Subscription-Key: <YOUR-KEY>"
161
161
--data-ascii "{
@@ -182,7 +182,7 @@ curl -i -X POST "<your-resource-name>/documentintelligence/documentModels:author
182
182
**Request**
183
183
184
184
```bash
185
-
curl -i -X POST "<your-resource-name>/documentintelligence/documentModels/{modelId}:copyTo?api-version=2024-02-29-preview"
185
+
curl -i -X POST "<your-resource-endpoint>/documentintelligence/documentModels/{modelId}:copyTo?api-version=2024-02-29-preview"
186
186
-H "Content-Type: application/json"
187
187
-H "Ocp-Apim-Subscription-Key: <YOUR-KEY>"
188
188
--data-ascii "{
@@ -200,7 +200,7 @@ curl -i -X POST "<your-resource-name>/documentintelligence/documentModels/{model
0 commit comments