-
Notifications
You must be signed in to change notification settings - Fork 8
Changes
michael.rybintsev edited this page Aug 8, 2019
·
2 revisions
Changes represent the list of changes made to an object and its children.
Operation |
---|
Retrieving a changes list |
When retrieving a workspace, the response will advertise a changes link, which you can use to GET the changes made to the workspace and its children.
Responses are paged, you can navigate between pages by following the next and prev links. The URI advertised by the workspace will always point to the most recent set of changes. The earliest set of changes is advertised by the last link. The most recent changes are available at the first link.
In this example we are asking for the list of changes of a folder and its children.
GET /workspaces/12345/changes
Accept: application/vnd.huddle.data+xml
Authorization: OAuth2 frootymcnooty/vonbootycherooty
If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT
This response uses the standard error codes and returns standard response headers.
HTTP/1.1 200 OK
Content-Type: application/vnd.huddle.data+xml
Last-Modified: Tue, 1 Feb 2011 13:18:42 GMT
<changes xmlns="http://schema.huddle.net/2011/02/">
<link rel="self" href="..." />
<link rel="next" href="..." />
<link rel="last" href="..." />
<change>
<link rel="self" href="..." />
<link rel="subject" href="..." />
<link rel="workspace" href="..." />
<link rel="parent" href="..." />
<type>DocumentCheckedOut</type>
<actor name="Mrs. Teasdale" email="[email protected]" rel="owner">
<link rel="self" href="..." />
<link rel="avatar" href="..." type="image/jpg" />
<link rel="alternate" href="..." type="text/html" />
</actor>
<created>2011-02-01T13:18:42Z</created>
<correlationId>2345-3567-1234-235566</correlationId>
</change>
<change>
<link rel="self" href="..." />
<link rel="subject" href="..." />
<link rel="workspace" href="..." />
<link rel="parent" href="..." />
<type>ObjectCreated</type>
<actor name="Rufus T. Firefly" email="[email protected]" rel="owner">
<link rel="self" href="..." />
<link rel="avatar" href="..." type="image/jpg" />
<link rel="alternate" href="..." type="text/html" />
</actor>
<created>2011-02-01T13:17:42Z</created>
</change>
</changes>
<changes xmlns="http://schema.huddle.net/2011/02/">
<link rel="self" href="..." />
<link rel="next" href="..." />
<link rel="first" href="..." />
<link rel="last" href="..." />
<change>
<link rel="self" href="..." />
<link rel="subject" href="..." />
<link rel="workspace" href="..." />
<link rel="parent" href="..." />
<type>DocumentCheckedOut</type>
<actor name="Isidore McHohenheim" email="[email protected]" rel="owner">
<link rel="self" href="..." />
<link rel="avatar" href="..." type="image/jpg" />
<link rel="alternate" href="..." type="text/html" />
</actor>
<created>2011-02-01T13:17:42Z</created>
<correlationId>2345-3567-1234-235566</correlationId>
</change>
<change>
<link rel="self" href="..." />
<link rel="subject" href="..." />
<link rel="workspace" href="..." />
<link rel="parent" href="..." />
<type>ObjectCreated</type>
<actor name="Isidore McHohenheim" email="[email protected]" rel="owner">
<link rel="self" href="..." />
<link rel="avatar" href="..." type="image/jpg" />
<link rel="alternate" href="..." type="text/html" />
</actor>
<created>2011-02-01T13:17:40Z</created>
</change>
</changes>
Name | Description | Methods | Optional |
---|---|---|---|
pagesize | Number of elements to return per page, between 50 - 2000. Default: 50 | GET | Yes |
Request with parameter
GET /workspaces/12345/changes?pagesize=200
Accept: application/vnd.huddle.data+xml
Authorization: OAuth2 frootymcnooty/vonbootycherooty
If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT
Name | Description |
---|---|
change | A change element is a representation of the single change made to a folder or to one of its children, or a user. |
type | The type of the change made to the resource. The possible types are: ObjectCreated, ObjectUpdated, ObjectDeleted, ObjectArchived, CommentCreated, CommentDeleted, DocumentMoved, DocumentUpdated, DocumentCheckedOut, DocumentUndoCheckOut, FolderMoved, DocumentCopied, DocumentVersionDeleted, WorkflowUpdated, WorkflowCompleted, WorkflowAssignmentCompleted, WorkflowAssignmentClosed, PermissionChanged, |
created | The date of the change. |
correlationId | If a set of change elements are related, they will all include a correlationId . This Id is a string representation of a Guid and will have the same value for all related change events. |
Name | Description | Methods |
---|---|---|
self | The current URI of this change list. | GET |
subject | The URI of the resource for which the change applies (e.g. Document, Folder, User). | GET |
workspace | The URI of the workspace for which the change applies. | GET |
parent | Changes that relate to a Document or Folder resource will have a parent link. | GET |
next | The URI of the next set of changes ordered from newest to oldest. | |
prev | The URI of the previous set of changes ordered from newest to oldest. | |
first | The URI of the most recent set of changes. | |
last | The URI of the oldest set of changes. |
start = changes
changes = element h:changes {
link+,
change+
}
change = element h:change {
link+,
element h:type {xsd:string},
actor,
element h:created {xsd:dateTime}
element h:correlationId? {xsd:string}
}
- 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