Invite a user or a team to a site
post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequiredPattern:
A unique entity identifier
^[a-zA-Z0-9_-]+$siteIdstringRequired
The unique id of the site
Body
or
Responses
204
OK
No content
404
No team or user with the provided Id
application/json
post/orgs/{organizationId}/sites/{siteId}/permissions
POST /v1/orgs/{organizationId}/sites/{siteId}/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?