From 7685727af7dc3d9c107a861a0407ea04d7c9d1ab Mon Sep 17 00:00:00 2001 From: SpaceAdmiral Date: Sat, 17 Jun 2023 08:27:48 -0700 Subject: [PATCH] add optional units to refuel request --- reference/SpaceTraders.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/reference/SpaceTraders.json b/reference/SpaceTraders.json index 5b28c2a..7ce3e30 100644 --- a/reference/SpaceTraders.json +++ b/reference/SpaceTraders.json @@ -2624,6 +2624,23 @@ "post": { "description": "Refuel your ship by buying fuel from the local market.\n\nRequires the ship to be docked in a waypoint that has the `Marketplace` trait, and the market must be selling fuel in order to refuel.\n\nEach fuel bought from the market replenishes 100 units in your ship's fuel.\n\nShips will always be refuel to their frame's maximum fuel capacity when using this action.", "operationId": "refuel-ship", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "units": { + "type": "integer", + "description": "The amount of fuel to fill in the ship's tanks. When not specified, the ship will be refueled to its maximum fuel capacity. If the amount specified is greater than the ship's remaining capacity, the ship will only be refueled to its maximum fuel capacity. The amount specified is not in market units but in ship fuel units.", + "example": "100", + "minimum": 1 + } + } + } + } + } + }, "responses": { "200": { "content": {