{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/responsys/json-schema/responsys-profile-extension-recipients-schema.json",
  "title": "Profile Extension Recipients",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/responsys-profile-extension-recipients-api-openapi.yml#/components/schemas/profileExtensionRecipients",
  "type": "object",
  "properties": {
    "recordData": {
      "description": "Record data that represents field names and corresponding values for the recipient.",
      "required": [
        "fieldNames",
        "records"
      ],
      "type": "object",
      "properties": {
        "fieldNames": {
          "type": "array",
          "description": "Field names of the Profile List. Must contain contain at least one of the merge key fields from the Profile List.",
          "items": {
            "type": "string"
          }
        },
        "records": {
          "type": "array",
          "description": "Array of values corresponding to the fieldNames. Each element in the array represents a single recipient.",
          "items": {
            "type": "array",
            "description": "Field values for the recipient in the Profile List",
            "items": {
              "type": "string"
            }
          }
        },
        "mapTemplateName": {
          "type": "string",
          "description": "The map template in Responsys that can be used to map field names of the Profile List to column names."
        }
      }
    },
    "insertOnNoMatch": {
      "description": "Specifies whether a recipient record should be inserted into the Profile Extension if it does not already exist. Only used during the merge operation.",
      "type": "boolean"
    },
    "updateOnMatch": {
      "description": "Specifies whether a recipient record should be updated in the Profile Extension if it already exists. Only used during the merge operation.",
      "enum": [
        "REPLACE_ALL",
        "NO_UPDATE"
      ]
    },
    "matchColumn": {
      "description": "The column name to be used to match the recipient record to the Profile Extension records. Only used during the merge operation.",
      "enum": [
        "RIID",
        "CUSTOMER_ID",
        "EMAIL_ADDRESS",
        "MOBILE_NUMBER",
        "EMAIL_MD5_HASH",
        "EMAIL_SHA256_HASH"
      ]
    }
  },
  "required": [
    "recordData",
    "insertOnNoMatch",
    "updateOnMatch",
    "matchColumn"
  ]
}