_setClockinTime

Sets the Clock-in time for a User Clock-in

Parameters

id

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

time

An integer variable (epoch time format) used to set the Clock-in time of the User Clock-in

Example

FM_api('UserClockin_setClockinTime',[
  'id'=>'30020',
  'time'=>'1688376600'
  ]
);

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