Invite to a collection
post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
collectionIdstringRequiredPattern:
A unique entity identifier
^[a-zA-Z0-9_-]+$Body
or
Responses
204
OK
No content
404
No team or user with the provided Id
application/json
post/collections/{collectionId}/permissions
POST /v1/collections/{collectionId}/permissions HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 33
{
"role": "admin",
"teams": [
"text"
]
}No content
Last updated
Was this helpful?