apidocs

AddUsergroupToDocumentSubscribers API

Adds a user group to the subscription list of a document. All members of the group receive email notifications for the selected events.

Endpoint

/srv.asmx/AddUsergroupToDocumentSubscribers

Methods

Parameters

Parameter Type Required Description
authenticationTicket string Yes Authentication ticket obtained from AuthenticateUser.
DocumentPath string Yes Full infoRouter path to the document (e.g. /Finance/Reports/Q1.pdf).
groupName string Yes Name of the user group to subscribe.
ON_READ boolean Yes true to notify when the document is read/viewed.
ON_CHANGE boolean Yes true to notify when document metadata changes.
ON_UPDATE boolean Yes true to notify when a new version is uploaded.
ON_CHECKOUT boolean Yes true to notify when the document is checked out.
ON_APPROVE boolean Yes true to notify when the document or workflow step is approved.
ON_REJECT boolean Yes true to notify when the document or workflow step is rejected.
ON_COMMENT boolean Yes true to notify when a comment is added to the document.
ON_MOVE boolean Yes true to notify when the document is moved to another folder.
ON_DELETE boolean Yes true to notify when the document is deleted.
ON_CHECKIN boolean Yes true to notify when the document is checked in.

Response

Success Response

<response success="true"/>

Error Response

<response success="false" error="[901]Session expired or Invalid ticket"/>

Required Permissions

Any authenticated user may call this API. The specified group and document must both exist.

Example

GET Request

GET /srv.asmx/AddUsergroupToDocumentSubscribers
    ?authenticationTicket=3f7a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c
    &DocumentPath=/Finance/Reports/Q1.pdf
    &groupName=Finance Team
    &ON_READ=true
    &ON_CHANGE=true
    &ON_UPDATE=true
    &ON_CHECKOUT=false
    &ON_APPROVE=true
    &ON_REJECT=true
    &ON_COMMENT=false
    &ON_MOVE=false
    &ON_DELETE=false
    &ON_CHECKIN=false
HTTP/1.1
Host: yourserver

POST Request

POST /srv.asmx/AddUsergroupToDocumentSubscribers HTTP/1.1
Host: yourserver
Content-Type: application/x-www-form-urlencoded

authenticationTicket=3f7a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c&DocumentPath=/Finance/Reports/Q1.pdf&groupName=Finance Team&ON_READ=true&ON_CHANGE=true&ON_UPDATE=true&ON_CHECKOUT=false&ON_APPROVE=true&ON_REJECT=true&ON_COMMENT=false&ON_MOVE=false&ON_DELETE=false&ON_CHECKIN=false

Notes

Error Codes

Error Description
[900] Authentication failed -“ invalid credentials.
[901] Session expired or invalid authentication ticket.
Group not found No user group with the specified groupName exists.
Document not found No document was found at the specified DocumentPath.