Skip to content

Commit aee5f0a

Browse files
authored
update force delete body (#555)
1 parent 0b86503 commit aee5f0a

File tree

2 files changed

+27
-25
lines changed

2 files changed

+27
-25
lines changed

platform/paths/hubs/hub.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -77,19 +77,20 @@ delete:
7777
- Hubs
7878
security:
7979
- bearerAuth: []
80-
parameters:
81-
- name: options
82-
in: query
83-
required: false
84-
schema:
85-
type: object
86-
properties:
87-
force:
88-
type: string
89-
description: If force is set to true, this will force delete the hub, even if there are servers running on it.
90-
enum:
91-
- "true"
92-
- "false"
80+
parameters: []
81+
requestBody:
82+
description: Parameters for deleting a Server.
83+
content:
84+
application/json:
85+
schema:
86+
type: object
87+
properties:
88+
options:
89+
type: object
90+
properties:
91+
force:
92+
description: If force is set to true, this will force delete the hub, even if there are servers running on it.
93+
type: boolean
9394
summary: Delete Hub
9495
description: Requires the `hubs-delete` capability. This can only be aquired by being the hub owner.
9596
responses:

platform/paths/infrastructure/servers/server.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -143,18 +143,19 @@ delete:
143143
required: true
144144
schema:
145145
type: string
146-
- name: options
147-
in: query
148-
required: false
149-
schema:
150-
type: object
151-
properties:
152-
force:
153-
type: string
154-
description: If force is set to true, this will force delete the server, even if there are environments running on it.
155-
enum:
156-
- "true"
157-
- "false"
146+
requestBody:
147+
description: Parameters for deleting a Server.
148+
content:
149+
application/json:
150+
schema:
151+
type: object
152+
properties:
153+
options:
154+
type: object
155+
properties:
156+
force:
157+
description: If force is set to true, this will force delete the hub, even if there are servers running on it.
158+
type: boolean
158159
responses:
159160
200:
160161
description: Returns a Job Descriptor.

0 commit comments

Comments
 (0)