Skip to content

Commit d6ac3a2

Browse files
committed
feat: add internal endpoint updatePlugin
1 parent 8e9d184 commit d6ac3a2

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

swagger.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -989,6 +989,31 @@ paths:
989989
$ref: '#/definitions/function'
990990
default:
991991
$ref: '#/responses/error'
992+
/sites/{site_id}/plugins/{package}:
993+
put:
994+
operationId: updatePlugin
995+
tags: [x-internal]
996+
description: 'This is an internal-only endpoint.'
997+
parameters:
998+
- name: site_id
999+
type: string
1000+
in: path
1001+
required: true
1002+
- name: package
1003+
type: string
1004+
in: path
1005+
required: true
1006+
- name: plugin_params
1007+
in: body
1008+
schema:
1009+
$ref: '#/definitions/pluginParams'
1010+
responses:
1011+
'200':
1012+
description: OK
1013+
schema:
1014+
$ref: '#/definitions/plugin'
1015+
default:
1016+
$ref: '#/responses/error'
9921017
/deploys/{deploy_id}/plugin_runs:
9931018
post:
9941019
operationId: createPluginRun
@@ -2377,6 +2402,18 @@ definitions:
23772402
type: string
23782403
framework:
23792404
type: string
2405+
pluginParams:
2406+
type: object
2407+
properties:
2408+
pinned_version:
2409+
type: string
2410+
plugin:
2411+
type: object
2412+
properties:
2413+
package:
2414+
type: string
2415+
pinned_version:
2416+
type: string
23802417
buildStatus:
23812418
type: object
23822419
properties:

0 commit comments

Comments
 (0)