List Channels of an Item
get
/content/management/api/v1.1/items/{id}/channels
Lists all channels of a given Item.
Request
Path Parameters
-
id: string
id of the item.
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.
Nested Schema : ChannelId
Type:
object
ChannelId
Show Source
-
id(optional):
string
-
isPrimaryChannel(optional):
boolean
Indicates if channel is primary for an asset.
-
links(optional):
array links
Links
-
name(optional):
string
Nested Schema : Link
Type:
object
Link 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.
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 details in this version by submitting a GET request using cURL.
curl -X GET -H 'Accept: application/json' 'https://host:port/content/management/api/v1.1/items/{id}/channels'
Example:
This lists all channels of item id: CORE801AE9619AE94F3CA3E83C5C6D43D370.
/content/management/api/v1.1/items/CORE801AE9619AE94F3CA3E83C5C6D43D370/channels
Response Body
{ "data": [ { "id": "CC210646ADFC2D41F70155C01865795543D050035F70" }, { "id": "CC3CF44049B94207BE552A345E74319B10F86A56D2F7" }, { "id": "CC481FB436791718C3C113E8E4B53183400E87D3F1C4" }, { "id": "CCEBE34EC582D1B79808BF7E58ECF356D8EA668DCCEB" } ], "links": [ { "href": "https://host:port/content/management/api/v1.1/items/CORE801AE9619AE94F3CA3E83C5C6D43D370/channels", "rel": "self", "method": "GET", "mediaType": "application/json" } ] }