---
title: "Copies a model from one subscription to another."
method: POST
path: "/models/{id}:copy"
tags: ["Custom Speech models:"]
---

# Copies a model from one subscription to another.

`POST /models/{id}:copy`

This method can be used to copy a model from this speech resource to a target one.
The authorization is obtained on the target speech resource.
Only custom models can be copied to another speech resource.

## Path parameters

- `id` string, uuid, required

## Request body

- ModelCopyAuthorization
  - `targetResourceRegion` string, required — The region (aka location) of the target speech resource (e.g., westus2).
  - `targetResourceId` string, required — The Azure Resource ID of the target speech resource.
  - `targetResourceEndpoint` string, required — The endpoint (base url) of the target resource (with custom domain name when it is used).
  - `sourceResourceId` string, required — The Azure Resource ID of the source speech resource.
  - `expirationDateTime` string, date-time, required — The expiration date of this copy authorization.
  - `id` string, required — The ID of this copy authorization.

## Response `202`

The response contains information about the entity as payload and its location as header.

- Operation
  - `id` string, uuid, required — The identifier of this Operation.
  - `result` OperationResult
    - `link` string, uri — The link to the result of the operation.
  - `error` EntityError
    - `code` string — The code of this error.
    - `message` string — The message for this error.
  - `self` string, uri — The location of this entity.
  - `lastActionDateTime` string, date-time — The time-stamp when the current status was entered. The time stamp is encoded as ISO 8601 date and time format ("YYYY-MM-DDThh:mm:ssZ", see https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations).
  - `status` 'NotStarted' | 'Running' | 'Succeeded' | 'Failed' — Describe the current state of the API
  - `createdDateTime` string, date-time — The time-stamp when the object was created. The time stamp is encoded as ISO 8601 date and time format ("YYYY-MM-DDThh:mm:ssZ", see https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations).

## Other responses

- `default` — An error occurred.

---

[API](https://skmtc.net/azure/apis/cognitiveservices-speech-speechtotext.md) · [All operations](https://skmtc.net/azure/apis/cognitiveservices-speech-speechtotext/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/cognitiveservices-speech-speechtotext/revisions/931821089e0d/schema)
