{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pipeliner/json-schema/pipeliner-create-cloud-object-relation-input-schema.json",
  "title": "createCloudObjectRelationInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pipeliner-document-api-openapi.yml#/components/schemas/createCloudObjectRelationInput",
  "properties": {
    "modified": {
      "type": "string",
      "format": "date-time",
      "description": "Last modification time.",
      "readOnly": true
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "Creation time.",
      "readOnly": true
    },
    "cloud_object": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uri"
        }
      },
      "description": "Cloud object (file) being linked.\n\nRelation to CloudObject, see: 'createCloudObjectInput' object for properties."
    },
    "report_schedule": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uri"
        }
      },
      "description": "Report schedule the file is attached to (e.g. an exported report).\n\nRelation to ReportSchedule, see: 'createReportScheduleInput' object for properties."
    },
    "text_message": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uri"
        }
      },
      "description": "Text message (SMS/MMS) the file is attached to.\n\nRelation to TextMessage, see: 'createTextMessageInput' object for properties."
    },
    "account_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the linked account."
    },
    "activity_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the linked appointment or task, or empty when not linked."
    },
    "approval_process_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the linked approval process."
    },
    "call_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the linked call."
    },
    "cloud_object_folder_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the folder within the parent record, or empty when stored at the record root."
    },
    "cloud_object_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the linked file."
    },
    "contact_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the linked contact."
    },
    "custom_entity_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the linked custom entity record."
    },
    "email_sequence_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the linked email sequence."
    },
    "email_template_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the linked email template."
    },
    "field_mapping_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the linked field mapping."
    },
    "lead_oppty_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the linked lead or opportunity, or empty when not linked."
    },
    "media_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the linked media record."
    },
    "message_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the linked email or memo, or empty when not linked."
    },
    "online_form_field_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the online form field the file was uploaded into."
    },
    "online_form_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the linked online form submission."
    },
    "process_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the linked sales process."
    },
    "process_template_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the linked sales process template."
    },
    "project_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the linked project."
    },
    "quote_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the linked quote."
    },
    "report_schedule_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the linked report schedule."
    },
    "text_message_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the linked text message."
    },
    "revision": {
      "type": "integer",
      "format": "int32",
      "description": "Revision when entity was lastly changed."
    }
  }
}