Magidoc

approveAssignment
Mutation

Approve a pending project assignment. When a project member whose own role is "member" or "only_my_work" adds someone to a project, the assignment is created with pending: true and must be approved by a project admin or workspace admin before it becomes active. Pass the project-level assignment's id; the user's pending todo assignments in the project are approved together with it.

On approval the assignments are activated, the inviter and the invitee are notified by email, and the approved user is added to the project's workspace (with no workspace permissions) if not already a member.

The caller must be a project admin or workspace admin. Returns true on success; calling it on an already-active assignment, on a todo-level assignment, or without sufficient access returns an unprocessable_entity error. Use denyAssignment to reject instead.

Arguments

#

id

Non-null

Project-level assignment id.

Response

#

Returns Boolean .

Example

#