Assign Custom Fields to Team Member

Set agent custom field values on a team member.

Before you call

  • Find the team member with exactly one of phone (with country code) or uniqueCustomField (the name and value of an agent custom field marked unique, such as Employee ID).
  • customFields (at least one) is required.
  • Each custom field value is up to 3000 characters. For a multi-select field, send values (a list) instead of value.
  • To save values, your account needs the "Update team members" permission and edit access to that field.
  • To create a field that does not exist yet, you also need the "Create agent custom fields" permission and edit access to all agent custom fields.

How it works

  • Custom fields are matched by name. A name that is not an agent custom field yet is created as a new agent custom field. Its type comes from the value: a list of values makes a multi select field.
  • Agent custom fields are separate from customer and channel fields, so the same name on a customer or channel field does not matter.
  • A field hidden from your role cannot be set.
  • A value of a unique field that another team member already holds is not saved; it is returned as "Value already used by another team member".
  • Results are per item: customFields.added and customFields.errored (with a reason each).

Errors

  • 400 if both or neither of phone and uniqueCustomField are sent.
  • 422 if the uniqueCustomField name is not an agent custom field, or that field is not unique.
  • 400 if no member of your organization has that number, or more than one has it.
  • 404 if the number belongs to a bot or a pending invite, or no member holds that unique value.
  • 429 if you call it too often.

Rate limit

  • 60 requests per minute.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string

Team member phone number with country code. Example, 919876543210. Send this or uniqueCustomField.

uniqueCustomField
object

An agent custom field marked unique that finds the team member. Send this or phone.

customFields
array of objects
required

Array of agent custom fields to be assigned

customFields*
Responses

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