Teams

Update Team Agent Role

Change an agent's role within this team. REPLACES the previous one.

Tiered destructive for the same reason as its human twin: it is a privilege change on a membership row, not an edit to a label.

patch/teams/{team_id}/agents/{user_id}

Request

  • Base URL: https://be.graph8.com/api/v1
  • URL: https://be.graph8.com/api/v1/teams/{team_id}/agents/{user_id}
  • Auth: HTTP bearer

Path parameters

team_idstring required

Team id (UUID).

user_idstring required

Agent user id.

Headers

Authorizationstring nullable
X-Target-Org-Idstring nullable

Request body

team_rolestring required

Response

Successful Response

dataOrgPayload required

An open envelope for a single role, team, member or account record.

Open on purpose. The app's own response models on this surface grow with the product - RoleResponse gained rep_limits and manages_role_slugs, TeamResponse gained channel counts and a campaign count - and a pinned mirror would SILENTLY DROP whatever it had not caught up on. A dropped permission in a role read is the worst possible kind of stale: it reads as "they do not have it".

Changes

No recorded changes to this operation across all 2 revisions of this API.