mirror of
https://github.com/LukeHagar/api-specs.git
synced 2025-12-09 12:27:48 +00:00
91 lines
2.4 KiB
YAML
91 lines
2.4 KiB
YAML
get:
|
|
tags:
|
|
- Connectors
|
|
operationId: getConnectorSourceConfig
|
|
description: >-
|
|
Fetches a connector's source config using its script name.
|
|
|
|
A token with ORG_ADMIN authority is required to call this API.
|
|
parameters:
|
|
- name: scriptName
|
|
in: path
|
|
description: The scriptName value of the connector. Scriptname is the unique id generated at connector creation.
|
|
required: true
|
|
style: simple
|
|
explode: false
|
|
schema:
|
|
type: string
|
|
example: aScriptName
|
|
responses:
|
|
'200':
|
|
description: The connector's source template
|
|
content:
|
|
application/xml:
|
|
schema:
|
|
type: string
|
|
'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:connector-config:read ]
|
|
put:
|
|
tags:
|
|
- Connectors
|
|
operationId: putSourceConfig
|
|
description: >-
|
|
Update a connector's source config using its script name.
|
|
|
|
A token with ORG_ADMIN authority is required to call this API.
|
|
parameters:
|
|
- name: scriptName
|
|
in: path
|
|
description: The scriptName value of the connector. Scriptname is the unique id generated at connector creation.
|
|
required: true
|
|
style: simple
|
|
explode: false
|
|
schema:
|
|
type: string
|
|
example: aScriptName
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
multipart/form-data:
|
|
schema:
|
|
type: object
|
|
required:
|
|
- file
|
|
properties:
|
|
file:
|
|
type: string
|
|
description: connector source config xml file
|
|
format: binary
|
|
responses:
|
|
'200':
|
|
description: The connector's update detail
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '../schemas/UpdateDetail.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:connector-config:update ] |