{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-connect/json-schema/amazon-connect-create-upload-job-request-schema.json",
  "title": "CreateUploadJobRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-connect-upload-jobs-api-openapi.yml#/components/schemas/CreateUploadJobRequest",
  "type": "object",
  "properties": {
    "DomainName": {
      "type": "string",
      "description": "The unique name of the domain. Domain should be exists for the upload job to be created."
    },
    "DisplayName": {
      "type": "string",
      "description": "The unique name of the upload job. Could be a file name to identify the upload job."
    },
    "Fields": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/ObjectTypeField"
      },
      "description": "The mapping between CSV Columns and Profile Object attributes. A map of the name and ObjectType field."
    },
    "UniqueKey": {
      "type": "string",
      "description": "The unique key columns for de-duping the profiles used to map data to the profile."
    },
    "DataExpiry": {
      "type": "integer",
      "description": "The expiry duration for the profiles ingested with the job. If not provided, the system default of 2 weeks is used."
    }
  },
  "required": [
    "DomainName",
    "DisplayName",
    "Fields",
    "UniqueKey"
  ],
  "$defs": {
    "ObjectTypeField": {
      "type": "object",
      "properties": {
        "Source": {
          "type": "string",
          "description": "A field of a ProfileObject. For example: _source.FirstName, where “_source” is a ProfileObjectType of a Zendesk user and “FirstName” is a field in that ObjectType."
        },
        "Target": {
          "type": "string",
          "description": "The location of the data in the standard ProfileObject model. For example: _profile.Address.PostalCode. Do not include sensitive or personally identifiable information (PII) in the target field name."
        },
        "ContentType": {
          "type": "string",
          "enum": [
            "STRING",
            "NUMBER",
            "PHONE_NUMBER",
            "EMAIL_ADDRESS",
            "NAME"
          ],
          "description": "The content type of the field. Used for determining equality when searching."
        }
      }
    }
  }
}