From 3bfcdb6ef3ad9cd95dd2c866dc4e47e8e607f2d6 Mon Sep 17 00:00:00 2001 From: blewisCycle Date: Tue, 14 Jan 2025 16:09:51 -0800 Subject: [PATCH] update force delete body --- platform/paths/hubs/hub.yml | 27 ++++++++++--------- .../paths/infrastructure/servers/server.yml | 25 ++++++++--------- 2 files changed, 27 insertions(+), 25 deletions(-) diff --git a/platform/paths/hubs/hub.yml b/platform/paths/hubs/hub.yml index 41f8e729..0c977722 100644 --- a/platform/paths/hubs/hub.yml +++ b/platform/paths/hubs/hub.yml @@ -77,19 +77,20 @@ delete: - Hubs security: - bearerAuth: [] - parameters: - - name: options - in: query - required: false - schema: - type: object - properties: - force: - type: string - description: If force is set to true, this will force delete the hub, even if there are servers running on it. - enum: - - "true" - - "false" + parameters: [] + requestBody: + description: Parameters for deleting a Server. + content: + application/json: + schema: + type: object + properties: + options: + type: object + properties: + force: + description: If force is set to true, this will force delete the hub, even if there are servers running on it. + type: boolean summary: Delete Hub description: Requires the `hubs-delete` capability. This can only be aquired by being the hub owner. responses: diff --git a/platform/paths/infrastructure/servers/server.yml b/platform/paths/infrastructure/servers/server.yml index c695ce00..b0d16490 100644 --- a/platform/paths/infrastructure/servers/server.yml +++ b/platform/paths/infrastructure/servers/server.yml @@ -143,18 +143,19 @@ delete: required: true schema: type: string - - name: options - in: query - required: false - schema: - type: object - properties: - force: - type: string - description: If force is set to true, this will force delete the server, even if there are environments running on it. - enum: - - "true" - - "false" + requestBody: + description: Parameters for deleting a Server. + content: + application/json: + schema: + type: object + properties: + options: + type: object + properties: + force: + description: If force is set to true, this will force delete the hub, even if there are servers running on it. + type: boolean responses: 200: description: Returns a Job Descriptor.