apidocs

RemoveTagFromDocument API

Removes a specific applied tag from a document. Because a document may have the same tag applied multiple times (e.g. by different users or at different times), the API requires an exact match on all identifying fields -“ tag text, version number, date applied, and the user who applied it. Use this API to remove a tag that was applied via a workflow step or via SetTagToDocument when it is no longer appropriate.

Endpoint


/srv.asmx/RemoveTagFromDocument

Methods

Parameters

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).
tagText string Yes Exact text of the tag to remove. Must be case-sensitive and match the stored value exactly. Obtain the exact tag text from the document’s applied tag list or from GetTagDefintions.
tagDate DateTime Yes The exact date and time the tag was applied, in yyyy-MM-ddTHH:mm:ss format. UTC values are automatically converted to server local time before matching. Must match the stored TAGDATE value exactly.
taggedBy int Yes Internal user ID of the user who applied the tag. Must match the stored TAGGEDBYID value exactly. Obtain via GetUser or GetAllUsers.
versionNumber int Yes Internal version number of the document version the tag was applied to. This is the raw internal version number (e.g. 1000000 for Version 1, 2000000 for Version 2). Must match the stored VERSIONNUMBER value exactly.

Response

Success Response


<response success="true" />

Note: A success="true" response is returned even if no matching tag record was found. The underlying DELETE statement deletes zero rows silently -“ no error is raised for a non-matching combination.

Error Response


<response success="false" error="Insufficient rights." />


Required Permissions

The calling user must have the DocumentPropertyChange permission on the document. This is typically granted to document owners, domain managers, and users with Edit access. Read-only users cannot remove tags.


Example

GET Request


GET /srv.asmx/RemoveTagFromDocument

  ?authenticationTicket=3f2504e0-4f89-11d3-9a0c-0305e82c3301

  &path=/Finance/Reports/Q1-2024-Report.pdf

  &tagText=Approved

  &tagDate=2024-06-15T14:30:00

  &taggedBy=12

  &versionNumber=1000000

HTTP/1.1

POST Request


POST /srv.asmx/RemoveTagFromDocument HTTP/1.1

Content-Type: application/x-www-form-urlencoded



authenticationTicket=3f2504e0-4f89-11d3-9a0c-0305e82c3301

&path=/Finance/Reports/Q1-2024-Report.pdf

&tagText=Approved

&tagDate=2024-06-15T14:30:00

&taggedBy=12

&versionNumber=1000000

SOAP Request


<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"

               xmlns:tns="http://tempuri.org/">

  <soap:Body>

    <tns:RemoveTagFromDocument>

      <tns:authenticationTicket>3f2504e0-4f89-11d3-9a0c-0305e82c3301</tns:authenticationTicket>

      <tns:path>/Finance/Reports/Q1-2024-Report.pdf</tns:path>

      <tns:tagText>Approved</tns:tagText>

      <tns:tagDate>2024-06-15T14:30:00</tns:tagDate>

      <tns:taggedBy>12</tns:taggedBy>

      <tns:versionNumber>1000000</tns:versionNumber>

    </tns:RemoveTagFromDocument>

  </soap:Body>

</soap:Envelope>


Notes



Error Codes

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 path does not resolve to an existing document.
Insufficient rights. The calling user does not have the DocumentPropertyChange permission on the document.
SystemError:... An unexpected server-side error occurred.