Read Publish Info of an Item
get
/content/management/api/v1.1/items/{id}/publishInfo
Read publish information 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 : PublishInfo
Type:
object
PublishInfo
Show Source
-
channel(optional):
string
Target name
-
links(optional):
array links
Links
-
publishedBy(optional):
string
Published by
-
publishedDate(optional):
object date
date
-
slug(optional):
string
Published slug
-
version(optional):
string
Published version
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 get publish information 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}/publishInfo'
Example:
This reads publish info of item id: COREB423D3839C634CD485B76C696E58C41F.
/content/management/api/v1.1/items/COREB423D3839C634CD485B76C696E58C41F/publishInfo
Response Body
{ "data": [ { "channel": "CC7F904D19025B10A1CCEB3310EE70D4C814DBFED3B2", "publishedBy": "marketing.user", "version": "1", "publishedDate": { "value": "2018-12-03T09:50:21.705Z", "timezone": "UTC" } } ], "links": [ { "href": "https://host:port/content/management/api/v1.1/items/COREB423D3839C634CD485B76C696E58C41F/publishInfo", "rel": "self", "method": "GET", "mediaType": "application/json" } ] }