---
title: "POST /documentModels/{modelId}:copyTo"
method: POST
path: "/documentModels/{modelId}:copyTo"
---

# POST /documentModels/{modelId}:copyTo

`POST /documentModels/{modelId}:copyTo`

Copies document model to the target resource, region, and modelId.

## Path parameters

- `modelId` string, required

## Query parameters

- `api-version` string, required

## Request body

- ModelCopyAuthorization — Authorization to copy a document model to the specified target resource and modelId.
  - `targetResourceId` string, required — ID of the target Azure resource where the document model should be copied to.
  - `targetResourceRegion` string, required — Location of the target Azure resource where the document model should be copied to.
  - `targetModelId` string, required — Identifier of the target document model.
  - `targetModelLocation` string, uri, required — URL of the copied document model in the target account.
  - `accessToken` string, required — Token used to authorize the request.
  - `expirationDateTime` string, date-time, required — Date/time when the access token expires.

## Response `202`

The request has been accepted for processing, but processing has not yet completed.

## Other responses

- `default` — An unexpected error response.

## Changes

> 6 revisions in range; 1 could not be searched.

- **2023-11-11** (2023-10-31-preview) `39529146a387` — 1 warning
  - the optional response header `Retry-After` removed for the status `202`

[Change history](https://skmtc.dev/azure/apis/ai-documentintelligence/changes/documentModels/:modelId:copyTo/post.md)

---

[API](https://skmtc.dev/azure/apis/ai-documentintelligence.md) · [All operations](https://skmtc.dev/azure/apis/ai-documentintelligence/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/ai-documentintelligence/revisions/3f750834da9e/schema)
