updateAssignment Mutation
Update an existing assignment. Pass the assignment's id in
assignment.id (as a string) plus the fields to change: role,
hourlyBillingRate, hourlyInternalRate, plannedHours,
workEffort, workEffortCustomized, redistributed. The
assignment's userId and target (todoId, projectId, stackId)
cannot be changed; delete and recreate instead. The pending flag is
not updatable here; use approveAssignment or denyAssignment.
Updating a project todo assignment also syncs the rate overrides onto
the user's project-level assignment (returned as
projectAssignment); plannedHours stays per-todo. Role changes are
validated with the same rules as createAssignment. Changing
workEffort marks the assignment as customized and triggers
recalculation of the todo's total work effort and planned time.
Access control: workspace admins, project admins ("admin" or
"admin+autoassign"), or, for todo assignments, any user assigned to
that todo. Returns AssignmentResult with assignmentId and
projectAssignment; not-found, access, and validation failures
return an unprocessable_entity error.
Arguments
#
Response
#
Returns AssignmentResult .
Example
#
undoDeleteTodo
updateBox
