create_or_replace_approval_flow
Create or replace a job approval flow in Greenhouse. Overwrites existing approver groups for the same approval type; new flows stay pending until request_approvals starts them.
Instructions
Create or replace an approval flow for a job. Write operation — overwrites existing.
If the job already has a flow of this approval_type, its approver groups are replaced; otherwise a new flow is created (pending — call request_approvals to start it). To find job_id: list_jobs → match by name. For approver user IDs: list_users → match by name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Greenhouse job ID | |
| sequential | No | Groups approve one after another (true) or all at once | |
| approval_type | Yes | Flow type: 'open_job', 'offer_job' or 'offer_candidate' | |
| approver_groups | Yes | Ordered approver groups: [{approvals_required: N, approvers: [{user_id: N} | {email: '...'}]}] |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |