Magidoc

ApprovalRound
Object

An approval round represents a collection of approval stages that must be completed for an action. Each round can contain multiple stages that execute sequentially.

Fields

#

_id

ID !
Non-null

Unique identifier for the approval round. Use this value as the roundId parameter in mutations like requestApprovals or insertApprovalStage.

actionId

ID !
Non-null

ID of the action this approval round belongs to.

workspace

ID !
Non-null

ID of the workspace this approval round belongs to.

templateId

ID of the approval template this round was created from (if applicable).

name

Non-null

Display name for this approval round (e.g., "Round 1", "Design Review").

deleted

Non-null

Whether this approval round has been soft-deleted.

requestedBy

User ID who requested approvals for this round.

isRequested

Whether approvals have been requested from approvers.

moveToNextStage

Strategy for moving to the next stage (allResponded, allApproved, or anyApproved).

requestHistory

Non-null

History of all approval requests for this round.

createdAt

Non-null

Timestamp when this round was created.

createdBy

ID !
Non-null

User ID who created this round.

startRoundIfNotAllApproved

Whether to start the next round even if not all approvals were received.

stages

[ID !]!
Non-null

Array of stage IDs belonging to this round. These IDs correspond to ApprovalStage._id values.

approvalStages

Non-null

Resolved approval stage objects for this round.

Usages

#

References

#