_setClockinDiff

Sets the number of seconds for which a person is late or early to Clock-in

Parameters

id

The ID of the User Clock-in you're modifying the Clock-in difference of

diff

The number of seconds offset from the Clock-in time set for the User Clock-in.

Example

FM_api('UserClockin_setClockinDiff',[
  'id'=>'30020',
  'diff'=>'240'
  ]
);

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 match the ID of any existing User Clock-in

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

Last updated