{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/webex/json-schema/webex-post-apply-line-key-template-request-schema.json",
  "title": "PostApplyLineKeyTemplateRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/webex-device-call-settings-api-openapi.yml#/components/schemas/PostApplyLineKeyTemplateRequest",
  "type": "object",
  "required": [
    "action",
    "templateId"
  ],
  "properties": {
    "action": {
      "type": "string",
      "enum": [
        "APPLY_TEMPLATE",
        "APPLY_DEFAULT_TEMPLATES"
      ],
      "description": "Line key Template action to perform.\n * `APPLY_TEMPLATE` - Used to apply LinekeyTemplate to devices.\n * `APPLY_DEFAULT_TEMPLATES` - Used to reset devices to its default Linekey Template configurations.\n"
    },
    "templateId": {
      "type": "string",
      "description": "`templateId` is required for `APPLY_TEMPLATE` action."
    },
    "locationIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Used to search for devices only in the given locations."
    },
    "excludeDevicesWithCustomLayout": {
      "type": "boolean",
      "description": "Indicates whether to exclude devices with custom layout."
    },
    "includeDeviceTags": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Include devices only with these tags."
    },
    "excludeDeviceTags": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Exclude devices with these tags."
    },
    "advisoryTypes": {
      "$ref": "#/$defs/LineKeyTemplateAdvisoryTypes",
      "description": "Refine search with advisories."
    }
  },
  "$defs": {
    "LineKeyTemplateAdvisoryTypes": {
      "type": "object",
      "properties": {
        "moreSharedAppearancesEnabled": {
          "type": "boolean",
          "description": "Refine search to apply changes to devices that contain the warning \"More shared/virtual line appearances than shared/virtual lines requested\"."
        },
        "fewSharedAppearancesEnabled": {
          "type": "boolean",
          "description": "Refine search to apply changes to devices that contain the warning \"More shared/virtual lines requested than shared/virtual line appearances\"."
        },
        "moreMonitorAppearancesEnabled": {
          "type": "boolean",
          "description": "Refine search to apply changes to devices that contain the warning \"More monitored line appearances than monitored lines in the user's monitoring list\"."
        },
        "moreCPEAppearancesEnabled": {
          "type": "boolean",
          "description": "Refine search to apply changes to devices that contain the warning \"More call park extension line appearances than call park extensions in user's monitoring list\"."
        },
        "moreModeManagementAppearancesEnabled": {
          "type": "boolean",
          "description": "Refine search to apply changes to devices that contain the warning \"More mode management lines configured for the device\". The default value is false."
        }
      }
    }
  }
}