Adds a comment to the specified document. Comments are visible to all users who have access to the document and are tracked with author and timestamp information.
/srv.asmx/AddDocumentComment
/srv.asmx/AddDocumentComment?AuthenticationTicket=...&DocumentPath=...&CommentText=.../srv.asmx/AddDocumentComment (form data)http://tempuri.org/AddDocumentComment| Parameter | Type | Required | Description |
|---|---|---|---|
AuthenticationTicket |
string | Yes | Authentication ticket obtained from AuthenticateUser |
DocumentPath |
string | Yes | Full path to the document (e.g., /Domain/Folder/Document.pdf) |
CommentText |
string | Yes | The comment text to add to the document |
<root success="true" />
<root success="false" error="[ErrorCode] Error message" />
The caller must have read access to the document by default. The specific required permissions depend on the domain policy settings:
DeleteDocumentCommentGetDocumentComments APIGET /srv.asmx/AddDocumentComment?AuthenticationTicket=abc123-def456&DocumentPath=/Engineering/Specs/Design.pdf&CommentText=Please%20review%20section%203 HTTP/1.1
Host: server.example.com
POST /srv.asmx/AddDocumentComment HTTP/1.1
Content-Type: application/x-www-form-urlencoded
AuthenticationTicket=abc123-def456&DocumentPath=/Engineering/Specs/Design.pdf&CommentText=Please review section 3
POST /srv.asmx HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://tempuri.org/AddDocumentComment"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<AddDocumentComment xmlns="http://tempuri.org/">
<AuthenticationTicket>abc123-def456</AuthenticationTicket>
<DocumentPath>/Engineering/Specs/Design.pdf</DocumentPath>
<CommentText>Please review section 3</CommentText>
</AddDocumentComment>
</soap:Body>
</soap:Envelope>
<?xml version="1.0" encoding="utf-8"?>
<root success="true" />
<?xml version="1.0" encoding="utf-8"?>
<root success="false" error="[2285]Document not found at specified path" />
GetDocumentComments - Retrieve all comments for a documentDeleteDocumentComment - Delete a specific commentAddISOComment - Add an ISO-specific commentAddSOXComment - Add a SOX compliance commentGetDocument - Get document detailsDocumentAccessAllowed - Check if user has specific access rightsGetAccessList - Get document access control listTask<XElement>Common error responses:
| Error | Description |
|---|---|
[901]Session expired or Invalid ticket |
Invalid or expired authentication ticket |
[2285]Document not found |
The specified document path does not exist |
[2730]Insufficient rights |
User does not have permission to add comments |
Invalid path format |
Document path is malformed or contains invalid characters |
Comment text cannot be empty |
No comment text provided or only whitespace |
Document is checked out |
May not be able to comment if document is checked out (policy-dependent) |
Document is archived |
Cannot add comments to archived documents |
If document subscriptions are enabled, the following users are notified when a comment is added: