Skip to main content

Approvals

Endpoints for working with approval processes and requests

GET /approvals/processes

Get a list of approval processes. Response includes any

GET /approvals/process/search/{search_phrase}

Search for approval processes by name.

GET /approvals/process/candidates/{documentType}/{documentid}

Return the approval processes that can be assigned to the given document. Resolves the document's draft workspace and returns processes for that workspace, or legacy-root processes (workspaceid null) when the draft is outside any workspace. Paginated like search. Callers must be able to edit the document (the same check that shows the Edit Approvals tab), not manage approval processes.

GET /approvals/process/{approval_processid}

Get details for an approval process including any pending approval requests for the process.

POST /approvals/process

Create a new approval process.

PATCH /approvals/process/{approval_processid}

Edit fields of an approval process. Unspecified fields will not be edited.

PUT /approvals/{wikiid}/{approval_processid}

Assign the default approval process by category. New guides under the specified category will automatically use the approval process. Existing guides will not be affected.

DELETE /approvals/{wikiid}

Remove the default approval process from a category. New guides under the specified category will no longer automatically use the approval process. Existing guides will not be affected.

GET /approvals/requests

Get a list of approval requests. The response body is an array of approval requests. See docs for /approvals/request/{approval_requestid} for the shape of an approval request.

GET /approvals/request/{approval_requestid}

Get an approval request along with data about the approval process and stages.

POST /approvals/request/sign/{approval_requestid}

Approve or reject an approval request using a Dozuki password.

POST /approvals/request/sign/{approval_requestid}/token

Approve or reject an approval request using SAML 2 Single Sign On (SSO) instead of a Dozuki user password