Update a company group

Updates a company group's label, companies, or users. A field you leave out stays unchanged. A list you pass replaces the current one, and an empty list removes every member. null is not accepted for either list.

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

Updates a company group. Send only the fields you want to change:

  • A field you leave out stays as it is.
  • A list you pass replaces the current list. To add one company, send the full list with the new ID included.
  • An empty list removes every member. null is rejected.
  • Unknown fields, including the former name field, are rejected.

Every ID must belong to your organization, and each user must be one that List users returns. An ID that does not match fails with a validation_error naming the field, and the group is left unchanged. The whole update is applied as one change, so a request that changes the label and both lists emits a single company_group.updated event.

PUT is not supported and returns 405.

Path Params
string
required

ID of the company group. Begins with company_group_.

Body Params
string
length ≤ 255

Display name of the company group. Leave it out to keep it unchanged.

companies
array of strings
length ≤ 5000

IDs of the companies in the group. The list replaces the group's companies, and an empty list removes them all. Leave it out to keep them unchanged.

companies
users
array of strings
length ≤ 500

IDs of the Console users in the group. Each value must be a usr_ ID of a user returned by /users. The list replaces the group's users, and an empty list removes them all. Leave it out to keep them unchanged.

users
Headers
string

Optional idempotency key. Reusing the same key replays the first response instead of applying the write again.

Responses

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