Collections

A collection in GitBook is the entity of a group that a space can belong to.

Get a collection by its ID

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
collectionIdstringRequired

The unique id of the collection

Responses
200

OK

application/json
get
/collections/{collectionId}
200

OK

List all collection spaces

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
collectionIdstringRequired

The unique id of the collection

Query parameters
pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

Responses
200

OK

application/json
get
/collections/{collectionId}/spaces
200

OK

Get a collection by its ID

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
collectionIdstringRequired

The unique id of the collection

Responses
200

OK

application/json
get
/collections/{collectionId}
200

OK

List all collections users permissions

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
collectionIdstringRequired

The unique id of the collection

Query parameters
pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

rolestring · enumOptional

"The role of a member in an organization. "admin": Can administrate the content: create, delete spaces, ... "create": Can create content. "review": Can review content. "edit": Can edit the content (live or change requests). "comment": Can access the content and its discussions. "read": Can access the content, but cannot update it in any way.

Possible values:
Responses
200

Listing of users who can access the collections.

application/json
get
/collections/{collectionId}/permissions/aggregate
200

Listing of users who can access the collections.

Was this helpful?