Sets the document at the specified path to an unpublished state. An unpublished document is not visible to regular users who only have read access -“ it behaves as if no version has been officially released. This is the reverse of PublishDocument. Use this API to retract a previously published document while keeping all versions, metadata, and history intact.
/srv.asmx/UnpublishDocument
/srv.asmx/UnpublishDocument?authenticationTicket=...&documentPath=.../srv.asmx/UnpublishDocument (form data)http://tempuri.org/UnpublishDocument| Parameter | Type | Required | Description |
|---|---|---|---|
authenticationTicket |
string | Yes | Authentication ticket obtained from AuthenticateUser. |
documentPath |
string | Yes | Full infoRouter path to the document (e.g. /Finance/Reports/Q1-Report.pdf), or a short document ID path (~D{id}). |
<response success="true" error="" />
<response success="false" error="Document not found." />
The calling user must have publish permission on the document or its containing folder.
GET /srv.asmx/UnpublishDocument
?authenticationTicket=3f2504e0-4f89-11d3-9a0c-0305e82c3301
&documentPath=/Finance/Reports/Q1-2024-Report.pdf
HTTP/1.1
POST /srv.asmx/UnpublishDocument HTTP/1.1
Content-Type: application/x-www-form-urlencoded
authenticationTicket=3f2504e0-4f89-11d3-9a0c-0305e82c3301
&documentPath=/Finance/Reports/Q1-2024-Report.pdf
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tns="http://tempuri.org/">
<soap:Body>
<tns:UnpublishDocument>
<tns:authenticationTicket>3f2504e0-4f89-11d3-9a0c-0305e82c3301</tns:authenticationTicket>
<tns:documentPath>/Finance/Reports/Q1-2024-Report.pdf</tns:documentPath>
</tns:UnpublishDocument>
</soap:Body>
</soap:Envelope>
UNPUBLISHED, hiding the document from read-only users.PublishDocument.| Error | Description |
|---|---|
[900] Authentication failed |
Invalid or missing authentication ticket. |
[901] Session expired or Invalid ticket |
The ticket has expired or does not exist. |
| Document not found | The specified path does not resolve to an existing document. |
| Access denied | The user does not have publish permission on the document. |
SystemError:... |
An unexpected server-side error occurred. |