mirror of
https://github.com/LukeHagar/api-specs.git
synced 2025-12-10 04:19:19 +00:00
* ISCARP-12339 - Add scope info to access-request endpoints * ISCARP-123339 - Linting fix for put method name in operationId' by github action: 6487149128
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
post:
|
|
operationId: cancelAccessRequest
|
|
security:
|
|
- UserContextAuth: [ idn:access-request:cancel ]
|
|
tags:
|
|
- Access Requests
|
|
summary: Cancel Access Request
|
|
description: >-
|
|
This API endpoint cancels a pending access request. An access request can be cancelled only if it has not passed the approval step.
|
|
|
|
Any token with ORG_ADMIN authority or token of the user who originally requested the access request is required to cancel it.
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '../schemas/CancelAccessRequest.yaml'
|
|
example:
|
|
{
|
|
"accountActivityId": "2c91808568c529c60168cca6f90c1313",
|
|
"comment": "I requested this role by mistake."
|
|
}
|
|
responses:
|
|
'202':
|
|
$ref: '../responses/202.yaml'
|
|
'400':
|
|
$ref: '../responses/400.yaml'
|
|
'401':
|
|
$ref: '../responses/401.yaml'
|
|
'403':
|
|
$ref: '../responses/403.yaml'
|
|
'404':
|
|
$ref: '../responses/404.yaml'
|
|
'429':
|
|
$ref: '../responses/429.yaml'
|
|
'500':
|
|
$ref: '../responses/500.yaml'
|