API
Use TimeTrack Rest API to integrate TimeTrack with other systems.
Happy Coding!
With projects endpoint you can:
Project object has following params:
| Params | Type | Description |
|---|---|---|
| ID | Integer | ID |
| projectName | Text | Project name |
| clientName | Text | Client name |
| projectEnabled | Boolean | Flag if project is enabled or disabled |
| notes | Text | Notes |
| hourRate | Number | Hourly rate |
| timeEstimated | Number | Planed duration of project in minutes |
| budgetEstimated | Number | Planed budget of project |
curl “https://testaccount.timetrackenterprise.com/api/v2/ext/projects/”
-H ‘Content-Type: application/json’
-H ‘X-TimeTrack-Api-Secret: <API_SECRET_TOKEN>‘
-H ‘X-TimeTrack-Api-Key: <API_KEY>‘
-d $'{}’
You can use following params for search / filter:
| Param | Type | Description |
|---|---|---|
| projectName | Text | Project name as substring. |
| clientName | Text | Client name as substring. |
In this example we search for projects that have Test in projectName.
curl “https://testaccount.timetrackenterprise.com/api/v2/ext/projects?projectName=Test”
-H ‘Content-Type: application/json’
-H ‘X-TimeTrack-Api-Secret: <API_SECRET_TOKEN>‘
-H ‘X-TimeTrack-Api-Key: <API_KEY>‘
-d $'{}’
Required params: id.
curl “https://testaccount.timetrackenterprise.com/api/v2/ext/projects/1”
-H ‘Content-Type: application/json’
-H ‘X-TimeTrack-Api-Secret: <API_SECRET_TOKEN>‘
-H ‘X-TimeTrack-Api-Key: <API_KEY>‘
-d $'{}’
For create method you can use all params of project object.
Required params: clientName, projectName
curl -X “POST” “https://testaccount.timetrackenterprise.com/api/v2/ext/projects”
-H ‘Content-Type: application/json’
-H ‘X-TimeTrack-Api-Secret: <API_SECRET_TOKEN>‘
-H ‘X-TimeTrack-Api-Key: <API_KEY>‘
-d $'{
“projectName”: “Test project 001”,
“clientName”: “Test company”
}’
For update you can use all params of project object – reminder: clientName has to match an existing client.
curl -X “PUT” “https://testaccount.timetrackenterprise.com/api/v2/ext/projects/1”
-H ‘Content-Type: application/json’
-H ‘X-TimeTrack-Api-Secret: <API_SECRET_TOKEN>‘
-H ‘X-TimeTrack-Api-Key: <API_KEY>‘
-d $'{
“hourRate”: “50”,
“notes”: “Test project for API”
}’
curl -X “DELETE” “https://testaccount.timetrackenterprise.com/api/v2/ext/projects/1”
-H ‘Content-Type: application/json’
-H ‘X-TimeTrack-Api-Secret: <API_SECRET_TOKEN>‘
-H ‘X-TimeTrack-Api-Key: <API_KEY>‘
-d $'{}’