---
title: "Copy Custom Model"
method: POST
path: "/custom/models/{modelId}/copy"
---

# Copy Custom Model

`POST /custom/models/{modelId}/copy`

Copy custom model stored in this resource (the source) to user specified target Form Recognizer resource.

## Path parameters

- `modelId` string, uuid, required

## Request body

- CopyRequest — Request parameter to copy an existing custom model from the source resource to a target resource referenced by the resource ID.
  - `targetResourceId` string, required — Azure Resource Id of the target Form Recognizer resource where the model is copied to.
  - `targetResourceRegion` string, required — Location of the target Azure resource. A valid Azure region name supported by Cognitive Services.
  - `copyAuthorization` CopyAuthorizationResult, required — Request parameter that contains authorization claims for copy operation.
    - `modelId` string, required — Model identifier.
    - `accessToken` string, required — Token claim used to authorize the request.
    - `expirationDateTimeTicks` integer, required — The time when the access token expires. The date is represented as the number of seconds from 1970-01-01T0:0:0Z UTC until the expiration time.

## Response `202`

Copy request is queued successfully.

## Other responses

- `default` — Response entity accompanying non-successful responses containing additional details about the error.

## Changes

- **2020-04-27** `f77e48809807` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/azure/apis/form-recognizer-client/changes/custom/models/:modelId/copy/post.md)

---

[API](https://skmtc.dev/azure/apis/form-recognizer-client.md) · [All operations](https://skmtc.dev/azure/apis/form-recognizer-client/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/form-recognizer-client/revisions/f77e48809807/schema)
