Skip to the page
API pages

Guides

Endpoints

Requests15
Deleted requests2
Comments5
Comment search1
Voters3
Followers3
Boards4
Tags5
Issues5
Statuses1
Roadmap2
Insights10
Search1
People5
Teammates6
Conversations14
Operators1
Saved replies4
Changelog entries12
Changelog tags4
Changelog subscribers2
Help articles12
Help collections3
System status4
Knowledge sources8
Knowledge pages3
Otto5
Moderation2
Audit log1
Data export2
Webhooks6
Webhook deliveries2
Token1

Change a teammate's role

PATCHhttps://app.notert.io/api/v1/teammates/{id}

Changes a teammate's role, as the team page's role menu does, as the teammate who holds the token's secret: an owner or admin moves an admin to member, and the teammate is emailed their new role, and every owner which token moved them. Making someone an admin or an owner, or moving an owner, takes a person signed in to Notert, on the team page. A role the teammate holds already changes nothing.

A token with people:write. How to send one

Request

curl -X PATCH https://app.notert.io/api/v1/teammates/m_5k2m9p4q7r1t \
  -H "Authorization: Bearer $NOTERT_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "role": "member"
}'

Response 200

{
  "id": "m_5k2m9p4q7r1t",
  "role": "admin"
}

Path parameters

  • idstringRequired

    The teammate's m_ id, from GET /teammates.

Body

  • rolestringRequired

    The role to give them: member, owner or admin, of which a token gives member alone.

    One ofmemberadminowner

Response 200

  • idstring

    The teammate's id: m_ and their user id, as the people endpoints name them, which a request's ownerIds take.

  • rolestring

    Their role in the workspace: owner, admin or member, the highest where they hold several.

    One ofmemberadminowner

Errors

  • 400BAD_REQUESTInput validation failed.
  • 401UNAUTHORIZEDSend a valid API token or OAuth access token as a Bearer token.
  • 403CONNECTION_NOT_ALLOWEDThe person who connected this app can't use it in the workspace now.
  • 403FORBIDDENThe teammate who holds this API token's secret can't change the team. Only an owner or admin can: one of them should roll it in the workspace's settings.
  • 403HOLDER_NOT_ALLOWEDThe teammate who holds this API token's secret can't do this in the workspace now. A teammate who can should roll it in the workspace's settings.
  • 403INSUFFICIENT_SCOPEThis API token can't change your customers' traits or your team. Create one that may in the workspace's settings.
  • 403NETWORK_NOT_ALLOWEDThis API token works only from the networks it was made for. Call from one of them, or create a token for this one in the workspace's settings.
  • 403NO_SEATThis workspace's plan has no seat for you.
  • 403NOT_ALLOWEDThat teammate is beyond the token's holder: only an owner changes or removes an owner, and no one removes themself through a token.
  • 403SESSION_EXPIREDMaking or unmaking an owner, and making someone an admin, takes a person signed in to Notert: make that change on the workspace's team page.
  • 403TOKEN_HELD_TO_BOARDSA teammate reaches every board, so this token, held to some, can't change one. Use a token that reaches every board.
  • 403WORKSPACE_SUSPENDEDThis workspace is suspended.
  • 404NOT_FOUNDNot Found.
  • 409CHANGED_MEANWHILESomething changed meanwhile. Try again.
  • 409ONLY_OWNERThe workspace's only owner keeps the role. Make someone else an owner first.
  • 429TOO_MANY_REQUESTSToo Many Requests. Its data holds retryAfter.

A refusal names its code beside a message. Rate limits says when to try again.