POST
/
collections

Authorizations

Authorization
string
header
required

Default authentication mechanism

Path Parameters

team_slug
string
required

The slug of the team.

workspace_slug
string
required

The slug of the workspace.

Body

application/json

Create a new collection.

name
string

The name of the collection. It is optional and can be a maximum of 32 characters long.

Required string length: 1 - 32
object
any

The type of the collection. Collections can be of type 'collection' or 'item'.

parent
string

The parent collection id.

Response

200
application/json
The created collection/page

A collection.

id
string
required

The id of the collection/page.

name
string
required

The name of the collection/page.

team
string
required

The team Id of the collection/page belongs to.

workspace
string
required

The workspace Id of the collection/page belongs to.

meta
object
required

The meta of the team.

createdAt
string
required

The date and time the collection/page was created.

updatedAt
string
required

The date and time the collection/page was last updated.

object
any

Object describes the type of the collection. Collections will be of type 'collection' and pages will be of type 'item'.

parent
string

The parent collection id.

children
object[]

The children of the collection.

content
object

The content of the page. This will be a JSON object. if the object is a collection, this will be empty.