Files
api-specs/idn/v3/paths/access-request-config.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

61 lines
1.6 KiB
YAML

get:
operationId: getAccessRequestConfig
security:
- UserContextAuth: [ idn:access-request-config:read ]
summary: Get Access Request Configuration
tags:
- Access Requests
description: >-
This endpoint returns the current access-request configuration.
responses:
'200':
description: Access Request Configuration Details.
content:
application/json:
schema:
$ref: '../schemas/AccessRequestConfig.yaml'
'400':
$ref: '../responses/400.yaml'
'401':
$ref: '../responses/401.yaml'
'403':
$ref: '../responses/403.yaml'
'429':
$ref: '../responses/429.yaml'
'500':
$ref: '../responses/500.yaml'
put:
operationId: setAccessRequestConfig
security:
- UserContextAuth: [ idn:access-request-config:update ]
summary: Update Access Request Configuration
tags:
- Access Requests
description: >-
This endpoint replaces the current access-request configuration.
A token with ORG_ADMIN authority is required to call this API.
requestBody:
required: true
content:
application/json:
schema:
$ref: '../schemas/AccessRequestConfig.yaml'
responses:
'200':
description: Access Request Configuration Details.
content:
application/json:
schema:
$ref: '../schemas/AccessRequestConfig.yaml'
'400':
$ref: '../responses/400.yaml'
'401':
$ref: '../responses/401.yaml'
'403':
$ref: '../responses/403.yaml'
'429':
$ref: '../responses/429.yaml'
'500':
$ref: '../responses/500.yaml'