Update space user permissions
patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequiredPattern:
A unique entity identifier
^[a-zA-Z0-9_-]+$userIdstringRequired
The unique ID of the User
Body
rolestring · enum · nullableOptionalPossible values:
The role of a member in an organization, null for guests
Responses
204
User permission was updated
No content
404
No user found with the given ID
application/json
patch/spaces/{spaceId}/permissions/users/{userId}
PATCH /v1/spaces/{spaceId}/permissions/users/{userId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 16
{
"role": "admin"
}No content
Last updated
Was this helpful?