Developers
Task activities
All requests need to pass a task_id parameter.
GET /tasks/task_id/task_activities
Returns all task activities of current specific task
{
"activities": [
{
"activity": {
...
}
},
...
]
}
<activities>
<activity>
...
</activity>
...
</activities>
POST /tasks/task_id/task_activities
Create a new task_activity
Request (cURL):
curl -d 'token=XXXXXXXXXXXX&api_key=XXXXXX&task_activity[notes]=notes' https://www.triggerapp.com/api/v1/tasks/task_id/task_activities
Parameters:
Attribute | Required? | Type | Remarks |
---|---|---|---|
notes | yes/no | string | required if not logging time |
end_at | yes/no | time | required if notes is blank |
duration | yes/no | decimal | required if notes is blank |
private | no | boolean | private updates are not visible to clients |
Response:
Returns status code 200 on success and the json or xml of the created task activity.
Failed requests will return 400.
PUT /tasks/task_id/task_activities/task_activity_id
Update an existing task_activity
Request (cURL):
curl -d 'token=XXXXXXXXXXXX&api_key=XXXXXX&task_activity[notes]=updated' -X https://www.triggerapp.com/api/v1/tasks/task_id/task_activities/task_activity_id
Response:
Returns status code 200 on success and the json or xml of the updated task_activity.
Failed requests will return 400.
DELETE /tasks/task_id/task_activities/task_activity_id
Destroy an existing task_activity
Request (cURL):
curl -d 'token=XXXXXXXXXXXX&api_key=XXXXXX' -X DELETE https://www.triggerapp.com/api/v1/tasks/task_id/task_activities/task_activity_id
Response:
Returns status code 204 on success and no content.
Failed requests will return 400.
GET /task_activities/recent
List the most recent task updates
Request (cURL):
curl -d 'token=XXXXXXXXXXXX&api_key=XXXXXX' -X DELETE https://www.triggerapp.com/api/v1/task_activities/recent
Response:
Returns status code 204 on success and no content.
Failed requests will return 400.
Try a 30-day free trial
No credit card required