PATCH /api/v2/users/{id}

Updates the provided fields for an existing user.

Added on March 22, 2018 for API v2.

Rate limit: 1200 per minute.

Servers

Path parameters

Name Type Required Description
id String Yes

The user's id. ('me' can be used if you are using a user level API key)

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
job_title String No

[single-line only]

The user's job title.

international_dialing_enabled Boolean No

Whether or not the user is enabled to dial internationally.

forwarding_numbers[] Array No

A list of phone numbers that should be dialed in addition to the user's Dialpad number(s) upon receiving a call.

license String No

The user's license type.

Changing this affects billing for the user. For a Sell license, specify the type as agents. For a Support license, specify the type as support.

Possible values:

  • "dpde_all"
  • "lite_lines"
  • "lite_support_agents"
  • "talk"
  • "admins"
  • "agents"
  • "dpde_one"
  • "magenta_lines"
phone_numbers[] Array No

A list of the phone number(s) assigned to this user.

This can be used to re-order or remove numbers. To assign a new number, use the assign number API instead.

first_name String No

[single-line only]

The user's first name.

extension String No

The user's new extension number.

Extensions are optional in Dialpad and turned off by default. If you want extensions please contact support to enable them.

emails[] Array No

The user's emails.

This can be used to add, remove, or re-order emails. The first email in the list is the user's primary email.

state String No

The user's state.

This is used to suspend or re-activate a user.

Possible values:

  • "active"
  • "suspended"
admin_office_ids[] Array No

The list of admin office IDs.

This is used to set the user as an office admin for the offices with the provided IDs.

last_name String No

[single-line only]

The user's last name.

is_super_admin Boolean No

Whether or not the user is a super admin. (company level administrator)

keep_paid_numbers Boolean No

Whether or not to keep phone numbers when switching to a support license.

Note: Phone numbers require additional number licenses under a support license.

Default value: true

office_id Integer No

The user's office id.

If provided, the user will be moved to this office. For international offices, the user must not have phone numbers assigned. Once the transfer is complete, your admin can add the phone numbers via the user assign number API. Only supported on paid accounts and there must be enough licenses to transfer the user to the destination office.

presence_status Object No
presence_status.provider String No

The provider requesting the presence status update.

presence_status.message String No

The presence status message to be updated.

presence_status.type String No

Predefined templates will be only used for the supported types.

Accepts the following types:

  • default -- status message template: "{provider}: {message}"
  • conference -- status message template: "On {provider}: in the {message} meeting"

provider and message should be chosen with the message template in mind.

Possible values:

  • "conference"
  • "default"

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.