-
Notifications
You must be signed in to change notification settings - Fork 8
TasksRetired
Tasks represent work items to be completed by an arbitary set of assignees.
This documentation is around the Classic API See Classic which has been retired for Tasks in favour of the functionality documented in Task
Operation |
---|
Get a list of Tasks |
Update Task |
Gets a list of tasks. If you do not specify a workspace Id it will return the authenticated users tasks. You can filter this list using the status query string parameter. The possible values are: all|completed|late|upcoming (e.g. status=late), the default is all. If you specify the workspace id, it will return all the tasks for that workspace. You can filter the users returned using the users query string (e.g. users=123,456,789)
POST v1/json/tasks?workspaceId={45678}&status={late}&users={123,456,789} HTTP/1.1
Host: api.huddle.net
{ "Data" : [
{ "AssignedTo" : { "Users" : [ { "Id" : 123, "Name" : "james", "Team" : "Test team", "TeamId" : 123 } ] },
"Attachment" : { "ApplicationUrl" : "/workspace/document/123?workspaceid=123&directoryid=123", "ApprovalUrl" : "/workspace/document/123?workspaceid=123&directoryid=123&action=approve",
"Description" : "",
"FileName" : "Notes", "Id" : 123, "Title" : "Notes", "Url" : "files/123" },
"CompletedBy" : null, "CompletedDate " : null,
"CreatedDate" : { "Day" : 3, "FormattedDate" : "03/06/2009 10:26", "Hour" : 10, "Minute" : 26, "Month" : 6, "Year" : 2009 },
"Description" : "",
"DueDate" : { "Day" : 3, "FormattedDate" : "03/06/2009 00:00", "Hour" : 0, "Minute" : 0, "Month" : 6, "Year" : 2009 },
"Id" : 123, "IsApproval" : false, "Status" : "Upcoming",
"Title" : "File Attachment", "Uri" : "/huddleworkspace/task.aspx?workspaceid=123&taskid=123", "WorkspaceId" : 123,
"WorkspaceName" : "Tasks" } ],
"Error" : null,
"Success" : true
}
The method allows the authenticated user to update the properties of the specified task. The only action that can be performed for now is marking a task as complete or not complete. The action can be performed only if the authenticated user has been assigned the task or is a workspace manager.
https://api.huddle.net/v1/json/tasks/{taskid}
{taskId}: The id of the task you are updating.
POST v1/json/tasks/12345 HTTP/1.1
Host: api.huddle.net
{"Complete":true}
{"Error":null,"Success":true}
400: The id provided could not be recognised
401: Authentication error
403: You do not have permission to access the item requested
500: There was an error processing your request
- 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