For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Update space user permissions

patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

A unique entity identifier

Pattern: ^[a-zA-Z0-9_-]+$
userIdstringRequired

The unique ID of the User

Body
rolestring · enum · nullableOptional

The role of a member in an organization, null for guests

Possible values:
Responses
204

User permission was updated

No content

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?