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 Null 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 Null 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.

Valid values:

  • "dpde_all"
  • "lite_lines"
  • "lite_support_agents"
  • "talk"
  • "admins"
  • "agents"
  • "dpde_one"
  • "magenta_lines"
  • "user"
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 Null No

[single-line only]

The user's first name.

extension Null 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 Null No

The user's state.

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

Valid 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 Null 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 Null No

The presence status can be seen when you hover your mouse over the presence state indicator.

NOTE: this is only used for Highfive and will be deprecated soon.

Presence status will be set to "{provider}: {message}" when both are provided. Otherwise, presence status will be set to "{provider}".

"type" is optional and presence status will only include predefined templates when "type" is provided. Please refer to the "type" parameter to check the supported types.

To clear the presence status, make an api call with the "presence_status" param set to empty or null. ex: "presence_status": {} or "presence_status": null

Translations will be available for the text in predefined templates. Translations for others should be provided.

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.