Skip to content
dimmiDocs

Workspace and team

Change several teammates

PATCH/api/v1/members

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the members:write ability

Body

application/json
changesobjectrequired
Show child attributes
custom_role_idstring

Id of the custom role to give the members, starting with rol_; null takes their custom role away. Send this or role, never both.

rolestring

Built-in role to give the members: admin or member. Send this or custom_role_id, never both.

Available options:adminmember

idsstring[] | nullrequired

Member ids (mem_...), 1 to 100.

Minimum items: 1 · Maximum items: 100

Response 200

OK
dataobject[] | nullrequired

One result per member id sent, in the order sent: its status and, when it failed, the error.

Show child attributes
errorobject
Show child attributes
codestringrequired

The machine-readable code of the error that stopped this member's change, such as not_found.

messagestringrequired

A sentence explaining why the change failed, in the caller's language when a translation exists.

idstringrequired

The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.

statusstringrequired

What came of this member's change: updated, skipped (already had the values asked for) or failed (see error).

metaobjectrequired
Show child attributes
failedintegerrequired

How many members' changes failed.

Format: int64

skippedintegerrequired

How many members were left alone because they already had the values asked for.

Format: int64

updatedintegerrequired

How many members were changed.

Format: int64

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.