ts.org.set_member_role

Change a member’s role in an organization.

Change a member’s role in an organization.

Requires authentication

Description

Updates the role of an existing member in an organization.

Parameters

NameTypeRequiredDefaultDescription
org_idstringYesOrganization ID
user_idstringYesUser ID
rolestringYesNew role: owner, admin, member, guest

Response

Returns the updated membership.

{
  "org_id": "org_1d9cb149497656c7...",
  "role": "admin",
  "user_id": "usr_476931df38eb2662..."
}

Errors

CodeDescription
not_authenticatedNo active login for this session
not_foundOrganization or membership not found
forbiddenCannot demote the last owner