{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-ai-foundry/json-schema/azure-ai-foundry-pending-upload-response-schema.json",
  "title": "PendingUploadResponse",
  "description": "Represents the response for a pending upload request",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/azure-ai-foundry-datasets-api-openapi.yml#/components/schemas/PendingUploadResponse",
  "type": "object",
  "properties": {
    "blobReference": {
      "$ref": "#/$defs/BlobReference",
      "description": "Container-level read, write, list SAS."
    },
    "pendingUploadId": {
      "type": "string",
      "description": "ID for this upload request."
    },
    "version": {
      "type": "string",
      "description": "Version of asset to be created if user did not specify version when initially creating upload"
    },
    "pendingUploadType": {
      "type": "string",
      "description": "BlobReference is the only supported type",
      "enum": [
        "BlobReference"
      ],
      "x-ms-enum": {
        "modelAsString": false
      }
    }
  },
  "required": [
    "blobReference",
    "pendingUploadId",
    "pendingUploadType"
  ],
  "$defs": {
    "BlobReference": {
      "type": "object",
      "description": "Blob reference details.",
      "properties": {
        "blobUri": {
          "type": "string",
          "description": "Blob URI path for client to upload data. Example: `https://blob.windows.core.net/Container/Path`"
        },
        "storageAccountArmId": {
          "type": "string",
          "description": "ARM ID of the storage account to use."
        },
        "credential": {
          "$ref": "#/$defs/SasCredential",
          "description": "Credential info to access the storage account."
        }
      },
      "required": [
        "blobUri",
        "storageAccountArmId",
        "credential"
      ]
    },
    "SasCredential": {
      "type": "object",
      "description": "SAS Credential definition",
      "properties": {
        "sasUri": {
          "type": "string",
          "description": "SAS uri",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "Type of credential",
          "enum": [
            "SAS"
          ],
          "x-ms-enum": {
            "modelAsString": false
          },
          "readOnly": true
        }
      },
      "required": [
        "sasUri",
        "type"
      ]
    }
  }
}