{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/popp/json-schema/popp-update-organization-config-request-schema.json",
  "title": "UpdateOrganizationConfigRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/popp-organization-configuration-api-openapi.yml#/components/schemas/UpdateOrganizationConfigRequest",
  "type": "object",
  "properties": {
    "agentId": {
      "type": "string",
      "description": "A valid ID of an existing agent. Cannot be used together with agentName and agentTone."
    },
    "agentName": {
      "type": "string",
      "description": "Name of the agent. Must be provided together with agentTone. Cannot be used with agentId."
    },
    "agentTone": {
      "type": "string",
      "enum": [
        "CASUAL",
        "ENCOURAGING",
        "FRIENDLY",
        "MOTIVATIONAL",
        "NEUTRAL",
        "PROFESSIONAL"
      ],
      "description": "Tone of the agent. Must be provided together with agentName. Cannot be used with agentId."
    },
    "conversationTimeout": {
      "type": "number",
      "minimum": 24,
      "description": "Time in hours before conversations auto-close"
    },
    "rejectionMessage": {
      "type": "string",
      "description": "Message sent when the candidate is rejected"
    },
    "closingMessage": {
      "type": "string",
      "description": "Message sent when the candidate is not interested"
    },
    "globalContext": {
      "type": "string",
      "description": "Shared configuration and context applied across all campaigns in the organization"
    },
    "templates": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "uniqueItems": true,
      "description": "Array of template IDs"
    },
    "protectedCharacteristics": {
      "type": "object",
      "description": "Characteristics the search agent must refuse to search on. Merged onto the current settings, so you only need to send what you are changing. Send a characteristic as true to protect it again. Anything never set stays protected.",
      "properties": {
        "ageBias": {
          "type": "boolean",
          "description": "true protects this characteristic and the search agent refuses to search on it; false allows it."
        },
        "sexBias": {
          "type": "boolean",
          "description": "true protects this characteristic and the search agent refuses to search on it; false allows it."
        },
        "genderIdentityBias": {
          "type": "boolean",
          "description": "true protects this characteristic and the search agent refuses to search on it; false allows it."
        },
        "raceEthnicityBias": {
          "type": "boolean",
          "description": "true protects this characteristic and the search agent refuses to search on it; false allows it."
        },
        "nationalOriginBias": {
          "type": "boolean",
          "description": "true protects this characteristic and the search agent refuses to search on it; false allows it."
        },
        "religionBias": {
          "type": "boolean",
          "description": "true protects this characteristic and the search agent refuses to search on it; false allows it."
        },
        "sexualOrientationBias": {
          "type": "boolean",
          "description": "true protects this characteristic and the search agent refuses to search on it; false allows it."
        },
        "disabilityBias": {
          "type": "boolean",
          "description": "true protects this characteristic and the search agent refuses to search on it; false allows it."
        },
        "maritalStatusBias": {
          "type": "boolean",
          "description": "true protects this characteristic and the search agent refuses to search on it; false allows it."
        },
        "pregnancyStatusBias": {
          "type": "boolean",
          "description": "true protects this characteristic and the search agent refuses to search on it; false allows it."
        },
        "veteranStatusBias": {
          "type": "boolean",
          "description": "true protects this characteristic and the search agent refuses to search on it; false allows it."
        },
        "criminalHistoryBias": {
          "type": "boolean",
          "description": "true protects this characteristic and the search agent refuses to search on it; false allows it."
        },
        "medicalConditionsBias": {
          "type": "boolean",
          "description": "true protects this characteristic and the search agent refuses to search on it; false allows it."
        },
        "englishProficiencyBias": {
          "type": "boolean",
          "description": "true protects this characteristic and the search agent refuses to search on it; false allows it."
        }
      },
      "additionalProperties": false
    }
  },
  "minProperties": 1,
  "additionalProperties": false
}