Skip to main content
POST
Grant access

Authorizations

Authorization
string
header
required

User session JWT. Send as Authorization: Bearer <token>.

Path Parameters

collection_id
string<uuid>
required

Collection identifier returned at creation.

Body

application/json
principal_type
enum<string>
required
Available options:
user,
group,
org
principal_id
string
required

For user: a member user id. For group: orgSlug:group. For org: the org slug.

role
enum<string>
required
Available options:
reader,
editor,
admin

Response

Binding created.

object
string
Example:

"collection.access"

collection_id
string
principal_type
enum<string>
Available options:
user,
group,
org
principal_id
string
role
enum<string>
Available options:
owner,
reader,
editor,
admin
email
string