About this resource

Representation of a paged collection of Collection items

Properties

Property Description Type
items One page of this paged collection, which is a subcollection of the complete collection. Collection of Collection items
page The current page of this paged collection. int32
pageSize The current page size of this paged collection. int32
skip The current skip size of this paged collection. int32
take The current take size of this paged collection. int32
totalCount The total count of items in this paged collection, not just on the current page. int64

Relations

Method Name Select-key Resource type Description
GET self Provides a link to this resource.
GET first A link to the first page of this paged collection.
GET prev A link to the previous page of this paged collection.
GET next A link to the next page of this paged collection.
GET last A link to the last page of this paged collection.

Actions

Method Action Description Response codes
POST /collections add Create a new collection
201 Request completed successfully. The header parameter 'Location' contains the location of the new field definition resource. The response body is a JSON object which contains the property "id" that corresponds to the newly created collection id.
400 Bad request (in general)
403 Insufficient permissions

Examples

Creating a new static collection.
The "Type" parameter is optional when creating a static collection.
The "Tag" parameter is optional.
POST /collections HTTP/1.1s
{
  "name" : "New Collection",
  "description" : "Description for the collection",
  "type" : "static",
  "tag" : "<selectable></selectable>"
}
Creating a new dynamic collection.
The "Tag" parameter is optional.
POST /collections HTTP/1.1s
{
  "name" : "New Collection",
  "type" : "dynamic",
  "searchExpression" : {
    "expression" : "Classification.Name = 'MyClass'",
    "languages" : [
      "c2bd4f9bbb954bcb80c31e924c9c26dc"
    ]
  },
  "tag" : "<selectable></selectable>"
}
Creating a new dynamic collection with subexpressions.
The "Tag" parameter is optional.
POST /collections HTTP/1.1s
{
  "name" : "New Collection",
  "type" : "dynamic",
  "searchExpression" : {
    "subExpressions": [
    {
      "expression": "filecount >= 1",
      "languages": [
        "c2bd4f9bbb954bcb80c31e924c9c26dc"
      ]
    },
    {
      "expression": "Classification.Name = 'MyClass'",
      "languages": [
        "c2bd4f9bbb954bcb80c31e924c9c26dc"
      ]
    }
    ]
  },
  "tag" : "<selectable></selectable>"
}