---
title: "Cancel an approval process"
method: POST
path: "/approval_policies/{approval_policy_id}/processes/{process_id}/cancel"
tags: ["Approval policies"]
---

# Cancel an approval process

`POST /approval_policies/{approval_policy_id}/processes/{process_id}/cancel`

## Request

- Base URL: `https://api.sandbox.monite.com/v1`
- URL: `https://api.sandbox.monite.com/v1/approval_policies/{approval_policy_id}/processes/{process_id}/cancel`
- Auth: HTTP bearer

Cancel an ongoing approval process for a specific approval policy.

## Path parameters

- `approval_policy_id` string, required
- `process_id` string, required

## Headers

- `x-monite-version` string, required
- `x-monite-entity-id` string, required

## Response `200`

Successful Response

- ProcessResource
  - `id` string, uuid, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time
  - `created_by` string, uuid
  - `error` object: The error for the process.
  - `input` object, required: The input for the script.
  - `metadata` object, required: The metadata for the process.
  - `script_snapshot` union: The script snapshot taken when script started.
    - boolean
    - number, double
    - string
    - unknown[]
      - unknown
    - object
  - `status` 'succeeded' | 'waiting' | 'failed' | 'running' | 'canceled' | 'timed_out', required
  - `updated_by` string, uuid

## Other responses

- `401`: The `Authorization` header is missing or contains an invalid or expired access token. See [Authentication](https://docs.monite.com/api/concepts/authentication) to learn how to authenticate API calls.
- `404`: Possible responses: `Approval policy with ID {id} not found.`, `Approval policy process with ID {id} not found.`
- `409`: Possible responses: `Action is not allowed for approval policy process with id {id} because it is not in one of the following statuses: {possible_statuses}`
- `422`: Validation Error
- `429`: API rate limit has been exceeded. Check the response headers for the rate limit information.

---

[API](https://skmtc.dev/monite/apis/monite-2.md) - [All operations](https://skmtc.dev/monite/apis/monite-2/llms.txt) - [OpenAPI document](https://skmtc.dev/monite/apis/monite-2/revisions/4299ccf95edb?raw)
