Files
api-specs/idn/v3/paths/access-request-cancel.yaml
GitHub Action Bot 5b52d6945b Automated commit 'ISCARP-12339 - Add scope info to access-request endpoints (#1444)
* ISCARP-12339 - Add scope info to access-request endpoints

* ISCARP-123339 - Linting fix for put method name in operationId' by github action: 6487149128
2023-10-11 19:31:56 +00:00

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'