Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Info

This resource works with Enhanced Billing Mode (EBM) and is backwards compatible with the legacy time records data structures

If you are only working in EBM then you would be better off using the Time Entries resource

 

The Time Records resource represents system user entered time sheets. Time records MAY be linked to the Actions resources via the Tasks resources. Time Records have both an actual time value and a billable time value. No end timestamp for a time record exists, but is calculated using the "start" field and the "actualHours" field. Time Records are also specific to a division, which can be access via the Divisions resource.

 

Resource

...

Properties
Scope Parametertimerecords
Location/timerecords

...

Methods

...

GET POST PUT DELETE

...

Default Page Size

...

50
Max Page Size

...

200
Default Includes

...

None

 

Resource Attributes

 

FieldDescriptionFormatRequiredField TypeRestrictionsNotes
startTimestampTimestamp representing the start date/time of the recordtimestamptruedefault  
actualHoursThe total duration of the time record
decimal
numbertruedefault Cannot be less than zero.
billableHoursThe total number of hours that are to be billed
decimal
numberfalsedefault Cannot be less than zero.
notesA description of the time being recordedstringfalsedefault  
createdTimestampTimestamp of when the database record was createdtimestampfalse
additional
default 
isTimesheetEntryA flag for if the record was created through the timesheet interface or the time entry interfaceboolean
falseadditional
 
ownerThe system user to whom the time record belongsstring
true
falselink  
activityThe pre-defined activity associated with the time recordstring
true
falselink  
divisionThe division to which the time record belongsstring
true
falselink  
taskThe task against which the actual and billable time is loggedstring
true
falselink  
createdByThe system user who created the time recordstring
true
falselinkread-only 
actionThe action this time record is associated withstringfalselink  
rateThe rate override for this time recordstringfalselink  

 

Link Templates
IdentifierResourceLocation Template
timerecords.activitytimerecordactivities/timerecordactivities/{timerecords.activity}
timerecords.divisiondivisions/divisions/{timerecords.division}
timerecords.tasktasks/tasks/{timerecords.task}
timerecords.ownerparticipants/participants/{timerecords.owner}
timerecords.createdByparticipants/participants/{timerecords.createdBy}

 

Example Requests / Responses
  • GET timerecords
  • POST timerecords
  • PUT timerecords
  • DELETE timerecords

 

 

Errors
CodeFieldCondition
TR-01billableHoursThe billableHours value can't be less than zero.
TR-02actualHoursThe actualHours value can't be less than zero.
TR-03ownerThe owner is a system user.
TR-03ownerThe owner belongs to the specified division.
TR-04taskThe task belong to the specified division.
TR-05activityThe activity is available to the owner and division.