From 69d81f26ef4a4a370b74fef3138fb91777836707 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 23 Nov 2026 05:38:48 +0000 Subject: [PATCH] Update Machines API OpenAPI spec and models page --- api/machines/models.mdx | 14 +++++----- api/machines/openapi.json | 56 ++++++++++++++++++++++++++++++++++----- 2 files changed, 57 insertions(+), 13 deletions(-) diff --git a/api/machines/models.mdx b/api/machines/models.mdx index b1ed087ded..d02b475ce1 100644 --- a/api/machines/models.mdx +++ b/api/machines/models.mdx @@ -295,11 +295,11 @@ Optional parameters | Property | Type | Required | Description | | --- | --- | --- | --- | -| `disk_size_gb` | `integer` | No | Disk size in gigabytes. | +| `disk_size_gb` | `integer` | No | Disk size in gigabytes. Defaults to the plan's starting size: 1 for dev-256 and 10 for the other plans. | | `name` | `string` | No | Name for the cluster. A name is generated when omitted. | | `org_slug` | `string` | Yes | Slug of the organization that will own the cluster, or "personal" for the caller's personal organization. | | `pg_major_version` | `string` | No | Postgres major version. Enum: 16, 17 | -| `plan` | `string` | Yes | Plan slug selecting CPU, memory, and disk sizing. Matched case-insensitively. Enum: basic, starter, launch, scale, Performance | +| `plan` | `string` | Yes | Plan slug selecting CPU, memory, and disk sizing. Matched case-insensitively. Enum: dev-256, basic, starter, launch, scale, Performance | | `pool_mode` | `string` | No | Connection pooler mode. Enum: session, transaction | | `postgis_enabled` | `boolean` | No | Enable PostGIS support, required to later enable PostGIS extensions. | | `region` | `string` | Yes | Fly region code where the cluster's primary runs. | @@ -891,7 +891,7 @@ Enum: stop | Property | Type | Required | Description | | --- | --- | --- | --- | | `name` | `string` | No | Name for the forked cluster. Defaults to the source name with a -fork suffix. | -| `plan` | `string` | No | Plan slug selecting CPU and memory sizing for the fork. Defaults to the source cluster's plan. Matched case-insensitively. Enum: basic, starter, launch, scale, Performance | +| `plan` | `string` | No | Plan slug selecting CPU and memory sizing for the fork. Defaults to the source cluster's plan. Matched case-insensitively. Enum: dev-256, basic, starter, launch, scale, Performance | ## getPostgresUserCredentialsResponse @@ -1394,7 +1394,7 @@ Type: `map` | `name` | `string` | No | Cluster name. | | `organization` | `OrganizationRef` | No | | | `pg_major_version` | `string` | No | Postgres major version. Enum: 16, 17 | -| `plan` | `string` | No | Plan slug. Enum: basic, starter, launch, scale, Performance | +| `plan` | `string` | No | Plan slug. Enum: dev-256, basic, starter, launch, scale, Performance | | `postgis_enabled` | `boolean` | No | Whether PostGIS support is enabled. | | `region` | `string` | No | Fly region code. | | `replicas` | `integer` | No | Number of replicas. | @@ -1417,7 +1417,7 @@ Type: `map` | `deleted_at` | `string` | No | RFC 3339 deletion timestamp; present for deleted clusters. | | `id` | `string` | No | Cluster ID. | | `name` | `string` | No | Cluster name. | -| `plan` | `string` | No | Plan slug. Enum: basic, starter, launch, scale, Performance | +| `plan` | `string` | No | Plan slug. Enum: dev-256, basic, starter, launch, scale, Performance | | `region` | `string` | No | Fly region code. | | `status` | `string` | No | Current lifecycle status. Enum: creating, initializing, ready, deleting, deleted, failed | @@ -1488,7 +1488,7 @@ Type: `map` | `cpus` | `integer` | No | vCPUs per node. | | `memory_mb` | `integer` | No | Memory per node in megabytes. | | `monthly_price_usd` | `integer` | No | Base monthly price in US dollars. | -| `plan` | `string` | No | Plan slug. Pass it as `plan` when creating or forking a cluster. Enum: basic, starter, launch, scale, Performance | +| `plan` | `string` | No | Plan slug. Pass it as `plan` when creating or forking a cluster. Enum: dev-256, basic, starter, launch, scale, Performance | ## PostgresQueryColumn @@ -1649,7 +1649,7 @@ Enum: 1, 2, 4, 8, 16, 31, 0 | Property | Type | Required | Description | | --- | --- | --- | --- | -| `data` | `PostgresMaintenanceWindow` | No | | +| `data` | `PostgresMaintenanceWindow` | No | The cluster's maintenance window, or null when it has none and its maintenance can run at any time. | ## SignalRequest diff --git a/api/machines/openapi.json b/api/machines/openapi.json index a4b8326223..195e59adba 100644 --- a/api/machines/openapi.json +++ b/api/machines/openapi.json @@ -5551,7 +5551,7 @@ "Postgres Clusters" ], "summary": "Get Maintenance Window", - "description": "Get the weekly window in which a cluster may undergo maintenance. A cluster that never set one returns its region's default. Requires only read access to the organization.", + "description": "Get the weekly window in which a cluster may undergo maintenance. A cluster that never set one returns its region's default. Some clusters have no window: their maintenance can run at any time, and `data` is null. Requires only read access to the organization.", "operationId": "Postgres_maintenance_window_show", "parameters": [ { @@ -5602,7 +5602,7 @@ "Postgres Clusters" ], "summary": "Update Maintenance Window", - "description": "Update a cluster's weekly maintenance window. Give at least one of `day`, `start_hour` and `duration_hours`; omitted fields keep their current value. `start_hour` is in the cluster's timezone, which is derived from its region and cannot be changed. Changes are accepted only while the cluster is ready and no maintenance is running.", + "description": "Update a cluster's weekly maintenance window. Give at least one of `day`, `start_hour` and `duration_hours`; omitted fields keep their current value. `start_hour` is in the cluster's timezone, which is derived from its region and cannot be changed. Changes are accepted only while the cluster is ready and no maintenance is running. A cluster with no window, whose maintenance can run at any time, can't be given one: the request fails with 422. A successful update always returns a window in `data`.", "operationId": "Postgres_maintenance_window_update", "parameters": [ { @@ -5678,7 +5678,7 @@ } }, "422": { - "description": "No fields given, or a value is invalid", + "description": "No fields given, or a value is invalid; 'Maintenance can run at any time' for a cluster with no window", "content": { "application/json": { "schema": { @@ -8540,6 +8540,7 @@ "description": "Plan slug.", "example": "basic", "enum": [ + "dev-256", "basic", "starter", "launch", @@ -8638,6 +8639,7 @@ "description": "Plan slug.", "example": "basic", "enum": [ + "dev-256", "basic", "starter", "launch", @@ -8850,6 +8852,7 @@ "description": "Plan slug. Pass it as `plan` when creating or forking a cluster.", "example": "basic", "enum": [ + "dev-256", "basic", "starter", "launch", @@ -9613,9 +9616,9 @@ "properties": { "disk_size_gb": { "maximum": 1000, - "minimum": 10, + "minimum": 1, "type": "integer", - "description": "Disk size in gigabytes.", + "description": "Disk size in gigabytes. Defaults to the plan's starting size: 1 for dev-256 and 10 for the other plans.", "example": 10 }, "name": { @@ -9641,6 +9644,7 @@ "description": "Plan slug selecting CPU, memory, and disk sizing. Matched case-insensitively.", "example": "basic", "enum": [ + "dev-256", "basic", "starter", "launch", @@ -11176,6 +11180,7 @@ "description": "Plan slug selecting CPU and memory sizing for the fork. Defaults to the source cluster's plan. Matched case-insensitively.", "example": "launch", "enum": [ + "dev-256", "basic", "starter", "launch", @@ -11797,7 +11802,46 @@ "type": "object", "properties": { "data": { - "$ref": "#/components/schemas/PostgresMaintenanceWindow" + "type": [ + "object", + "null" + ], + "properties": { + "day": { + "type": "string", + "description": "Day of the week the window starts on.", + "example": "sunday", + "enum": [ + "sunday", + "monday", + "tuesday", + "wednesday", + "thursday", + "friday", + "saturday" + ] + }, + "duration_hours": { + "maximum": 8, + "minimum": 3, + "type": "integer", + "description": "Length of the window in hours.", + "example": 3 + }, + "start_hour": { + "maximum": 23, + "minimum": 0, + "type": "integer", + "description": "Hour of the day the window starts, in the cluster's timezone.", + "example": 1 + }, + "timezone": { + "type": "string", + "description": "IANA timezone the window is expressed in, derived from the cluster's region.", + "example": "America/New_York" + } + }, + "description": "The cluster's maintenance window, or null when it has none and its maintenance can run at any time." } } },