{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-chat-integrations-for-workspace/json-schema/google-chat-integrations-for-workspace-upload-attachment-response-schema.json",
  "title": "UploadAttachmentResponse",
  "description": "Response of uploading an attachment.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-chat-integrations-for-workspace-media-api-openapi.yml#/components/schemas/UploadAttachmentResponse",
  "properties": {
    "attachmentDataRef": {
      "$ref": "#/$defs/AttachmentDataRef",
      "description": "Reference to the uploaded attachment."
    }
  },
  "type": "object",
  "$defs": {
    "AttachmentDataRef": {
      "properties": {
        "attachmentUploadToken": {
          "type": "string",
          "description": "Optional. Opaque token containing a reference to an uploaded attachment. Treated by clients as an opaque string and used to create or update Chat messages with attachments."
        },
        "resourceName": {
          "type": "string",
          "description": "Optional. The resource name of the attachment data. This field is used with the media API to download the attachment data."
        }
      },
      "description": "A reference to the attachment data.",
      "type": "object"
    }
  }
}