List all items in a collection

Returns a list of the items in the given collection.

Query Parameters

collection
string

Unique identifier of the collection the item resides in.

fields
array

Control what fields are being returned in the object.

limit
integer

A limit on the number of objects that are returned.

offset
integer

How many items to skip when fetching data.

meta
string

What metadata to return in the response.

sort
array

How to sort the returned items. sort is a CSV of fields used to sort the fetched items. Sorting defaults to ascending (ASC) order but a minus sign (-) can be used to reverse this to descending (DESC) order. Fields are prioritized by their order in the CSV. You can also use a ? to sort randomly.

filter

Select items in collection by given conditions.

search
string

Filter by items that contain the given search query in one of their fields.

Response

Successful request

data
array
GET /items/{collection}
Response Example
{
  "data": [
    {}
  ]
}

Create Multiple Items

Create new items in the given collection.

Query Parameters

collection
string

Collection of which you want to retrieve the items from.

fields
array

Control what fields are being returned in the object.

limit
integer

A limit on the number of objects that are returned.

offset
integer

How many items to skip when fetching data.

sort
array

How to sort the returned items. sort is a CSV of fields used to sort the fetched items. Sorting defaults to ascending (ASC) order but a minus sign (-) can be used to reverse this to descending (DESC) order. Fields are prioritized by their order in the CSV. You can also use a ? to sort randomly.

filter

Select items in collection by given conditions.

search
string

Filter by items that contain the given search query in one of their fields.

meta
string

What metadata to return in the response.

Request Body

data
array

Response

Successful request

data
array
meta
object
POST /items/{collection}
Response Example
{
  "data": [
    {}
  ],
  "meta": {}
}

Delete Multiple Items

Delete multiple items at the same time.

Query Parameters

collection
string

Collection of which you want to retrieve the items from.

fields
array

Control what fields are being returned in the object.

limit
integer

A limit on the number of objects that are returned.

meta
string

What metadata to return in the response.

offset
integer

How many items to skip when fetching data.

sort
array

How to sort the returned items. sort is a CSV of fields used to sort the fetched items. Sorting defaults to ascending (ASC) order but a minus sign (-) can be used to reverse this to descending (DESC) order. Fields are prioritized by their order in the CSV. You can also use a ? to sort randomly.

filter

Select items in collection by given conditions.

search
string

Filter by items that contain the given search query in one of their fields.

Request Body

Any of the following:

[array]
array

Primary keys of items to be deleted.

or
[object]
object

Object containing either keys or query to selected what items to update.

DELETE /items/{collection}

Update Multiple Items

Update multiple items at the same time.

Query Parameters

collection
string

Collection of which you want to retrieve the items from.

fields
array

Control what fields are being returned in the object.

limit
integer

A limit on the number of objects that are returned.

meta
string

What metadata to return in the response.

offset
integer

How many items to skip when fetching data.

sort
array

How to sort the returned items. sort is a CSV of fields used to sort the fetched items. Sorting defaults to ascending (ASC) order but a minus sign (-) can be used to reverse this to descending (DESC) order. Fields are prioritized by their order in the CSV. You can also use a ? to sort randomly.

filter

Select items in collection by given conditions.

search
string

Filter by items that contain the given search query in one of their fields.

Request Body

data
object
keys
array

Response

Successful request

data
array
meta
object
PATCH /items/{collection}
Response Example
{
  "data": [
    {}
  ],
  "meta": {}
}

Create an item

Create a new item in the given collection.

Query Parameters

collection
string

Collection of which you want to retrieve the items from.

fields
array

Control what fields are being returned in the object.

meta
string

What metadata to return in the response.

Request Body

[object]
object

Response

Successful request

data
object
POST /items/{collection}‎
Response Example
{
  "data": {}
}

Retrieve a Singleton

Retrieves a singleton of a given collection. The REST and GraphQL requests for singletons are the same as those used to Get Items but in contrast the response consists of a plain item object (the singleton) instead of an array of items.

Query Parameters

collection
string

Collection of which you want to retrieve the items from.

version
string

Retrieve an item's state from a specific Content Version. The value corresponds to the "key" of the Content Version.

fields
array

Control what fields are being returned in the object.

meta
string

What metadata to return in the response.

Response

Successful request

data
object
GET /items/{collection}/singleton
Response Example
{
  "data": {}
}

Update Singleton

Update a singleton item. The REST and GraphQL requests for singletons are the same as those used to Update Multiple Items but in contrast the request should consist of the plain item object.

Query Parameters

collection
string

Collection of which you want to retrieve the items from.

fields
array

Control what fields are being returned in the object.

meta
string

What metadata to return in the response.

Request Body

[object]
object

Response

Successful request

data
object
PATCH /items/{collection}/singleton
Response Example
{
  "data": {}
}

Retrieve an Item

Retrieves an item in a given collection.

Query Parameters

id
string

Unique identifier for the object.

collection
string

Collection of which you want to retrieve the items from.

version
string

Retrieve an item's state from a specific Content Version. The value corresponds to the "key" of the Content Version.

fields
array

Control what fields are being returned in the object.

meta
string

What metadata to return in the response.

Response

Successful request

data
object
GET /items/{collection}/{id}
Response Example
{
  "data": {}
}

Delete an item

Delete an existing item.

Query Parameters

id
string

Unique identifier of the item.

collection
string

Collection of which you want to retrieve the items from.

DELETE /items/{collection}/{id}

Update an item

Update an existing item.

Query Parameters

id
string

Unique identifier of the item.

collection
string

Collection of which you want to retrieve the items from.

fields
array

Control what fields are being returned in the object.

meta
string

What metadata to return in the response.

Request Body

[object]
object

Response

Successful request

data
object
PATCH /items/{collection}/{id}
Response Example
{
  "data": {}
}