Skip to main content
PUT
/
admin
/
v1
/
networks
/
{network_id}
/
collections
/
{id}
/
order
Reorder spaces within a collection
curl --request PUT \
  --url https://api.mn.co/admin/v1/networks/{network_id}/collections/{id}/order \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "spaces": [
    {
      "space_id": 123,
      "position": 1
    }
  ]
}
'
{
  "items": [
    {
      "id": 123,
      "name": "<string>",
      "position": 123
    }
  ],
  "links": {
    "self": "<string>",
    "next": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
integer<uint64>
required

ID of the collection

network_id
required

The Network's unique integer ID, or subdomain Unique numeric network ID

Query Parameters

page
integer<uint64>

Page number for pagination

per_page
integer<uint64>

Items per page (max 100)

Body

application/json

Submit results as JSON

Request to reorder spaces within a collection

spaces
object[]
required

Array of space position assignments

Response

The updated list of spaces with their positions

A paginated list of records

items
object[]

A page of records

Pagination links - the specific format of these links is considered an implementation detail and is subject to change.

Do not assume the links will contain a page parameter.",