Activity


Latest Activity across all projects

GET /latestActivity.json

Lists the latest activity across all projects ordered chronologically

Options

  • maxItems (numeric, default=60, Max=200)
  • onlyStarred (boolean, default=no)

Request

{
    "maxItems": "60"
}

Response

{
    "activity": [
        {
            "project-id": "999",
            "itemid": "999",
            "todo-list-name": "Things to do",
            "from-user-avatar-url": "https://s3.amazonaws.com/TWFiles/2/users/999.avatar",
            "description": "Register domain",
            "forusername": "",
            "publicinfo": "",
            "foruserid": "",
            "itemlink": "tasklists/58758",
            "datetime": "2014-03-28T15:24:58Z",
            "activitytype": "new",
            "project-name": "demo",
            "link": "tasks/436522",
            "extradescription": "Things to do",
            "isprivate": "0",
            "id": "999",
            "due-date": "20140329",
            "fromusername": "Demo U.",
            "type": "task",
            "for-user-avatar-url": "http://demo1company.teamwork.com/images/photo.jpg",
            "userid": "999"
        }
    ],
    "STATUS": "OK"
}

Returned object types include: 'message', 'comment', 'task', 'tasklist', 'milestone', 'file', 'notebook', 'timelog', 'task_comment', 'notebook_comment', 'file_comment', 'link_comment', 'milestone_comment', 'project','link'.


List Latest Activity (for a project)

GET /projects/{project_id}/latestActivity.json

Lists the latest activity list new tasks etc. for a given project.

Options

  • maxItems (number, default=60, max=200)

Request

{
    "maxItems": "1"
}

Response

{
    "activity": [
        {
            "project-id": "999",
            "itemid": "999",
            "from-user-avatar-url": "https://s3.amazonaws.com/TWFiles/2/users/999.avatar",
            "description": " This is a test message ",
            "forusername": "",
            "publicinfo": "",
            "foruserid": "",
            "itemlink": "",
            "datetime": "2014-03-31T11:00:45Z",
            "activitytype": "new",
            "project-name": "demo",
            "link": "messages/12#pmp16",
            "extradescription": "",
            "isprivate": "0",
            "id": "999",
            "due-date": "",
            "fromusername": "Demo U.",
            "type": "message",
            "for-user-avatar-url": "http://demo1company.teamwork.com/images/photo.jpg",
            "userid": "999"
        }
    ],
    "STATUS": "OK"
}

Delete an activity entry

DELETE /activity/{id}.json

Deletes the given activity log entry referenced by {id}.

Response

Returns HTTP status code 200 on success.