_setClockoutNotes

Sets the Notes for a Clock-out time within a User Clock-in

Parameters

id

The ID of the User Clock-in which includes the Clock-out time being modified

notes

A JSON array with 3 objects:

  • "content" - A string with the new notes to be saved to the Clock-out time

  • "noteTime" - The time and date when the new notes were saved, as an epoch time format with milliseconds (e.g 1688489607000, being around 4:53pm on 04-07-2023)

  • "createdBy" - The ID of the User who modified the notes of the Clock-out

Example

FM_api('UserClockin_setClockoutNotes',[
  'id'=>'30020',
  'notes'=>'[
              {
              "content":"Left early due to \nSickness",
              "noteTime":1688489607000,
              "createdby":63763
              }
            ]'
      ]
);

Results

On Success

{"ok":1}

On Failure

If the "id" parameter is missing or has a value less than 1

{"error":"missing or invalid parameter: id"}

If the "id" parameter does not fit with any existing User Clock-in IDs

{"error":"clockin does not exist"}

Last updated