Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit bd7dbd7

Browse files
authored
Merge pull request #1830 from 18F/tock-1820-api-docs
Update API docs for timecards endpoint
2 parents 344605f + b67e567 commit bd7dbd7

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

api-docs/timecards.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
----
33
To fetch a list of all submitted timecards and related information.
44

5+
Each entry in the response represents timecard data for a user, project, and reporting period.
6+
57
* **URL**
68

79
/timecards.json
@@ -32,13 +34,19 @@ To fetch a list of all submitted timecards and related information.
3234
"user": "brackish.okun",
3335
"project_id": "30",
3436
"project_name": "Big Project",
37+
"profit_loss_account": "FY15 Ministry of Coin Billable",
3538
"hours_spent": "16.80",
39+
"project_allocation": "0.000",
3640
"start_date": "2014-10-01",
3741
"end_date": "2014-10-04",
3842
"billable": true,
3943
"agency": "Ministry of Coin",
4044
"flat_rate": false,
41-
"notes": ""
45+
"notes": "",
46+
"billable_expectation": "0.80",
47+
"employee_organization": "Keepers of the Keys",
48+
"project_organization": "Keepers of the Keys",
49+
"grade": 15
4250
},...
4351
```
4452

@@ -53,5 +61,9 @@ To fetch a list of all submitted timecards and related information.
5361
$ curl https://tock.18f.gov/api/timecards.json\?date\=2016-01-01\&user\=brackish.okun\&project\=1 -H 'Authorization: Token 08c25228c4be36f5e66f1148fb9d9bcabb9ef41e'
5462
```
5563

56-
* **Notes:** The sample call includes all optional parameters.
57-
64+
* **Notes:**
65+
* The sample call includes all optional parameters.
66+
* `hours_spent` and `project_allocation`
67+
* For a given timecard entry in the response, at least one of hours and allocation should contain a zero value.
68+
* An entry may contain a zero value for both hours and allocation. Tock does not prevent a user from including a project in a timecard but not reporting any time for it.
69+

0 commit comments

Comments
 (0)