Assign admin rights

  • PATCH
  • /workspaces
  • /:domain
  • /members
  • /:member_id

Assigns admin rights to the specified user.

Request

REQUIRED SCOPES
WORKSPACE
URL PARAMETERS
domainrequired string
The workspace domain.
member_idrequired integer
The numerical ID of the desired user.
POST PARAMETERS
adminboolean
Specifies if the user is the workspace administrator.

Last modified on Sep 25, 2024

Example:

curl -X PATCH "https://api.buddy.works/workspaces/:domain/members/:member_id" \
  -H "Authorization: Bearer <YOUR-TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
  "admin": true
}'
EXAMPLE RESPONSE
{ "url": "https://api.buddy.works/workspaces/buddy/member/1", "html_url": "https://app.buddy.works/buddy/profile/1", "id": 1, "name": "Mike Benson", "avatar_url": "https://app.buddy.works/image-server/user/0/0/0/0/0/0/1/d643744fbe5ebf2906a4d075a5b97110/w/32/32/AVATAR.png", "admin": true, "workspace_owner": true }
STATUS
200 OK
LIMITS
X-Rate-Limit-Limit: 1 X-Rate-Limit-Remaining: 999