Magidoc

updateTimesheetComment
Mutation

Used for updating existing comments in comment modal in "Timesheets" app.

Access: It requires user access.

Errors: Returns specific expected errors if: not deleted and not marked as history item timesheet doesn't exist, user trying to update comment that he didn't create, $text variable is empty string after trim spaces

Arguments

#

timesheetId

ID !
Non-null

timesheetsId with which comment is associated

text

Non-null

text of updated comment

isManager

variable to detect should managerComment be updated or creatorComment.

By default false

Response

#

Returns Timesheet .

Example

#

    
  

3

    
  

3

    
  

3