Updates the HTML content (and optionally the description) of an existing HTML document. The document is checked out, a new version is created with the provided HTML body, and then published according to publishOption.
/srv.asmx/UpdateHtmlDocument
/srv.asmx/UpdateHtmlDocument?authenticationTicket=...&documentPath=...&htmlContent=...&description=...&sendMail=...&publishOption=.../srv.asmx/UpdateHtmlDocument (form data)http://tempuri.org/UpdateHtmlDocument| Parameter | Type | Required | Description |
|---|---|---|---|
authenticationTicket |
string | Yes | Authentication ticket obtained from AuthenticateUser. |
documentPath |
string | Yes | Full infoRouter path of the existing HTML document (e.g. /Finance/Reports/Q1Summary.htm). |
htmlContent |
string | Yes | New raw HTML body text to store as the document content. |
description |
string | No | New document description. Pass null to leave the existing description unchanged. |
sendMail |
bool | Yes | Whether to send subscription notification emails to folder subscribers after the update. |
publishOption |
integer | Yes | Controls how the new document version is published. 0 = ServerDefault, 1 = Publish, 2 = DontPublish. |
| Value | Name | Behaviour |
|---|---|---|
0 |
ServerDefault | Applies the folder’s configured publishing rule. |
1 |
Publish | Forces the new document version to be published immediately. |
2 |
DontPublish | Saves the new version without publishing it. |
<root success="true" />
<root success="false" error="Error message" />
The calling user must have Check Out permission on the document. If the document is already checked out by a different user the call fails with an access-denied error.
The provided htmlContent is wrapped in the standard infoRouter HTML form data structure before storage:
<FORMDATA>
<Prompt Name="textcontent">...html content...</Prompt>
</FORMDATA>
Special XML characters in htmlContent (such as <, >, &) are escaped automatically before storage.
POST /srv.asmx/UpdateHtmlDocument HTTP/1.1
Content-Type: application/x-www-form-urlencoded
authenticationTicket=abc123&documentPath=/Finance/Reports/Q1Summary.htm&htmlContent=<h1>Q1 Summary</h1><p>Updated results.</p>&description=Updated Q1 summary&sendMail=false&publishOption=1
GET /srv.asmx/UpdateHtmlDocument?authenticationTicket=abc123&documentPath=/Finance/Reports/Q1Summary.htm&htmlContent=<h1>Q1</h1>&description=&sendMail=false&publishOption=0
CreateHtmlDocument.null for description preserves the document’s current description; passing an empty string clears it..htm / .html) document.