Workspace and team
Change several teammates
Authorization
AuthorizationstringrequiredAn API token, sent as Bearer <token>.
Needs the members:write ability
Body
application/jsonchangesobjectrequiredShow child attributesHide child attributes
custom_role_idstringId of the custom role to give the members, starting with rol_; null takes their custom role away. Send this or role, never both.
rolestringBuilt-in role to give the members: admin or member. Send this or custom_role_id, never both.
Available options:adminmember
idsstring[] | nullrequiredMember ids (mem_...), 1 to 100.
Minimum items: 1 · Maximum items: 100
Response 200
OKdataobject[] | nullrequiredOne result per member id sent, in the order sent: its status and, when it failed, the error.
Show child attributesHide child attributes
errorobjectShow child attributesHide child attributes
codestringrequiredThe machine-readable code of the error that stopped this member's change, such as not_found.
messagestringrequiredA sentence explaining why the change failed, in the caller's language when a translation exists.
idstringrequiredThe id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
statusstringrequiredWhat came of this member's change: updated, skipped (already had the values asked for) or failed (see error).
metaobjectrequiredShow child attributesHide child attributes
failedintegerrequiredHow many members' changes failed.
Format: int64
skippedintegerrequiredHow many members were left alone because they already had the values asked for.
Format: int64
updatedintegerrequiredHow many members were changed.
Format: int64
Response error
ErrorcodestringrequiredStable code for programs to tell errors apart, such as validation_failed or internal_error.
errorsobjectEach rejected field mapped to its messages. Only present when the input was invalid.
messagestringrequiredWhat went wrong, in words safe to show a person.