Magidoc

addCreatorComment
Mutation

Used for creating creator 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 create comment for timesheet that he didn't create, $text variable is empty string after trim spaces

Arguments

#

timesheetId

ID !
Non-null

timesheetsId where creatorComment should be created

text

Non-null

text of comment

Response

#

Returns Timesheet .

Example

#

    
  

3

    
  

3

    
  

3