Assign admin rights
Assigns admin rights to the specified user.
Required scopes: WORKSPACE
Resource URL
PATCH /workspaces/:domain/members/:member_id
URL Parameters
Name | Type | Description |
---|---|---|
domain Required | String | The workspace domain. |
member_id Required | String | The numerical ID of the desired user. |
POST Parameters
Name | Type | Description |
---|---|---|
admin | Boolean | Specifies if the user is the workspace administrator. |
Example
Request
PATCH https://api.buddy.works/workspaces/buddy/members/1
JSON
{
"admin": true
}
Sample Response
HTTP
Status: 200 OK
X-Rate-Limit-Limit: 1
X-Rate-Limit-Remaining: 999
JSON
{
"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
}
Last modified on April 26, 2022