Time Tracking Events API


POST /api/v1/features/:feature_id/time_tracking_events

Log time for a feature with remaining estimate

POST /api/v1/features/1007868956/time_tracking_events

Example CURL command

curl "https://secure.aha.io/api/v1/features/1007868956/time_tracking_events" -d '{"time_tracking_event":{"user_id":689956296,"work_done_text":"1h 30min","remaining_estimate_text":"2h"}}' -X POST \
	-H "Authorization: Bearer 15b60d42d4bc417284a246ced6877b0bf13fb4aca415f7b55f7006bc3694a8ab" \
	-H "X-Aha-Account: account1" \
	-H "Content-Type: application/json" \
	-H "Accept: application/json"

Request

Authorization: Bearer 15b60d42d4bc417284a246ced6877b0bf13fb4aca415f7b55f7006bc3694a8ab
X-Aha-Account: account1
Content-Type: application/json
Accept: application/json
{
  "time_tracking_event": {
    "user_id": 689956296,
    "work_done_text": "1h 30min",
    "remaining_estimate_text": "2h"
  }
}

Response

Status: 200 OK
  Content-Type: application/json; charset=utf-8
{
  "time_tracking_event": {
    "id": "6488044293317551119",
    "user": {
      "id": "1020675218",
      "name": "Mary Humpty",
      "email": "mary.humpty@account1.com",
      "created_at": "2017-11-13T23:24:40.000Z",
      "updated_at": "2017-11-13T23:24:40.000Z"
    },
    "occurred_on": "2017-11-13",
    "work_done": 90.0,
    "work_units": 10
  }
}

POST /api/v1/features/:feature_id/time_tracking_events

Log time for a feature auto update remaining estimate

POST /api/v1/features/1007868956/time_tracking_events

Example CURL command

curl "https://secure.aha.io/api/v1/features/1007868956/time_tracking_events" -d '{"time_tracking_event":{"user_id":689956296,"work_done_text":"1h 30min"}}' -X POST \
	-H "Authorization: Bearer 15b60d42d4bc417284a246ced6877b0bf13fb4aca415f7b55f7006bc3694a8ab" \
	-H "X-Aha-Account: account1" \
	-H "Content-Type: application/json" \
	-H "Accept: application/json"

Request

Authorization: Bearer 15b60d42d4bc417284a246ced6877b0bf13fb4aca415f7b55f7006bc3694a8ab
X-Aha-Account: account1
Content-Type: application/json
Accept: application/json
{
  "time_tracking_event": {
    "user_id": 689956296,
    "work_done_text": "1h 30min"
  }
}

Response

Status: 200 OK
  Content-Type: application/json; charset=utf-8
{
  "time_tracking_event": {
    "id": "6488044293966382027",
    "user": {
      "id": "1020675218",
      "name": "Mary Humpty",
      "email": "mary.humpty@account1.com",
      "created_at": "2017-11-13T23:24:40.000Z",
      "updated_at": "2017-11-13T23:24:40.000Z"
    },
    "occurred_on": "2017-11-13",
    "work_done": 90.0,
    "work_units": 10
  }
}

POST /api/v1/requirements/:requirement_id/time_tracking_events

Log time for a requirement

POST /api/v1/requirements/483368544/time_tracking_events

Example CURL command

curl "https://secure.aha.io/api/v1/requirements/483368544/time_tracking_events" -d '{"time_tracking_event":{"user_id":689956296,"work_done_text":"2h"}}' -X POST \
	-H "Authorization: Bearer 15b60d42d4bc417284a246ced6877b0bf13fb4aca415f7b55f7006bc3694a8ab" \
	-H "X-Aha-Account: account1" \
	-H "Content-Type: application/json" \
	-H "Accept: application/json"

Request

Authorization: Bearer 15b60d42d4bc417284a246ced6877b0bf13fb4aca415f7b55f7006bc3694a8ab
X-Aha-Account: account1
Content-Type: application/json
Accept: application/json
{
  "time_tracking_event": {
    "user_id": 689956296,
    "work_done_text": "2h"
  }
}

Response

Status: 200 OK
  Content-Type: application/json; charset=utf-8
{
  "time_tracking_event": {
    "id": "6488044294544261108",
    "user": {
      "id": "1020675218",
      "name": "Mary Humpty",
      "email": "mary.humpty@account1.com",
      "created_at": "2017-11-13T23:24:40.000Z",
      "updated_at": "2017-11-13T23:24:40.000Z"
    },
    "occurred_on": "2017-11-13",
    "work_done": 120.0,
    "work_units": 10
  }
}

DELETE /api/v1/time_tracking_events/:id

Delete a time tracking event

Parameters

Name Description
id * Numeric ID of the time tracking event to be deleted

DELETE /api/v1/time_tracking_events/447203384

Example CURL command

curl "https://secure.aha.io/api/v1/time_tracking_events/447203384" -d '' -X DELETE \
	-H "Authorization: Bearer 15b60d42d4bc417284a246ced6877b0bf13fb4aca415f7b55f7006bc3694a8ab" \
	-H "X-Aha-Account: account1" \
	-H "Content-Type: application/json" \
	-H "Accept: application/json"

Request

Authorization: Bearer 15b60d42d4bc417284a246ced6877b0bf13fb4aca415f7b55f7006bc3694a8ab
X-Aha-Account: account1
Content-Type: application/json
Accept: application/json

Response

Status: 204 No Content
  

Overview

API Resources