Read a Collection

get

/content/management/api/v1.1/repositories/{id}/collections/{collectionId}

Read a collection.

Request

Path Parameters
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

OK.
Body ()
Root Schema : Collection
Type: object
Collection
Show Source
Nested Schema : channels
Type: array
Channels associated with the collection.
Show Source
Nested Schema : date
Type: object
date
Show Source
Nested Schema : RepositoryIdentifier
Type: object
RepositoryIdentifier
Show Source
Nested Schema : ruleGroups
Type: array
Show Source
Nested Schema : ChannelInCollections
Type: object
ChannelInCollections
Show Source
Nested Schema : RuleGroup
Type: object
rule group definition
Show Source
Nested Schema : ruleSet
Type: array
set of rules associated with the rule group
Show Source
Nested Schema : RuleSet
Type: object
Set of rules or conditions
Show Source
Nested Schema : Rule
Type: object
Show Source
Nested Schema : ruleSet
Type: array
The child or sub rule set associated with the given rule set
Show Source

304 Response

Not modified.

400 Response

Bad request.

403 Response

Forbidden.

404 Response

Not found.

500 Response

Internal server error.
Back to Top

Examples

The following example shows how to get a collection details with its ID by submitting a GET request using cURL.

curl -X GET -H 'Accept: application/json' 'https://host:port/content/management/api/v1.1/repositories/{id}/collections/{collectionId}'

Example:

This reads a collection with id: O9F1CD681C619D182B27A9FA3154E81BEEA1E8587407, exists in a repository with id: F264EF72737B35991E381047D5B43D87656640771B3C.

/content/management/api/v1.1/repositories/F264EF72737B35991E381047D5B43D87656640771B3C/collections/O9F1CD681C619D182B27A9FA3154E81BEEA1E8587407

Response Body

{
    "id": "O9F1CD681C619D182B27A9FA3154E81BEEA1E8587407",
    "repository": {
    "id": "F264EF72737B35991E381047D5B43D87656640771B3C",
    "name": "Repo12395550356833265"
    },
    "name": "Collection2",
    "description": "",
    "createdBy": "marketing.user",
    "createdDate": {
    "value": "2018-12-10T07:01:57.062Z",
    "timezone": "UTC"
    },
    "updatedBy": "marketing.user",
    "updatedDate": {
    "value": "2018-12-10T07:54:02.198Z",
    "timezone": "UTC"
    },
    "channels": [
    {
      "id": "CC03EC1531E0E39F6D6BA75CEE430DDBEA79EDD5F5B0",
      "name": "channel2"
    },
    {
      "id": "CCB59F44D5015819EBC0F86A2B3133B22638AF433F1E",
      "name": "channel1"
    }
    ],
    "links": [
    {
      "href": "https://host:port/content/management/api/v1.1/repositories/F264EF72737B35991E381047D5B43D87656640771B3C/collections/O9F1CD681C619D182B27A9FA3154E81BEEA1E8587407",
      "rel": "self",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "https://host:port/content/management/api/v1.1/repositories/F264EF72737B35991E381047D5B43D87656640771B3C/collections/O9F1CD681C619D182B27A9FA3154E81BEEA1E8587407",
      "rel": "canonical",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "https://host:port/content/management/api/v1.1/metadata-catalog/repositories/F264EF72737B35991E381047D5B43D87656640771B3C/collections/O9F1CD681C619D182B27A9FA3154E81BEEA1E8587407",
      "rel": "describedby",
      "method": "GET",
      "mediaType": "application/schema+json"
    }
    ]
    }
Back to Top