-
Notifications
You must be signed in to change notification settings - Fork 8
UserApprovals
michael.rybintsev edited this page Aug 8, 2019
·
2 revisions
It is possible for a user to request approval of a Document resource from a set of specified assignees. The UserApprovals resource represents all the documents where the current authenticated user has an outstanding approval assignment.
Operation |
---|
Retrieving user approvals |
The User resource will advertise a link with @rel value of approvals. To retrieve the user approvals, GET the approvals URI which will return a UserApprovals resource.
GET /files/users/123/approvals HTTP/1.1
Accept: application/vnd.huddle.data+xml
Authorization: OAuth2 frootymcnooty/vonbootycherooty
HTTP/1.1 200 OK
Content-Type: application/vnd.huddle.data+xml
<userApprovals xmlns="http://schema.huddle.net/2011/02/" count="2">
<link rel="self" href="files/users/123/approvals" />
<link rel="parent" href="users/123" />
<documents>
<document xmlns="http://schema.huddle.net/2011/02/" title="doc 1.">
<link rel="self" href="..." />
... other document elements ...
<assignment>
<link rel="self" href="..." />
<link rel="edit" href="..." />
<actor name="Jimmy Snake" email="[email protected]" rel="assignee">
<link rel="self" href="..." />
<link rel="avatar" href="..." type="image/jpg" />
<link rel="alternate" href="..." type="text/html" />
</actor>
<status>Open</status>
<created>2007-10-10T09:02:17Z</created>
</assignment>
</document>
<document xmlns="http://schema.huddle.net/2011/02/" title="doc 2.">
<link rel="self" href="..." />
... other document elements ...
<assignment>
<link rel="self" href="..." />
<link rel="edit" href="..." />
<actor name="Jimmy Snake" email="[email protected]" rel="assignee">
<link rel="self" href="..." />
<link rel="avatar" href="..." type="image/jpg" />
<link rel="alternate" href="..." type="text/html" />
</actor>
<status>Open</status>
<created>2007-11-23T09:02:17Z</created>
</assignment>
</document>
</documents>
</userApprovals>
<userApprovals xmlns="http://schema.huddle.net/2011/02/" count="2">
<link rel="self" href="files/users/123/approvals" />
<link rel="parent" href="users/123" />
<documents>
<document xmlns="http://schema.huddle.net/2011/02/" title="doc 1.">
<link rel="self" href="..." />
... other document elements ...
<assignment>
<link rel="self" href="..." />
<link rel="edit" href="..." />
<actor name="Jimmy Snake" email="[email protected]" rel="assignee">
<link rel="self" href="..." />
<link rel="avatar" href="..." type="image/jpg" />
<link rel="alternate" href="..." type="text/html" />
</actor>
<status>Open</status>
<created>2007-10-10T09:02:17Z</created>
</assignment>
</document>
<document xmlns="http://schema.huddle.net/2011/02/" title="doc 2.">
<link rel="self" href="..." />
... other document elements ...
<assignment>
<link rel="self" href="..." />
<link rel="edit" href="..." />
<actor name="Jimmy Snake" email="[email protected]" rel="assignee">
<link rel="self" href="..." />
<link rel="avatar" href="..." type="image/jpg" />
<link rel="alternate" href="..." type="text/html" />
</actor>
<status>Open</status>
<created>2007-11-23T09:02:17Z</created>
</assignment>
</document>
</documents>
</userApprovals>
<userApprovals xmlns="http://schema.huddle.net/2011/02/" count="0">
<link rel="self" href="files/users/123/approvals" />
<link rel="parent" href="users/123" />
<documents/>
</userApprovals>
Name | Description |
---|---|
documents | A list of Document resources that have outstanding approval assignments for the current authenticated user. |
count | How many documents are in the documents element |
Name | Description | Methods |
---|---|---|
self | The current URI of this UserApprovals resource. | GET |
parent | Retrieves the User resource that this resource belongs to. | GET |
start = userApprovals
userApprovals= element h:userApprovals{
attribute h:count{xsd:int},
link+,
element h:documents{document*}
}
- Basic concepts
-
Resources
- Actor
- Approvals
- BulkProcess
- Calendar
- Membership
- Company
- Document
- Document library settings
- Folder
- Paged Folder
- Pins
- Integrations
- Form
- Friends
- Invitation
- Link
- Document Lock
- Folder Lock
- Localisation
- MemberAutocomplete
- Notifications
- Offline item
- PeopleBulkProcess
- Permissions
- Presence
- PublishedDocuments
- Recents
- Recommendations
- Recycle Bin
- Search
- Share
- Tasks (Todos), File Requests, Approvals
- Tasks on Documents
- Actions
- UserApprovals
- User
- VersionHistory
- Workspace
- Workspaces
- SamlPartners
- Logout
- Impersonation
- Administration
- WebHooks