DocumentationBlogSupport
Log inSign up
Log inSign up
BlogSupport
Build
Getting StartedPlatform Introduction
Embedded Apps
What's NewOverviewDeveloper GuideSidebar API Quick StartSubmission Checklist for Embedded Apps
Design Guidelines
MessagingMeetingsDevicesSidebarSidebar on Mobile
API Reference
BotsButtons and CardsIntegrationsBYODSService AppsService App GuestsService Apps G2GGuest IssuerWidgetsWebex ConnectLogin with WebexInstant ConnectInstant Connect Meeting LinksDeveloper SandboxBeta ProgramSubmit Your AppSupport PolicyFAQs
APIs
API Behavior ChangesPartners API GuideXML API DeprecationAccess the APIREST API BasicsCompliance
Webex APIs
Reference
Data Sources
Admin
OverviewAdmin APIsHybrid ServicesAuthentication
Guides
Hybrid ServicesWebhooksReal-time File DLP BasicsProvisioning APIsBackground ImagesAudit Events Error Reference
Reference
Admin Audit EventsAuthorizationsEventsGroupsHistorical AnalyticsHybrid ClustersHybrid ConnectorsLicensesMeeting QualitiesOrganization ContactsOrganizationsPartner ManagementPartner Reports/TemplatesPartner TagsPeopleRecording ReportRecordingsReport TemplatesReportsResource Group MembershipsResource GroupsRolesSecurity Audit EventsSession TypesSettingsSpace ClassificationsTracking CodesWorkspace LocationsWorkspace Metrics
Webex Calling Beta
Overview
Guides
Integrations and AuthorizationMetadata and Samples
Webex Calling
OverviewSDKs and ToolsWhat's New
Guides
Integrations and AuthorizationProvisioning APIsMetadata and SamplesBackground Images
Reference
Call ControlsCall RoutingCall Settings For MeCalling Service SettingsClient Call SettingsConference ControlsConverged RecordingsDECT Devices SettingsDevice Call Settings
GETGet Device Members
PUTUpdate Members on the device
GETSearch Members
POSTApply Changes for a specific device
GETGet Device Settings
PUTUpdate device settings
GETGet Location Device Settings
GETGet Webex Calling Device Details
PUTUpdate Third Party Device
GETGet Person Devices
PUTModify Hoteling Settings for a Person's Primary Devices
GETGet Workspace Devices
PUTModify Workspace Devices
GETRead the List of Supported Devices
GETRead the device override settings for a organization
POSTCreate a Line Key Template
GETRead the list of Line Key Templates
GETGet details of a Line Key Template
PUTModify a Line Key Template
DELETEDelete a Line Key Template
POSTPreview Apply Line Key Template
POSTApply a Line Key Template
GETGet List of Apply Line Key Template jobs
GETGet the job status of an Apply Line Key Template job
GETGet job errors for an Apply Line Key Template job
GETRead the DECT device type list - Deprecated
GETRead the DECT device type list
POSTValidate a list of MAC address
POSTChange Device Settings Across Organization Or Location Job
GETList Change Device Settings Jobs
GETGet Change Device Settings Job Status
GETList Change Device Settings Job Errors
GETGet Device Layout by Device ID
PUTModify Device Layout by Device ID
POSTRebuild Phones Configuration
GETList Rebuild Phones Jobs
GETGet the Job Status of a Rebuild Phones Job
GETGet Job Errors for a Rebuild Phones Job
GETGet Device Settings for a Person
PUTUpdate Device Settings for a Person
GETGet Device Settings for a Workspace
PUTUpdate Device Settings for a Workspace
GETRead the List of Background Images
POSTUpload a Device Background Image
DELETEDelete Device Background Images
GETGet User Devices Count
DevicesEmergency Services SettingsFeatures: Announcement PlaylistFeatures: Announcement RepositoryFeatures: Auto AttendantFeatures: Call ParkFeatures: Call PickupFeatures: Call QueueFeatures: Call RecordingFeatures: Customer Experience EssentialsFeatures: Hunt GroupFeatures: Operating ModesFeatures: Paging GroupFeatures: Single Number ReachLocation Call SettingsLocation Call Settings: Call HandlingLocation Call Settings: SchedulesLocation Call Settings: VoicemailLocationsNumbersPSTNPartner Reports/TemplatesPeopleRecording ReportReportsReports: Detailed Call HistorySend Activation EmailUser Call SettingsVirtual Line Call SettingsWorkspace Call SettingsWorkspaces
Webex for Broadworks
Overview
Guides
Integrations and AuthorizationDeveloper's Guide
Reference
BroadWorks Billing ReportsBroadWorks EnterprisesBroadWorks SubscribersBroadWorks Workspaces
Webex for Wholesale
Overview
Guides
Developer's Guide
Reference
Wholesale Billing ReportsWholesale Provisioning
Webex for UCM
Guides
Integrations and Authorization
Reference
UCM Profile
Contact Center
Overview
Reference
Data Sources
Customer Journey Data
Overview
Guides
Getting StartedFAQ
Devices
Overview
Guides
Devices
Reference
Device Call Settings
GETGet Device Members
PUTUpdate Members on the device
GETSearch Members
POSTApply Changes for a specific device
GETGet Device Settings
PUTUpdate device settings
GETGet Location Device Settings
GETGet Webex Calling Device Details
PUTUpdate Third Party Device
GETGet Person Devices
PUTModify Hoteling Settings for a Person's Primary Devices
GETGet Workspace Devices
PUTModify Workspace Devices
GETRead the List of Supported Devices
GETRead the device override settings for a organization
POSTCreate a Line Key Template
GETRead the list of Line Key Templates
GETGet details of a Line Key Template
PUTModify a Line Key Template
DELETEDelete a Line Key Template
POSTPreview Apply Line Key Template
POSTApply a Line Key Template
GETGet List of Apply Line Key Template jobs
GETGet the job status of an Apply Line Key Template job
GETGet job errors for an Apply Line Key Template job
GETRead the DECT device type list - Deprecated
GETRead the DECT device type list
POSTValidate a list of MAC address
POSTChange Device Settings Across Organization Or Location Job
GETList Change Device Settings Jobs
GETGet Change Device Settings Job Status
GETList Change Device Settings Job Errors
GETGet Device Layout by Device ID
PUTModify Device Layout by Device ID
POSTRebuild Phones Configuration
GETList Rebuild Phones Jobs
GETGet the Job Status of a Rebuild Phones Job
GETGet Job Errors for a Rebuild Phones Job
GETGet Device Settings for a Person
PUTUpdate Device Settings for a Person
GETGet Device Settings for a Workspace
PUTUpdate Device Settings for a Workspace
GETRead the List of Background Images
POSTUpload a Device Background Image
DELETEDelete Device Background Images
GETGet User Devices Count
Device ConfigurationsDevicesWorkspace LocationsWorkspace MetricsWorkspace PersonalizationWorkspacesxAPI
Directory Services
Reference
Domain ManagementIdentity Organization
Meetings
Overview
Guides
Integrations and AuthorizationWebhooksWebinar GuideMeeting Resource Guide
Reference
Meeting ChatsMeeting Closed CaptionsMeeting InviteesMeeting MessagesMeeting ParticipantsMeeting PollsMeeting PreferencesMeeting Q and AMeeting QualitiesMeeting TranscriptsMeetingsMeetings Summary ReportPeopleRecording ReportRecordingsSession TypesTracking CodesVideo MeshWebhooks
Messaging
Overview
Guides
BotsIntegrations and AuthorizationWebhooksButtons and Cards
Reference
Attachment ActionsEventsMembershipsMessagesPeopleRoom TabsRoomsTeam MembershipsTeamsWebhooks
SCIM 2
Overview
Reference
SCIM 2 BulkSCIM 2 GroupsSCIM 2 Users
Workspace Integrations
OverviewTechnical DetailsControl Hub Features
Webex Status API
Full API Reference
Admin Audit EventsAttachment ActionsAuthorizationsBroadWorks Billing ReportsBroadWorks EnterprisesBroadWorks SubscribersBroadWorks WorkspacesCall ControlsCall RoutingCall Settings For MeCalling Service SettingsClient Call SettingsConference ControlsConverged RecordingsDECT Devices SettingsData SourcesDevice Call Settings
GETGet Device Members
PUTUpdate Members on the device
GETSearch Members
POSTApply Changes for a specific device
GETGet Device Settings
PUTUpdate device settings
GETGet Location Device Settings
GETGet Webex Calling Device Details
PUTUpdate Third Party Device
GETGet Person Devices
PUTModify Hoteling Settings for a Person's Primary Devices
GETGet Workspace Devices
PUTModify Workspace Devices
GETRead the List of Supported Devices
GETRead the device override settings for a organization
POSTCreate a Line Key Template
GETRead the list of Line Key Templates
GETGet details of a Line Key Template
PUTModify a Line Key Template
DELETEDelete a Line Key Template
POSTPreview Apply Line Key Template
POSTApply a Line Key Template
GETGet List of Apply Line Key Template jobs
GETGet the job status of an Apply Line Key Template job
GETGet job errors for an Apply Line Key Template job
GETRead the DECT device type list - Deprecated
GETRead the DECT device type list
POSTValidate a list of MAC address
POSTChange Device Settings Across Organization Or Location Job
GETList Change Device Settings Jobs
GETGet Change Device Settings Job Status
GETList Change Device Settings Job Errors
GETGet Device Layout by Device ID
PUTModify Device Layout by Device ID
POSTRebuild Phones Configuration
GETList Rebuild Phones Jobs
GETGet the Job Status of a Rebuild Phones Job
GETGet Job Errors for a Rebuild Phones Job
GETGet Device Settings for a Person
PUTUpdate Device Settings for a Person
GETGet Device Settings for a Workspace
PUTUpdate Device Settings for a Workspace
GETRead the List of Background Images
POSTUpload a Device Background Image
DELETEDelete Device Background Images
GETGet User Devices Count
Device ConfigurationsDevicesDomain ManagementEmergency Services SettingsEventsFeatures: Announcement PlaylistFeatures: Announcement RepositoryFeatures: Auto AttendantFeatures: Call ParkFeatures: Call PickupFeatures: Call QueueFeatures: Call RecordingFeatures: Customer Experience EssentialsFeatures: Hunt GroupFeatures: Operating ModesFeatures: Paging GroupFeatures: Single Number ReachGroupsGuests ManagementHistorical AnalyticsHybrid ClustersHybrid ConnectorsIdentity OrganizationIssuesLicensesLocation Call SettingsLocation Call Settings: Call HandlingLocation Call Settings: SchedulesLocation Call Settings: VoicemailLocationsMeeting ChatsMeeting Closed CaptionsMeeting InviteesMeeting MessagesMeeting ParticipantsMeeting PollsMeeting PreferencesMeeting Q and AMeeting QualitiesMeeting TranscriptsMeetingsMeetings Summary ReportMembershipsMessagesNumbersOrganization ContactsOrganizationsPSTNPartner ManagementPartner Reports/TemplatesPartner TagsPeopleRecording ReportRecordingsReport TemplatesReportsReports: Detailed Call HistoryResource Group MembershipsResource GroupsRolesRoom TabsRoomsSCIM 2 BulkSCIM 2 GroupsSCIM 2 UsersSecurity Audit EventsSend Activation EmailSession TypesSettingsSiteSpace ClassificationsTeam MembershipsTeamsTracking CodesUCM ProfileUser Call SettingsVideo MeshVirtual Line Call SettingsWebhooksWholesale Billing ReportsWholesale ProvisioningWorkspace Call SettingsWorkspace LocationsWorkspace MetricsWorkspace PersonalizationWorkspacesxAPI
API Changelog
SDKs
Space Meetings Migration
Calling
Introduction
Platform
Web
IntroductionQuickstart
Basics
AuthorizationCore ConceptsCalls
Advanced Features
Call SettingsContactsSupplementary ServicesVoicemailBackground Noise Reduction
Kitchen Sink
Meetings
Introduction
Platform
Web
IntroductionQuickstart
Basics
AuthorizationJoin a MeetingMigration To Improved MeetingsPasswords & CaptchasUnified Space Meetings
Advanced Features
Advanced ControlsDialing In and OutStreams & EffectsVideo Resolution
Multistream
Multistream Comprehensive GuideMultistream Quickstart
Migrating SDK V2 to V3
iOSAndroidBrowserNode.jsClick to Call
Developer CommunityCertifications

Apply a Line Key Template

Apply a Line Key Template or reset devices to their factory Line Key settings.

Line Keys, also known as Programmable Line Keys (PLK), are the keys found on either side of a typical desk phone display. A Line Key Template is a definition of actions that will be performed by each of the Line Keys for a particular device model. This API allows users to apply a line key template or apply factory default Line Key settings to devices in a set of locations or across all locations in the organization.

Applying a Line Key Template or resetting devices to their default Line Key configuration requires a full administrator auth token with a scope of spark-admin:telephony_config_write.

POST/v1/telephony/config/jobs/devices/applyLineKeyTemplate
Query Parameters
orgId
string

Apply Line Key Template for this organization.

Body Parameters
action
enumrequired

Line key Template action to perform.

APPLY_TEMPLATE
string

Used to apply LinekeyTemplate to devices.

APPLY_DEFAULT_TEMPLATES
string

Used to reset devices to its default Linekey Template configurations.

templateId
stringrequired

templateId is required for APPLY_TEMPLATE action.

locationIds
array[string]

Used to search for devices only in the given locations.

excludeDevicesWithCustomLayout
boolean

Indicates whether to exclude devices with custom layout.

includeDeviceTags
array[string]

Include devices only with these tags.

excludeDeviceTags
array[string]

Exclude devices with these tags.

advisoryTypes
LineKeyTemplateAdvisoryTypes

Refine search with advisories.

moreSharedAppearancesEnabled
boolean

Refine search to apply changes to devices that contain the warning "More shared/virtual line appearances than shared/virtual lines requested".

fewSharedAppearancesEnabled
boolean

Refine search to apply changes to devices that contain the warning "More shared/virtual lines requested than shared/virtual line appearances".

moreMonitorAppearancesEnabled
boolean

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
boolean

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
boolean

Refine search to apply changes to devices that contain the warning "More mode management lines configured for the device". The default value is false.

Response Properties
name
string

Job name.

id
string

Unique identifier of the job.

trackingId
string

Unique identifier to track the flow of HTTP requests.

sourceUserId
string

Unique identifier to identify which user has run the job.

sourceCustomerId
string

Unique identifier to identify the customer who has run the job.

targetCustomerId
string

Unique identifier to identify the customer for which the job was run.

instanceId
number

Unique identifier to identify the instance of the job.

jobExecutionStatus
array[JobExecutionStatusObject]

Displays the most recent step's execution status. Contains execution statuses of all the steps involved in the execution of the job.

id
number

Unique identifier that identifies each instance of the job.

startTime
string

Step execution start time in UTC format.

endTime
string

Step execution end time in UTC format.

lastUpdated
string

Last updated time (in UTC format) post one of the step execution completion.

statusMessage
string

Displays status for overall steps that are part of the job.

exitCode
string

Exit Code for a job.

createdTime
string

Job creation time in UTC format.

timeElapsed
string

Time lapsed since the job execution started.

stepExecutionStatuses
array[stepExecutionStatusesObject]

Status of each step within a job.

id
number

Unique identifier that identifies each step in a job.

startTime
string

Step execution start time in UTC format.

endTime
string

Step execution end time in UTC format.

lastUpdated
string

Last updated time for a step in UTC format.

statusMessage
string

Displays the status of a step.

exitCode
string

Exit Code for a step.

name
string

Name of different steps the job goes through.

timeElapsed
string

Time lapsed since the step execution started.

latestExecutionStatus
string

Indicates the most recent status (STARTING, STARTED, COMPLETED, FAILED) of the job at the time of invocation.

latestExecutionExitCode
enum

Most recent exit code of the job at the time of invocation.

UNKNOWN
string

Job is in progress.

COMPLETED
string

Job has completed successfully.

FAILED
string

Job has failed.

STOPPED
string

Job has been stopped.

COMPLETED_WITH_ERRORS
string

Job has completed with errors.

percentageComplete
string

Indicates the progress of the job.

updatedCount
string

Number of job steps completed.

advisoryCount
string

Number of job steps completed with advisories.

Response Codes

The list below describes the common success and error responses you should expect from the API:

CodeStatusDescription
200OKSuccessful request with body content.
201CreatedThe request has succeeded and has led to the creation of a resource.
202AcceptedThe request has been accepted for processing.
204No ContentSuccessful request without body content.
400Bad RequestThe request was invalid or cannot be otherwise served. An accompanying error message will explain further.
401UnauthorizedAuthentication credentials were missing or incorrect.
403ForbiddenThe request is understood, but it has been refused or access is not allowed.
404Not FoundThe URI requested is invalid or the resource requested, such as a user, does not exist. Also returned when the requested format is not supported by the requested method.
405Method Not AllowedThe request was made to a resource using an HTTP request method that is not supported.
409ConflictThe request could not be processed because it conflicts with some established rule of the system. For example, a person may not be added to a room more than once.
410GoneThe requested resource is no longer available.
415Unsupported Media TypeThe request was made to a resource without specifying a media type or used a media type that is not supported.
423LockedThe requested resource is temporarily unavailable. A Retry-After header may be present that specifies how many seconds you need to wait before attempting the request again.
428Precondition RequiredFile(s) cannot be scanned for malware and need to be force downloaded.
429Too Many RequestsToo many requests have been sent in a given amount of time and the request has been rate limited. A Retry-After header should be present that specifies how many seconds you need to wait before a successful request can be made.
500Internal Server ErrorSomething went wrong on the server. If the issue persists, feel free to contact the Webex Developer Support team.
502Bad GatewayThe server received an invalid response from an upstream server while processing the request. Try again later.
503Service UnavailableServer is overloaded with requests. Try again later.
504Gateway TimeoutAn upstream server failed to respond on time. If your query uses max parameter, please try to reduce it.
  • Try it
  • Example
POST
/v1/telephony/config/jobs/devices/applyLineKeyTemplate{?orgId}
Log in to try the API.
Header
Query Parameters
  • Apply Line Key Template for this organization.
Body
  • Line key Template action to perform.
  • `templateId` is required for `APPLY_TEMPLATE` action.
  • Used to search for devices only in the given locations.
  • Indicates whether to exclude devices with custom layout.
  • Include devices only with these tags.
  • Exclude devices with these tags.
  • Refine search with advisories.
  • Request
  • Response
https://webexapis.com/v1/telephony/config/jobs/devices/applyLineKeyTemplate?orgId=Y2lzY29zcGFyazovL3VzL09SR0FOSVpBVElPTi85NmFiYzJhYS0zZGNjLTExZTUtYTE1Mi1mZTM0ODE5Y2RjOWE
{
    "action": "APPLY_TEMPLATE",
    "templateId": "Y2lzY29zcGFyazovL3VzL0RFVklDRV9MSU5FX0tFWV9URU1QTEFURS81NzVhMWY3Zi03MjRkLTRmZGUtODk4NC1mNjNhNDljMzYxZmQ",
    "locationIds": [
        "Y2lzY29zcGFyazovL3VzL0xPQ0FUSU9OL2E4Mjg5NzIyLTFiODAtNDFiNy05Njc4LTBlNzdhZThjMTA5OA"
    ],
    "excludeDevicesWithCustomLayout": "true",
    "includeDeviceTags": [
        "accounting",
        "sales"
    ],
    "excludeDeviceTags": [
        "admin"
    ],
    "advisoryTypes": {
        "moreSharedAppearancesEnabled": "true",
        "fewSharedAppearancesEnabled": "true",
        "moreMonitorAppearancesEnabled": "true",
        "moreCPEAppearancesEnabled": "true",
        "moreModeManagementAppearancesEnabled": "true"
    }
}
202 / Accepted
{
    "name": "applyphonelinekeytemplates",
    "id": "Y2lzY29zcGFyazovL3VzL0pPQl9JRC8wZTJjNmI5NC1hNDdlLTQxZGUtODE5ZS04YTcwNTZjMTc5MDk",
    "trackingId": "NA_a9ef6908-60cf-40e6-b56f-461abffd6fa3",
    "sourceUserId": "Y2lzY29zcGFyazovL3VzL1BFT1BMRS85OThhMThhYi1kZjY5LTQ5MWYtYmViZi03MzUxMGE3ODI5N2I",
    "sourceCustomerId": "Y2lzY29zcGFyazovL3VzL09SR0FOSVpBVElPTi9hNDVkNmNkYS1hZTVhLTQwYzMtYTdhZC01NjUwZmRkZGQ1M2M",
    "targetCustomerId": "Y2lzY29zcGFyazovL3VzL09SR0FOSVpBVElPTi9hNDVkNmNkYS1hZTVhLTQwYzMtYTdhZC01NjUwZmRkZGQ1M2M",
    "instanceId": 0,
    "jobExecutionStatus": [
        {
            "id": 0,
            "startTime": "2023-07-05T21:36:53.749Z",
            "lastUpdated": "2023-07-05T21:37:06.714Z",
            "statusMessage": "STARTED",
            "exitCode": "UNKNOWN",
            "createdTime": "2023-07-05T21:36:53.551Z",
            "stepExecutionStatuses": [
                {
                    "id": 0,
                    "startTime": "2023-07-05T21:36:54.601Z",
                    "lastUpdated": "2023-07-05T21:37:06.078Z",
                    "statusMessage": "STARTED",
                    "exitCode": "UNKNOWN",
                    "name": "applyphonelinekeytemplatesProcess",
                    "timeElapsed": "PT11.476S"
                }
            ],
            "timeElapsed": "PT11.476S"
        }
    ],
    "latestExecutionStatus": "STARTED",
    "latestExecutionExitCode": "UNKNOWN",
    "percentageComplete": 10,
    "updatedCount": 1,
    "advisoryCount": 0
}

Connect

Support

Developer Community

Developer Events

Contact Sales

Handy Links

Webex Ambassadors

Webex App Hub

Resources

Open Source Bot Starter Kits

Download Webex

DevNet Learning Labs

Terms of Service

Privacy Policy

Cookie Policy

Trademarks

© 2025 Cisco and/or its affiliates. All rights reserved.