{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/responsys/json-schema/responsys-merge-org-list-recipients-schema.json",
  "title": "Merge Org List Recipients",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/responsys-profile-lists-api-openapi.yml#/components/schemas/mergeOrgListRecipients",
  "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 in 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"
            }
          }
        }
      }
    },
    "matchColumnName1": {
      "enum": [
        "RIID_",
        "CUSTOMER_ID_",
        "EMAIL_ADDRESS_",
        "MOBILE_NUMBER_",
        "EMAIL_MD5_HASH_",
        "EMAIL_SHA256_HASH_"
      ],
      "type": "string",
      "description": "First match column for determining whether an insert or update should occur."
    },
    "insertOnNoMatch": {
      "type": "boolean",
      "description": "Indicates what should be done for records where a match is not found (true = insert / false = no insert)."
    },
    "updateOnMatch": {
      "enum": [
        "REPLACE_ALL",
        "NO_UPDATE"
      ],
      "type": "string",
      "description": "Controls how the existing record should be updated."
    }
  },
  "required": [
    "recordData",
    "matchColumnName1"
  ]
}