{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-document-intelligence/json-schema/azure-document-intelligence-copy-request-schema.json",
  "title": "CopyRequest",
  "description": "Request parameter to copy an existing custom model from the source resource to a target resource referenced by the resource ID.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/azure-document-intelligence-custom-api-openapi.yml#/components/schemas/CopyRequest",
  "required": [
    "targetResourceId",
    "targetResourceRegion",
    "copyAuthorization"
  ],
  "type": "object",
  "properties": {
    "targetResourceId": {
      "description": "Azure Resource Id of the target Form Recognizer resource where the model is copied to.",
      "maxLength": 1024,
      "type": "string",
      "pattern": "^/subscriptions/[^/]*/resourceGroups/[^/]*/providers/Microsoft.CognitiveServices/accounts/[^/]*$",
      "x-ms-azure-resource": true
    },
    "targetResourceRegion": {
      "description": "Location of the target Azure resource. A valid Azure region name supported by Cognitive Services.",
      "type": "string",
      "pattern": "^[a-z0-9]+$",
      "minLength": 1,
      "maxLength": 24
    },
    "copyAuthorization": {
      "description": "Entity that encodes claims to authorize the copy request.",
      "$ref": "#/$defs/CopyAuthorizationResult"
    }
  },
  "$defs": {
    "CopyAuthorizationResult": {
      "description": "Request parameter that contains authorization claims for copy operation.",
      "required": [
        "modelId",
        "accessToken",
        "expirationDateTimeTicks"
      ],
      "type": "object",
      "properties": {
        "modelId": {
          "description": "Model identifier.",
          "type": "string"
        },
        "accessToken": {
          "description": "Token claim used to authorize the request.",
          "type": "string"
        },
        "expirationDateTimeTicks": {
          "description": "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.",
          "type": "integer",
          "format": "int64"
        }
      }
    }
  }
}