addTimeRecord, adjust it, clone a full week with cloneTimeRecords, and submit the period with submitTimesheet. Every duration in Beebole is expressed in milliseconds.
These are write operations — they create and change data. For read-only reporting, see Export a month of time records.
Step 1 — Log a time entry
addTimeRecord creates one logged entry for a person on a given day. The required arguments are startTime (a Unix timestamp in milliseconds), duration (milliseconds), and personId. Pass taskId, absenceId, or projectIds to link the entry. Here the call logs 2 hours against a task.
Durations are in milliseconds. To log 2 hours, pass
7200000 (2 × 60 × 60 × 1000) — not 120 and not 2.id:
id — you will need it to update the record.
Step 2 — Adjust the entry
Each editable field has its own mutation. To correct the logged duration, calleditTimeRecordDuration with the record id and the new millisecond value. This changes the entry from 2 hours to 3 hours (10800000 ms):
editTimeRecordStartTime, editTimeRecordProjects, editTimeRecordTask, editTimeRecordComment, and editTimeRecordNonBillable. Each takes the record id plus the one value to change and returns the updated record.
Step 3 — Clone a full week
When a person’s week repeats a regular pattern,cloneTimeRecords copies their entries from a source period to a target period in one call. Set replaceExisting: true to clear the target period before cloning.
Step 4 — Submit the timesheet
Once the period is complete,submitTimesheet sends it into the approval workflow. It takes the personId and the startTime / endTime of the period, and returns a submit event whose id you pass to approveTimesheet or rejectTimesheet later.
status field reports the period’s approval state — d (draft), s (submitted), a (approved), or r (rejected). Beebole determines the current approval stage automatically.
Related content
API Introduction
Authenticate with your API key and send your first request.
Mutations
Every write operation, with full argument signatures.
Queries
Read back the records you create with these mutations.