Skip to content

Commit ac83f1d

Browse files
STAC-23211: Draft stackpack downgrade endpoint
1 parent 3889f3a commit ac83f1d

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

spec/stackpack.xapi.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,32 @@ paths:
169169
type: string
170170
"500":
171171
$ref: "generic_error_handling.xapi.yaml#/components/responses/genericErrorsResponse"
172+
173+
/stackpack/{stackPackName}/downgrade:
174+
post:
175+
tags:
176+
- stackpack
177+
parameters:
178+
- $ref: "#/components/parameters/stackPackName"
179+
- $ref: "#/components/parameters/requiredStackPackVersion"
180+
- in: query
181+
name: unlocked
182+
allowReserved: true
183+
required: true
184+
schema:
185+
type: string
186+
summary: "Downgrade API"
187+
operationId: downgradeStackPack
188+
description: "Downgrade a StackPack to an older version. Only supported for StackPacks 2.0; the target version must be lower than the currently installed version."
189+
responses:
190+
"200":
191+
description: "successful"
192+
content:
193+
application/json:
194+
schema:
195+
type: string
196+
"500":
197+
$ref: "generic_error_handling.xapi.yaml#/components/responses/genericErrorsResponse"
172198
/stackpack/{stackPackName}/versions:
173199
get:
174200
tags:
@@ -340,6 +366,13 @@ components:
340366
schema:
341367
type: string
342368
description: "Optional version string (e.g. '1.2.3'). If not provided, the latest version is used. When provisioning, the StackPack cannot already be installed at a different version."
369+
requiredStackPackVersion:
370+
in: query
371+
name: version
372+
required: true
373+
schema:
374+
type: string
375+
description: "Version string (e.g. '1.2.3') to downgrade to. Must be lower than the currently installed version."
343376
version:
344377
in: path
345378
name: version

0 commit comments

Comments
 (0)