List Published Channels of an Item
get
/content/management/api/v1.1/items/{id}/publishedChannels
Lists all published 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 how to list published channels of an item by submitting a GET request using cURL.
curl -X GET -H 'Accept: application/json' 'https://host:port/content/management/api/v1.1/items/{id}/publishedChannels'
Example:
This lists all published channels of item id: CORE801AE9619AE94F3CA3E83C5C6D43D370.
/content/management/api/v1.1/items/CORE801AE9619AE94F3CA3E83C5C6D43D370/publishedChannels
Response Body
{ "data": [ { "id": "CC210646ADFC2D41F70155C01865795543D050035F70" }, { "id": "CC3CF44049B94207BE552A345E74319B10F86A56D2F7" } ], "links": [ { "href": "https://<hostname>/content/management/api/v1.1/items/CORE801AE9619AE94F3CA3E83C5C6D43D370/publishedChannels", "rel": "self", "method": "GET", "mediaType": "application/json" } ] }