Read a Collection
get
/content/management/api/v1.1/repositories/{id}/collections/{collectionId}
Read a collection.
Request
Path Parameters
-
collectionId: string
id of the collection.
-
id: string
Repository id parameter for collections.
Query Parameters
-
links(optional): string
This parameter accepts a comma-separated list of link names. By default, this parameter gives all the links applicable. Possible values are: self, canonical, describedby
Response
Supported Media Types
- application/json
200 Response
OK.
Root Schema : Collection
Type:
objectCollection
Show Source
-
channels(optional):
array channels
Channels associated with the collection.
-
createdBy(optional):
string
createdBy user of the Collection.
-
createdDate(optional):
object date
date
-
description(optional):
string
Description of the collection.
-
id(optional):
string
id of the collection. It is a required property in the get response and put request whereas it is not required in the post request.
-
isDynamic(optional):
boolean
true
-
links(optional):
array links
Links
-
name(optional):
string
Name of the collection. It is a required property in the get response and post/put request.
-
repository(optional):
object RepositoryIdentifier
RepositoryIdentifier
-
roleName(optional):
string
Name of the user's role on the collection.
-
ruleGroups(optional):
array ruleGroups
-
updatedBy(optional):
string
updatedBy user of the Collection.
-
updatedDate(optional):
object date
date
Nested Schema : channels
Type:
arrayChannels associated with the collection.
Show Source
-
Array of:
object ChannelInCollections
ChannelInCollections
Nested Schema : RepositoryIdentifier
Type:
objectRepositoryIdentifier
Show Source
-
id(optional):
string
id of the collection repository. It is a required property in the get response.
-
name(optional):
string
Name of the collection repository. It is a required property in the get response.
-
role(optional):
string
Role on the collection repository.
Nested Schema : ChannelInCollections
Type:
objectChannelInCollections
Show Source
-
id(optional):
string
id of the channel.
-
name(optional):
string
Name of the channel.
Nested Schema : Link
Type:
objectLink of the resource.
Show Source
-
href(optional):
string
The target resource's URI. It could be template URI. It is a required property in the get response.
-
mediaType(optional):
string
Media type.
-
method(optional):
string
What HTTP method can be used to access the target resource.
-
profile(optional):
string
Link to the metadata that describes the target resource.
-
rel(optional):
string
Relation type. It is a required property in the get response.
-
templated(optional):
boolean
Whether the URI is a template.
Nested Schema : RuleGroup
Type:
objectrule group definition
Show Source
-
assetType(optional):
string
asset type associated with the rule group, all rules within the rule group are based on properties related to this asset typeExample:
File -
conjunction(optional):
string
the operator to be used while joining this rule group with a previous groupExample:
OR -
ruleSet(optional):
array ruleSet
set of rules associated with the rule group
Nested Schema : ruleSet
Type:
arrayset of rules associated with the rule group
Show Source
-
Array of:
object RuleSet
Set of rules or conditions
Nested Schema : RuleSet
Type:
objectSet of rules or conditions
Show Source
-
conjunction(optional):
string
The operator to be used when combining this rule set with an existing rule setExample:
and -
rule(optional):
object Rule
-
ruleSet(optional):
array ruleSet
The child or sub rule set associated with the given rule set
Nested Schema : ruleSet
Type:
arrayThe child or sub rule set associated with the given rule set
Show Source
-
Array of:
object RuleSet
Set of rules or conditions
304 Response
Not modified.
400 Response
Bad request.
403 Response
Forbidden.
404 Response
Not found.
500 Response
Internal server error.
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"
}
]
}