Durable Functions

Deny a durable approval

Changed on

Denies a pending approval. The workflow resumes with the decision; a denial is a value the workflow branches on, not an error.

Only a person can decide: use the dashboard or a platform token from volcano login. Project access tokens are refused with 403.

Denying an approval that is already denied returns it unchanged. If the workflow cannot be reached right away, the decision still stands and Volcano keeps delivering it.

post/projects/{id}/durable-approvals/{approvalId}/deny

Request

  • Base URL
    https://api.volcano.dev
  • Auth
    HTTP bearer

Path parameters

id, string uuid required

Project ID

approvalId, string uuid required

Durable approval ID

Request body

DurableApprovalDecisionRequest required
comment, string

A note for the workflow and the approval's history.

Response

Denied

DurableApproval required

An approval a durable workflow requested.

id, string uuid required
status, 'pending' | 'approved' | 'denied' | 'expired' | 'cancelled' required

pending means the workflow is waiting for a decision. approved and denied are decisions a person made. expired means the workflow's approval timeout passed first, and cancelled means the execution ended while the approval was still pending. Every status but pending is final.

name, string required

The name the workflow gave the approval in ctx.waitForApproval.

title, string required
description, string required
details, unknown
function, DurableApprovalFunction required

The durable function that requested the approval. id is null once the function has been deleted; name is kept.

execution, DurableApprovalExecution required

The durable execution that requested the approval. id and status are null once the execution is no longer retained; name is kept.

requested_at, string date-time required
expires_at, string date-time nullable required

When the approval expires if nobody decides. Null when the workflow set no timeout; the approval then lasts as long as its execution.

decision, DurableApprovalDecision nullable required

Who decided and when. Null unless the approval was approved or denied.

Changes