Update an extension

Updates an extension. Only the fields you send change. The extension number cannot be changed.

Changing effective_caller_id_name also updates the extension's device line and its busy lamp field (BLF) labels on other phones.

To avoid overwriting someone else's change, send expect with the values you last read. If any of them changed, nothing is written and the request returns 409.

A request that fails validation changes nothing. Voicemail, device and follow-me changes are saved after the extension, so a later failure can leave the extension changed. A device or device line on another account returns 400.

A key with the Admin role can update any extension on your account. Any other key must own the extension.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The extension's UUID (extension_uuid).

Body Params
string

The caller ID name shown on internal calls. Cannot be empty.

string

The caller ID number shown on internal calls. Cannot be empty.

string | null

The caller ID name shown on outbound calls, up to 15 characters of plain letters, digits and punctuation. Accented letters are converted. An empty value clears it.

string

The caller ID number shown on outbound calls. Cannot be empty.

string | null

The first name shown in the dial-by-name directory.

string | null

The last name shown in the dial-by-name directory.

boolean

Whether the extension is listed in the dial-by-name directory.

boolean

Whether the extension number is shown in the directory.

string | null

How missed-call notices are sent, such as email. If you set it, you must also send missed_call_data. null turns notices off.

string | null

Where missed-call notices go, such as an email address.

string | null

Calling permissions. null allows outbound and international calls, domestic allows outbound only, and local blocks outbound calls. Requires an API key with the Admin role. Ignored otherwise.

number | null

How long the extension rings, in seconds.

string | null

The call group the extension belongs to.

boolean

Whether callers are screened before the extension rings.

string | null

Which calls are recorded: all, local, inbound or outbound. null turns recording off. Requires an API key with the Admin role. Ignored otherwise.

hold_music

What callers hear when this extension puts them on hold: a recording, music on hold, an internet stream or silence. Send a sound reference, or null for the default hold music.

string | null

The mailbox that drives this extension's message-waiting indicator.

boolean

Whether do not disturb is on.

string

Whether every call is forwarded, and where it goes.

string

Whether calls are forwarded when the extension is busy, and where they go.

string

Whether calls are forwarded when no one answers, and where they go.

string

Whether calls are forwarded when no device is registered, and where they go.

string

Follow-me fields stored on the extension. To set up follow-me, use follow_me.

follow_me
object

The follow-me setup, as an object with follow_me_enabled, follow_me_destinations, follow_me_ignore_busy, cid_name_prefix and cid_number_prefix. follow_me_destinations replaces the whole list. When follow_me_enabled is false, the destinations are kept.

boolean

Whether the extension is enabled. Re-enabling an extension uses a licensed seat and returns 403 if none is left.

string | null

A description of the extension.

string

The extension type: User, Doorphone, Paging, Common Area or Fax. Any other value clears the type.

voicemail
object

The extension's mailbox. Disabling the extension also disables its mailbox. Re-enabling the extension re-enables the mailbox, unless you also send a voicemail_action. A request that fails validation changes nothing. voicemail_id, voicemail_sms_to, voicemail_recording_instructions, voicemail_recording_options and voicemail_options are ignored.

string

Device and line changes. Each entry has a device_uuid and a line_action: create, update, delete or none. update and delete also need device_line_uuid. Requires an API key with the Admin role. Ignored otherwise.

expect
object

Field names mapped to the values you last read, each a scalar or null. The update is applied only if every value still matches. Otherwise the request returns 409 and nothing is written.

Fields you can name: do_not_disturb, forward_all_destination, forward_all_enabled, forward_busy_destination, forward_busy_enabled, forward_no_answer_destination, forward_no_answer_enabled, forward_user_not_registered_destination, forward_user_not_registered_enabled, follow_me_enabled, follow_me_destinations, enabled, description, effective_caller_id_name, effective_caller_id_number, outbound_caller_id_name, outbound_caller_id_number, directory_first_name, directory_last_name, call_timeout, call_group, user_record, call_screen_enabled. Naming any other field, including hold_music, returns 400.

string

Ignored. Cannot be set through this API.

string

Ignored. Cannot be set through this API.

string

Ignored. Cannot be set through this API.

Responses

401

Missing or invalid API key.

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json