POST
/
collections
/
reorder
curl --request POST \
  --url https://api.orgnise.in/collections/reorder \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "1",
  "parent": "2",
  "index": 3,
  "object": "item"
}'
{
  "message": ""
}

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

Reorder a collection/page.

id
string
required

The id of the collection/page to reorder.

index
number
required

The index to move the collection to.

parent
string

The parent collection/page id.

newParent
string

The new parent collection/page id.

object
any

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

Response

200
application/json
The created collection/page
message
string
default:
required