Approvals API
An approval request is one time a planning record was put up for approval: an epic, a story, a requirement, a business rule or a use case, a baseline or a change request, submitted by its author and decided by the approvers the project's policy names for that kind of approval.
An approval request is one time a planning record was put up for approval: an epic, a story, a requirement, a business rule or a use case, a baseline or a change request, submitted by its author and decided by the approvers the project's policy names for that kind of approval. Submitting binds the request to the version of the record as it stood, moves the record into review where it has a review status, and tells the approvers. Each approver writes one signed verdict per round: approve, reject, or ask for changes. The policy's rule says how many approvals carry the request (any one, every approver, or a quorum); one rejection closes it and returns the record to where it stood; a request for changes holds it until the author edits the record and resubmits, which opens the next round. A request that carries stamps the record approved at the next version, bound to the revision that was reviewed.
Every policy sets clocks: the hours the approvers have, when the undecided ones are nudged, and when a request may carry by itself; the hourly sweep rings them, escalating an overdue request to the project's lead. A project that never changed a kind reads the defaults; the policy endpoint shows which.
Deciding is a person's act: the submit door is open to agents, the decide door is not. A client guest's token reads and decides only the requests that name them (through a stakeholder seat linked to their account) and submits nothing. Every write runs the same action the pages run and announces itself as an approval.* event; the move an approval makes on the record itself is announced by the record's own family (requirement.status_changed and its siblings).
Endpoints
/v1/approvalsList the inboxGET/v1/approvals/{approval}Get an approval requestGET/v1/projects/{project}/approval-policiesList a project's approval policiesPUT/v1/projects/{project}/approval-policiesUpdate a project's approval policyGET/v1/projects/{project}/approvalsList a project's approvalsPOST/v1/approvals/{approval}/decideDecide an approvalPOST/v1/approvals/{approval}/withdrawWithdraw an approvalPOST/v1/baselines/{baseline}/submitSubmit a baselinePOST/v1/change-requests/{changeRequest}/submitSubmit a change requestPOST/v1/business-rules/{rule}/submitSubmit a business rulePOST/v1/requirements/{requirement}/submitSubmit a requirementPOST/v1/use-cases/{useCase}/submitSubmit a use casePOST/v1/epics/{epic}/submitSubmit an epicPOST/v1/work-items/{item}/submitSubmit a storyRelated
How is this guide?
Last updated on