Magidoc

setTimesheetLock
Mutation

Used for locking/unlocking editing of timesheets in "Manage" tab "Timesheets" app.

Access: Requires workspace admin access

Errors: Returns specific expected errors if: error if user is not workspace admin, returns null if is not logged in or not deleted not history timesheet with status different to Unsubmitted not found

Arguments

#

timesheetId

ID !
Non-null

id of timesheet to lock/unlock

locked

Non-null

lock/unlock state variable

Response

#

Returns Timesheet .

Example

#

    
  

3

    
  

3

    
  

3