Withdraw request
cancel_requestWithdraw your own open approval request by verifying its case state and requester; midPoint enforces cancel authorization and confirms closure.
Instructions
Withdraw your own open approval request. Reads the case and checks its state and requester before writing, even with writes disabled. midPoint enforces cancel authorization. Uses plain REST with no comment; reads back the case to confirm closure. userName and roleName are the midPoint names (the unique name attribute, such as a login, not display names) of the objects the OIDs point to, as list and get results give them; the call is refused when they don't match, so the person confirming it reads the right names. Respects the write gate. When you write to a person, name people, roles and requests by their display names rather than OIDs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caseOid | Yes | OID of your open request to withdraw | |
| roleName | Yes | midPoint name of the role (or other object) the request adds or removes; empty only when midPoint doesn't show you its name | |
| userName | Yes | midPoint name (login) of the person the request is for; empty only when midPoint doesn't show you their name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | the JSON body of the midPoint REST request, when it has one | |
| case | No | ||
| tool | Yes | the tool that produced this result | |
| acting | Yes | who midPoint executed this call as | |
| dryRun | Yes | ||
| method | Yes | ||
| result | No | ||
| server | Yes | write gate, features and versions of this server | |
| applied | Yes | ||
| caseOid | Yes | ||
| subject | Yes | ||
| summary | Yes | ||
| endpoint | Yes | ||
| withdrawal | Yes |