Updates the hyperlink address of an existing URL shortcut document (.url extension) by publishing a new version with the new address stored in the document’s MetaTag field.
/srv.asmx/UpdateURLDocument
/srv.asmx/UpdateURLDocument?authenticationTicket=...&documentPath=...&address=...&sendMail=...&publishOption=.../srv.asmx/UpdateURLDocument (form data)http://tempuri.org/UpdateURLDocument| Parameter | Type | Required | Description |
|---|---|---|---|
authenticationTicket |
string | Yes | Authentication ticket obtained from AuthenticateUser. |
documentPath |
string | Yes | Full infoRouter path of the URL shortcut document to update (e.g. /Finance/Links/Homepage.url). |
address |
string | Yes | New hyperlink URL to store on the document. |
sendMail |
bool | Yes | Whether to send subscription notification emails when the new version is published. Pass true to notify subscribers, false to suppress notifications. |
publishOption |
integer | Yes | Controls how the new version is published. 0 = ServerDefault (use the folder/document publishing rule), 1 = Publish (force publish), 2 = DontPublish (save without publishing). |
<root success="true" />
<root success="false" error="Error message" />
The calling user must have Check Out and Publish permissions on the document. The document must not be checked out by another user.
| Value | Name | Behaviour |
|---|---|---|
0 |
ServerDefault | Applies the folder or document publishing rule configured in infoRouter. |
1 |
Publish | Forces the new version to be published immediately regardless of the publishing rule. |
2 |
DontPublish | Saves the new version without publishing it. |
POST /srv.asmx/UpdateURLDocument HTTP/1.1
Content-Type: application/x-www-form-urlencoded
authenticationTicket=abc123&documentPath=/Finance/Links/Homepage.url&address=https://example.com/new&sendMail=true&publishOption=0
GET /srv.asmx/UpdateURLDocument?authenticationTicket=abc123&documentPath=/Finance/Links/Homepage.url&address=https://example.com/new&sendMail=true&publishOption=0
documentPath must be a URL shortcut (.url extension). Passing a regular document path will result in an error from PublishAsync since the document has no binary content to update.CreateURL.address field is stored in the document’s MetaTag and is not validated as a URL — any non-empty string is accepted.