Check Publication Existence
Ensures that the specified publication exists.
Request will fail and return the 404 result model if the publication configuration does not exist, or if the publication is hidden and the user does not have permission to access hidden publications.
Request
URI: /v2/content/{pub}/ifexist
HTTP Method: GET
- Accept:
[application/json] OR [application/xml]
- pub: publication ID
Response
- XML:
<result message="Publication Exists" messageKey="Publication Exists" status="SUCCESS" statusCode="0"> <info xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="apiInfoModel" name="timestamp" value=""/> </result> - JSON:
{"statusCode":0,"messageKey":"Publication Exists", "message":"Publication Exists", "status":"SUCCESS", "info":[{"name":"timestamp", "value":""}]}
- XML:
<result message="The requested publication or language version does not exist." messageKey="pubs.nonexist" status="FAIL" statusCode="404"/> - JSON:
{"statusCode":404,"messageKey":"pubs.nonexist", "message":"The requested publication or language version does not exist.", "status":"FAIL", "info":[]}
Permissions
"Use application"
Example
Request:
GET http://example.corp:8080/LiveContent/v2/content/LiveContentDoc/ifexist
Accept: application/xml
Response:
<result message="Publication Exists" messageKey="Publication Exists" status="SUCCESS" statusCode="0"> <info xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="apiInfoModel" name="timestamp" value=""/> </result>