Magidoc

setTimeTrackingItemToAction
Mutation

Add or edit time tracking item for action

Access: Requires user access to the underlying action and related project

Errors: Throws error if user does not have access to action or project.

Arguments

#

actionId

ID !
Non-null

Represents the ID of the action to which time is being added

time

Non-null

Represents amount of time to add to action

date

Non-null

Represents the date when the time item is being added or edited

description

Represents an optional description for the time tracking item

categoryId

Represents an optional ID of the category to which the time item relates.

id

Represents an optional ID for the time item itself. Provide for edit purpose

userId

Represents the ID of the user who is adding the time item

replaceForDate

Represents the flag to indicate if the time items for the date need to be replaced with the new time item

Response

#

Returns Action .

Example

#

    
  

3

    
  

3

    
  

3