mirror of
https://github.com/LukeHagar/api-specs.git
synced 2025-12-09 20:37:50 +00:00
38 lines
993 B
YAML
38 lines
993 B
YAML
post:
|
|
operationId: rejectAccessRequest
|
|
summary: Rejects an access request approval.
|
|
tags:
|
|
- Access Request Approvals
|
|
description: >-
|
|
This endpoint rejects an access request approval. Only the owner of the approval and admin users are allowed to perform this action.
|
|
parameters:
|
|
- in: path
|
|
name: approvalId
|
|
schema:
|
|
type: string
|
|
required: true
|
|
description: The id of the approval.
|
|
example: 2c91808b7294bea301729568c68c002e
|
|
requestBody:
|
|
description: Reviewer's comment.
|
|
required: false
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: "../schemas/CommentDto.yaml"
|
|
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'
|