Skip to main content
PATCH
Change a teammate's role and team.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
string
required

Numeric user ID of the teammate, as returned by GET /workspace/teammates.

Body

application/json

A JSON object with the new role, team, or both.

At least one of role and team_title is required.

role
enum<string>

New role of the teammate. One of: collaborator, teammate, admin, agent, team_supervisor. Case-insensitive. The owner role cannot be assigned.

Available options:
admin,
team_supervisor,
teammate,
agent,
collaborator
Example:

"admin"

team_title
string

Title of the team to move the teammate to, as returned by GET /workspace/teammates. The default team is accepted as "Default" or "Default team".

Example:

"Sales"

Response

Success

status
enum<string>
required
Available options:
ok,
error
Example:

"ok"

data
object
required