v1

latestOpenAPI 3.1.02026-07-26549156879.0 KB
Approvals > MaterializedApprovalsFlow

Rejects an approval flow by resource

Rejects the current pending step of an approval flow identified by resource_id and resource_type, without needing to know the materialized_approval_flow_id.

post/api/2026-07-01/resources/approvals/materialized_approvals_flows/reject_resource

Request body

resource_idstring required

Id of the resource to reject.

resource_typestring required

Type of the resource to reject (e.g. Timeoff::Leave).

reasonstring

Optional reason for the rejection.

Example request

{
  "resource_id": "1",
  "resource_type": "Timeoff::Leave",
  "reason": "Does not comply with policy"
}

Response

OK

idstring required
author_idstring required
author_employee_idstring
owner_idstring required
owner_employee_idstring
resource_typestring required
resource_idstring required
resource_urlstring required
status'running' | 'requestedinformation' | 'changes_requested' | 'stopped' | 'approved' | 'rejected' required
expires_atstring required
final_decision_atstring
approval_flow_idstring required
email_detail_blocksstring[] required
override_approver_idstring
override_approver_employee_idstring
rules_decisionstring
auto_approval_descriptionstring
action_typestring
reasonstring