Files
api-specs/idn/beta/paths/connector-rule.yaml
GitHub Action Bot 9269e86172 Automated commit 'added new oauth2 flow and description (#1386)
* added new oauth2 flow and description

* renamed authentication to make more sense' by github action: 5967546682
2023-08-24 18:29:03 +00:00

131 lines
3.4 KiB
YAML

get:
tags:
- Connector Rule Management
summary: Connector-Rule by ID
operationId: getConnectorRule
description: >-
Returns the connector rule specified by ID.
A token with ORG_ADMIN authority is required to call this API.
parameters:
- name: id
in: path
description: ID of the connector rule to retrieve
required: true
style: simple
explode: false
schema:
type: string
example: 8c190e6787aa4ed9a90bd9d5344523fb
responses:
'200':
description: Connector rule with the given ID
content:
application/json:
schema:
$ref: '../schemas/ConnectorRuleResponse.yaml'
'400':
$ref: '../../v3/responses/400.yaml'
'401':
$ref: '../../v3/responses/401.yaml'
'403':
$ref: '../../v3/responses/403.yaml'
'404':
$ref: '../../v3/responses/404.yaml'
'429':
$ref: '../../v3/responses/429.yaml'
'500':
$ref: '../../v3/responses/500.yaml'
security:
- UserContextAuth: [idn:rule-management-connector:read, idn:rule-management-connector:manage]
put:
tags:
- Connector Rule Management
summary: Update a Connector Rule
description: >-
Updates an existing connector rule with the one provided in the request body.
Note that the fields 'id', 'name', and 'type' are immutable.
A token with ORG_ADMIN authority is required to call this API.
operationId: updateConnectorRule
parameters:
- name: id
in: path
description: ID of the connector rule to update
required: true
style: simple
explode: false
schema:
type: string
example: 8c190e6787aa4ed9a90bd9d5344523fb
requestBody:
description: >-
The connector rule with updated data
content:
application/json:
schema:
$ref: '../schemas/ConnectorRuleUpdateRequest.yaml'
responses:
'200':
description: The updated connector rule
content:
application/json:
schema:
$ref: '../schemas/ConnectorRuleResponse.yaml'
'400':
$ref: '../../v3/responses/400.yaml'
'401':
$ref: '../../v3/responses/401.yaml'
'403':
$ref: '../../v3/responses/403.yaml'
'404':
$ref: '../../v3/responses/404.yaml'
'429':
$ref: '../../v3/responses/429.yaml'
'500':
$ref: '../../v3/responses/500.yaml'
security:
- UserContextAuth: [idn:rule-management-connector:manage]
delete:
tags:
- Connector Rule Management
summary: Delete a Connector-Rule
description: >-
Deletes the connector rule specified by the given ID.
A token with ORG_ADMIN authority is required to call this API.
operationId: deleteConnectorRule
parameters:
- name: id
in: path
description: ID of the connector rule to delete
required: true
style: simple
explode: false
schema:
type: string
example: 8c190e6787aa4ed9a90bd9d5344523fb
responses:
'204':
$ref: '../../v3/responses/204.yaml'
'400':
$ref: '../../v3/responses/400.yaml'
'401':
$ref: '../../v3/responses/401.yaml'
'403':
$ref: '../../v3/responses/403.yaml'
'404':
$ref: '../../v3/responses/404.yaml'
'429':
$ref: '../../v3/responses/429.yaml'
'500':
$ref: '../../v3/responses/500.yaml'
security:
- UserContextAuth: [idn:rule-management-connector:manage]