{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-connect/json-schema/amazon-connect-update-user-config-request-schema.json",
  "title": "UpdateUserConfigRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-connect-operations-api-openapi.yml#/components/schemas/UpdateUserConfigRequest",
  "type": "object",
  "properties": {
    "AutoAcceptConfigs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AutoAcceptConfig"
      },
      "description": "The list of auto-accept configuration settings for each channel. When auto-accept is enabled for a channel, available agents are automatically connected to contacts from that channel without needing to manually accept. Auto-accept connects agents to contacts in less than one second."
    },
    "AfterContactWorkConfigs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AfterContactWorkConfigPerChannel"
      },
      "description": "The list of after contact work (ACW) timeout configuration settings for each channel. ACW timeout specifies how many seconds agents have for after contact work, such as entering notes about the contact. The minimum setting is 1 second, and the maximum is 2,000,000 seconds (24 days). Enter 0 for an indefinite amount of time, meaning agents must manually choose to end ACW."
    },
    "PhoneNumberConfigs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PhoneNumberConfig"
      },
      "description": "The list of phone number configuration settings for each channel."
    },
    "PersistentConnectionConfigs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PersistentConnectionConfig"
      },
      "description": "The list of persistent connection configuration settings for each channel."
    },
    "VoiceEnhancementConfigs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/VoiceEnhancementConfig"
      },
      "description": "The list of voice enhancement configuration settings for each channel."
    },
    "UserId": {
      "type": "string",
      "description": "The identifier of the user account."
    },
    "InstanceId": {
      "type": "string",
      "description": "The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance."
    }
  },
  "required": [
    "UserId",
    "InstanceId"
  ],
  "$defs": {
    "AfterContactWorkConfig": {
      "type": "object",
      "properties": {
        "AfterContactWorkTimeLimit": {
          "type": "integer",
          "description": "The ACW timeout duration in seconds. Minimum: 1 second. Maximum: 2,000,000 seconds (24 days). Enter 0 for indefinite ACW time."
        }
      }
    },
    "AfterContactWorkConfigPerChannel": {
      "type": "object",
      "properties": {
        "Channel": {
          "type": "string",
          "enum": [
            "VOICE",
            "CHAT",
            "TASK",
            "EMAIL"
          ],
          "description": "The channel for this ACW timeout configuration. Valid values: VOICE, CHAT, TASK, EMAIL."
        },
        "AfterContactWorkConfig": {
          "$ref": "#/$defs/AfterContactWorkConfig"
        },
        "AgentFirstCallbackAfterContactWorkConfig": {
          "$ref": "#/$defs/AfterContactWorkConfig"
        }
      },
      "required": [
        "Channel",
        "AfterContactWorkConfig"
      ]
    },
    "AutoAcceptConfig": {
      "type": "object",
      "properties": {
        "Channel": {
          "type": "string",
          "enum": [
            "VOICE",
            "CHAT",
            "TASK",
            "EMAIL"
          ],
          "description": "The channel for this auto-accept configuration. Valid values: VOICE, CHAT, TASK, EMAIL."
        },
        "AutoAccept": {
          "type": "boolean",
          "description": "Indicates whether auto-accept is enabled for this channel. When enabled, available agents are automatically connected to contacts from this channel."
        },
        "AgentFirstCallbackAutoAccept": {
          "type": "boolean",
          "description": "Indicates whether auto-accept is enabled for agent-first callbacks. This setting only applies to the VOICE channel."
        }
      },
      "required": [
        "Channel",
        "AutoAccept"
      ]
    },
    "PersistentConnectionConfig": {
      "type": "object",
      "properties": {
        "Channel": {
          "type": "string",
          "enum": [
            "VOICE",
            "CHAT",
            "TASK",
            "EMAIL"
          ],
          "description": "Configuration settings for persistent connection. Only VOICE is supported for this data type."
        },
        "PersistentConnection": {
          "type": "boolean",
          "description": "Indicates whether persistent connection is enabled. When enabled, the agent's connection is maintained after a call ends, enabling subsequent calls to connect faster."
        }
      },
      "required": [
        "Channel",
        "PersistentConnection"
      ]
    },
    "PhoneNumberConfig": {
      "type": "object",
      "properties": {
        "Channel": {
          "type": "string",
          "enum": [
            "VOICE",
            "CHAT",
            "TASK",
            "EMAIL"
          ],
          "description": "The channel for this phone number configuration. Only VOICE is supported for this data type."
        },
        "PhoneType": {
          "type": "string",
          "enum": [
            "SOFT_PHONE",
            "DESK_PHONE"
          ],
          "description": "The phone type. Valid values: SOFT_PHONE, DESK_PHONE."
        },
        "PhoneNumber": {
          "type": "string",
          "description": "The phone number for the user's desk phone."
        }
      },
      "required": [
        "Channel",
        "PhoneType"
      ]
    },
    "VoiceEnhancementConfig": {
      "type": "object",
      "properties": {
        "Channel": {
          "type": "string",
          "enum": [
            "VOICE",
            "CHAT",
            "TASK",
            "EMAIL"
          ],
          "description": "The channel for this voice enhancement configuration. Only VOICE is supported for this data type."
        },
        "VoiceEnhancementMode": {
          "type": "string",
          "enum": [
            "VOICE_ISOLATION",
            "NOISE_SUPPRESSION",
            "NONE"
          ],
          "description": "The voice enhancement mode."
        }
      },
      "required": [
        "Channel",
        "VoiceEnhancementMode"
      ]
    }
  }
}