apidocs

AddUserToFolderSubscribers API

Adds a user to the subscription list of a folder. The subscriber receives email notifications for the selected events on the folder and, optionally, all subfolders and their documents.

Endpoint

/srv.asmx/AddUserToFolderSubscribers

Methods

Parameters

Parameter Type Required Description
authenticationTicket string Yes Authentication ticket obtained from AuthenticateUser.
FolderPath string Yes Full infoRouter path to the folder (e.g. /Finance/Reports).
UserName string Yes Login name of the user to subscribe.
ON_READ boolean Yes true to notify when documents in the folder are read/viewed.
ON_CHANGE boolean Yes true to notify when folder or document metadata changes.
ON_UPDATE boolean Yes true to notify when a new document version is uploaded.
ON_CHECKOUT boolean Yes true to notify when a document is checked out.
ON_APPROVE boolean Yes true to notify when a document or workflow step is approved.
ON_REJECT boolean Yes true to notify when a document or workflow step is rejected.
ON_COMMENT boolean Yes true to notify when a comment is added to a document.
ON_MOVE boolean Yes true to notify when a document or subfolder is moved.
ON_DELETE boolean Yes true to notify when a document or subfolder is deleted.
ON_CHECKIN boolean Yes true to notify when a document is checked in.
ON_NEWDOC boolean Yes true to notify when a new document is added to the folder.
IncludeSubObjects boolean Yes true to also apply this subscription to all subfolders and their documents recursively. false to subscribe to the specified folder only.

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 user and folder must both exist.

Example

GET Request -“ subscribe to folder and all subfolders

GET /srv.asmx/AddUserToFolderSubscribers
    ?authenticationTicket=3f7a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c
    &FolderPath=/Finance/Reports
    &UserName=jdoe
    &ON_READ=false
    &ON_CHANGE=false
    &ON_UPDATE=true
    &ON_CHECKOUT=false
    &ON_APPROVE=false
    &ON_REJECT=false
    &ON_COMMENT=false
    &ON_MOVE=false
    &ON_DELETE=false
    &ON_CHECKIN=false
    &ON_NEWDOC=true
    &IncludeSubObjects=true
HTTP/1.1
Host: yourserver

POST Request

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

authenticationTicket=3f7a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c&FolderPath=/Finance/Reports&UserName=jdoe&ON_READ=false&ON_CHANGE=false&ON_UPDATE=true&ON_CHECKOUT=false&ON_APPROVE=false&ON_REJECT=false&ON_COMMENT=false&ON_MOVE=false&ON_DELETE=false&ON_CHECKIN=false&ON_NEWDOC=true&IncludeSubObjects=true

Notes

Error Codes

Error Description
[900] Authentication failed -“ invalid credentials.
[901] Session expired or invalid authentication ticket.
User not found No user with the specified UserName exists.
Folder not found No folder was found at the specified FolderPath.