POST
/
collections

Authorizations

Authorization
string
headerrequired

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
name
string

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

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
id
string
required

The id of the collection/page.

name
string
required

The name of the collection/page.

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.

team
string
required

The team Id of the collection/page belongs to.

content
object

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

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.