Use TimeTrack Rest API to integrate TimeTrack with other systems. Happy Coding!
Attendance time entries are time entries without project assignment, simple clock in and clock out.
With this endpoint you can:
Attendance time entry object has following params:
curl “https://testaccount.timetrackenterprise.com/api/v2/ext/attendances/” -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:
In this example we search attendance time entries of user “tester” between 2020-10-01 and 2020-10-31.
curl “https://testaccount.timetrackenterprise.com/api/v2/ext/attendances?username=tester&from=2020-10-01T00:00:00Z&to=2020-10-31T00:00:00Z” -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/attendances/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 attendance time entry object.
Required params: username, from, to
curl -X “POST” “https://testaccount.timetrackenterprise.com/api/v2/ext/attendances” -H ‘Content-Type: application/json’ -H ‘X-TimeTrack-Api-Secret: <API_SECRET_TOKEN>‘ -H ‘X-TimeTrack-Api-Key: <API_KEY>‘ -d $'{ “username”: “tester”, “to”: “2020-10-17T14:00:00.000Z”, “minutesBreak”: 15, “details”: “This is a test”, “from”: “2020-10-17T10:00:00.000Z” }’
For update method you can use all params of attendance time entry object, except: username.
curl -X “PUT” “https://testaccount.timetrackenterprise.com/api/v2/ext/attendances/1” -H ‘Content-Type: application/json’ -H ‘X-TimeTrack-Api-Secret: <API_SECRET_TOKEN>‘ -H ‘X-TimeTrack-Api-Key: <API_KEY>‘ -d $'{ “notes”: “This is one test note”, “to”: “2020-10-17T23:00:00.000Z”, “minutesBreak”: 0 }’
Time Entry will be marked as deleted.
curl -X “DELETE” “https://testaccount.timetrackenterprise.com/api/v2/ext/attendances/1” -H ‘Content-Type: application/json’ -H ‘X-TimeTrack-Api-Secret: <API_SECRET_TOKEN>‘ -H ‘X-TimeTrack-Api-Key: <API_KEY>‘ -d $'{}’