Updates the core properties of the specified document: display name, description, update instructions, source, language, author, and importance level. All fields are optional -“ only the fields provided are updated. This is the most complete version of the UpdateDocumentProperties family.
/srv.asmx/UpdateDocumentProperties2
/srv.asmx/UpdateDocumentProperties2?authenticationTicket=...&path=...&newDocumentName=...&newDescription=...&newUpdateInstructions=...&newDocumentSource=...&newDocumentLanguage=...&newDocumentAuthor=...&importance=.../srv.asmx/UpdateDocumentProperties2 (form data)http://tempuri.org/UpdateDocumentProperties2| Parameter | Type | Required | Description |
|---|---|---|---|
authenticationTicket |
string | Yes | Authentication ticket obtained from AuthenticateUser. |
path |
string | Yes | Full infoRouter path to the document (e.g. /Finance/Reports/Q1-Report.pdf), or a short document ID path (~D{id}). |
newDocumentName |
string | No | New display name for the document. Pass null or omit to leave unchanged. |
newDescription |
string | No | New description for the document. Line endings are normalized automatically. |
newUpdateInstructions |
string | No | New update instructions for contributors. Line endings are normalized automatically. |
newDocumentSource |
string | No | New source value (e.g. originating organization or URL). Line endings are normalized automatically. |
newDocumentLanguage |
string | No | New language tag (e.g. en, en-US, fr). Line endings are normalized automatically. |
newDocumentAuthor |
string | No | New author name. Line endings are normalized automatically. |
importance |
short (int16) | No | Importance level: -1 = NoMarkings, 0 = Low, 1 = Normal, 2 = High, 3 = Vital. Pass null or omit to leave unchanged. |
<response success="true" error="" />
<response success="false" error="Document not found." />
The calling user must have write (modify properties) permission on the document or its containing folder.
GET /srv.asmx/UpdateDocumentProperties2
?authenticationTicket=3f2504e0-4f89-11d3-9a0c-0305e82c3301
&path=/Finance/Reports/Q1-2024-Report.pdf
&newDocumentName=Q1+2024+Financial+Report
&newDescription=Quarterly+financial+summary
&newDocumentAuthor=Jane+Smith
&importance=2
HTTP/1.1
POST /srv.asmx/UpdateDocumentProperties2 HTTP/1.1
Content-Type: application/x-www-form-urlencoded
authenticationTicket=3f2504e0-4f89-11d3-9a0c-0305e82c3301
&path=/Finance/Reports/Q1-2024-Report.pdf
&newDocumentName=Q1 2024 Financial Report
&newDescription=Quarterly financial summary
&newDocumentAuthor=Jane Smith
&importance=2
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tns="http://tempuri.org/">
<soap:Body>
<tns:UpdateDocumentProperties2>
<tns:authenticationTicket>3f2504e0-4f89-11d3-9a0c-0305e82c3301</tns:authenticationTicket>
<tns:path>/Finance/Reports/Q1-2024-Report.pdf</tns:path>
<tns:newDocumentName>Q1 2024 Financial Report</tns:newDocumentName>
<tns:newDescription>Quarterly financial summary</tns:newDescription>
<tns:newDocumentAuthor>Jane Smith</tns:newDocumentAuthor>
<tns:importance>2</tns:importance>
</tns:UpdateDocumentProperties2>
</soap:Body>
</soap:Envelope>
null for any optional parameter leaves that field unchanged on the document.importance field maps to: -1 = NoMarkings, 0 = Low, 1 = Normal, 2 = High, 3 = Vital. To set importance independently, you can also use SetDocumentImportance.UpdateDocumentProperties or UpdateDocumentProperties1 if you don’t need the importance field.| 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 write permission on the document. |
SystemError:... |
An unexpected server-side error occurred. |