---
title: "Cancel a password access request"
method: POST
path: "/restapi/json/v1/accounts/{accountId}/cancelPasswordRequest"
tags: ["Access Control"]
---

# Cancel a password access request

`POST /restapi/json/v1/accounts/{accountId}/cancelPasswordRequest`

## Request

- Base URL: `https://Hostname:Port`
- URL: `https://Hostname:Port/restapi/json/v1/accounts/{accountId}/cancelPasswordRequest`
- Auth: API key in header `AUTHTOKEN`
- TypeScript: <https://skmtc.dev/manageengine/apis/pam360-rest-api/docs/restapi/json/v1/accounts/:accountId/cancelPasswordRequest/post.ts> (a function with typed inputs; its response is checked against the schema)

Cancels a pending password access request for the specified account. The request must be in an active/pending state to be canceled.

## Path parameters

- `accountId` integer, required

## Headers

- `orgName` string

## Response `200`

Password request canceled successfully.

- CancelPasswordRequestResponse
  - `operation` object
    - `result` object
      - `message` string
      - `status` string
      - `statusCode` integer
    - `Details` object
      - `IS_CANCELED` string: Whether the request was canceled.
      - `ACTIVE_STATUS` string: Current status of the request.
    - `name` string

---

[API](https://skmtc.dev/manageengine/apis/pam360-rest-api.md) - [All operations](https://skmtc.dev/manageengine/apis/pam360-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/manageengine/apis/pam360-rest-api/revisions/44a47abb4bdb?raw)
