Skip to main content
PATCH
/
team-members
/
{id}
Update a team member's role
curl --request PATCH \
  --url https://slog.ai/team-members/{id} \
  --header 'Content-Type: application/json' \
  --header 'slog-api-key: <api-key>' \
  --data '
{
  "role": "ADMIN"
}
'
{
  "teamMember": {
    "id": "tmbr_01jqmember001",
    "teamId": "team_01jqteam0001",
    "userId": "user_01jquser0001",
    "user": {
      "id": "user_01jquser0001",
      "name": "Alex Johnson",
      "email": "[email protected]",
      "avatarUrl": null,
      "humanId": null
    }
  }
}

Authorizations

slog-api-key
string
header
required

API key obtained from the Slog dashboard or returned by the signup/invite-redeem flows. Pass as the slog-api-key header.

Path Parameters

id
string
required

Resource ID (UPID) or, for tasks and projects, the human-readable reference such as ENG-42.

Body

application/json
role
enum<string>

Role of a user within a team.

Available options:
VIEWER,
MEMBER,
ADMIN,
OWNER

Response

The updated team member.

teamMember
object