From 2f0741b279ac6201ef9ceaa42df178494c06050f Mon Sep 17 00:00:00 2001 From: robert dennis <31261583+robertdrakedennis@users.noreply.github.com> Date: Sun, 11 Oct 2026 17:48:40 -0400 Subject: [PATCH] openapi baseline --- composer.json | 1 + tests/Architecture/OpenApiBaselineTest.php | 86 + tests/Fixtures/openapi/baseline.yaml | 19572 +++++++++++++++++++ 3 files changed, 19659 insertions(+) create mode 100644 tests/Architecture/OpenApiBaselineTest.php create mode 100644 tests/Fixtures/openapi/baseline.yaml diff --git a/composer.json b/composer.json index 1f7dc1af7..91632ddb8 100644 --- a/composer.json +++ b/composer.json @@ -129,6 +129,7 @@ ], "docs:openapi": "@php artisan scribe:generate --force --no-upgrade-check", "docs:openapi:test": "@php vendor/bin/pest --bootstrap vendor/autoload.php tests/Architecture/OpenApiContractTest.php", + "docs:openapi:baseline": "@php vendor/bin/pest --bootstrap vendor/autoload.php tests/Architecture/OpenApiBaselineTest.php", "docs:openapi:responses": [ "@putenv OPENAPI_VALIDATE=1", "@php -d memory_limit=2G vendor/bin/pest --testsuite Integration" diff --git a/tests/Architecture/OpenApiBaselineTest.php b/tests/Architecture/OpenApiBaselineTest.php new file mode 100644 index 000000000..61d32a5ee --- /dev/null +++ b/tests/Architecture/OpenApiBaselineTest.php @@ -0,0 +1,86 @@ + withoutExamples($value), $node); + } + + if (! $node instanceof stdClass) { + return $node; + } + + $result = new stdClass; + foreach (get_object_vars($node) as $key => $value) { + if (! $inProperties && in_array($key, ['example', 'examples'], true)) { + continue; + } + + $result->{$key} = withoutExamples($value, ! $inProperties && $key === 'properties'); + } + + return $result; +} + +function normalizedSpecification(string $path): string +{ + $specification = Yaml::parseFile($path, Yaml::PARSE_OBJECT_FOR_MAP); + expect($specification)->toBeInstanceOf(stdClass::class); + unset($specification->servers); + + return Yaml::dump(withoutExamples($specification), 64, 2, Yaml::DUMP_OBJECT_AS_MAP | Yaml::DUMP_EMPTY_ARRAY_AS_SEQUENCE); +} + +test('the generated OpenAPI specification matches the committed baseline', function (): void { + $generated = OpenApiSpecValidator::specPath(); + $baseline = base_path('tests/Fixtures/openapi/baseline.yaml'); + + expect($generated)->toBeFile('Generate the specification with npm run api:refresh first.'); + + if (env('OPENAPI_BASELINE_UPDATE')) { + file_put_contents($baseline, normalizedSpecification($generated)); + } + + expect($baseline)->toBeFile() + ->and(normalizedSpecification($generated))->toBe(file_get_contents($baseline), 'The generated OpenAPI specification differs from tests/Fixtures/openapi/baseline.yaml.'); +}); diff --git a/tests/Fixtures/openapi/baseline.yaml b/tests/Fixtures/openapi/baseline.yaml new file mode 100644 index 000000000..63966474d --- /dev/null +++ b/tests/Fixtures/openapi/baseline.yaml @@ -0,0 +1,19572 @@ +openapi: 3.0.3 +info: + title: 'Pterodactyl API Reference' + description: 'OpenAPI reference for the Application, Client, and Admin APIs.' + version: 1.0.0 +tags: + - + name: 'Admin API' + description: 'Root administrator endpoints for managing panel configuration and resources.' + - + name: 'Application API' + description: 'Root administrator endpoints for managing panel resources using application API tokens.' + - + name: Authentication + description: 'Browser session authentication endpoints used by the panel frontend.' + - + name: 'Client API' + description: 'Endpoints authenticated as a panel user using a client API token.' + - + name: Endpoints + description: '' +components: + securitySchemes: + default: + type: http + scheme: bearer + description: 'Application API requests require an application API token, or a client API token, that belongs to a root administrator. Admin API requests require a client API token that belongs to a root administrator, and reject application API tokens. Client API requests require a client API token.' + panelSession: + type: apiKey + in: cookie + name: pterodactyl_session + description: 'Browser session cookie used by the panel frontend.' + schemas: + AdminActivityLogAttributes: + type: object + required: + - id + - batch + - event + - is_api + - ip + - description + - properties + - has_additional_metadata + - timestamp + properties: + id: + type: string + batch: + type: string + nullable: true + event: + type: string + is_api: + type: boolean + ip: + type: string + nullable: true + description: + type: string + nullable: true + properties: + type: object + additionalProperties: + oneOf: + - + type: string + - + type: integer + - + type: number + - + type: boolean + - + type: array + items: + type: string + - + type: object + additionalProperties: + type: string + has_additional_metadata: + type: boolean + timestamp: + type: string + relationships: + type: object + properties: + actor: + oneOf: + - + $ref: '#/components/schemas/AdminUserResource' + - + $ref: '#/components/schemas/NullResource' + AdminActivityLogPaginatedResponse: + type: object + required: + - object + - data + - meta + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/AdminActivityLogResource' + meta: + type: object + required: + - pagination + properties: + pagination: + $ref: '#/components/schemas/PaginationMeta' + AdminActivityLogResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/AdminActivityLogAttributes' + AdminAllocationAttributes: + type: object + required: + - id + - ip + - alias + - port + - notes + - server_id + - server_name + - assigned + properties: + id: + type: integer + ip: + type: string + alias: + type: string + nullable: true + port: + type: integer + notes: + type: string + nullable: true + server_id: + type: integer + nullable: true + server_name: + type: string + nullable: true + assigned: + type: boolean + AdminAllocationListResponse: + type: object + required: + - object + - data + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/AdminAllocationResource' + AdminAllocationPaginatedResponse: + type: object + required: + - object + - data + - meta + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/AdminAllocationResource' + meta: + type: object + required: + - pagination + properties: + pagination: + $ref: '#/components/schemas/PaginationMeta' + AdminAllocationResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/AdminAllocationAttributes' + AdminApiKeyAttributes: + type: object + required: + - identifier + - memo + - created_by + - last_used_at + - created_at + - r_servers + - r_nodes + - r_allocations + - r_users + - r_locations + - r_eggs + - r_database_hosts + - r_server_databases + properties: + identifier: + type: string + memo: + type: string + created_by: + type: object + required: + - id + - username + - email + properties: + id: + type: integer + username: + type: string + email: + type: string + last_used_at: + type: string + nullable: true + created_at: + type: string + r_servers: + type: integer + r_nodes: + type: integer + r_allocations: + type: integer + r_users: + type: integer + r_locations: + type: integer + r_eggs: + type: integer + r_database_hosts: + type: integer + r_server_databases: + type: integer + AdminApiKeyPaginatedResponse: + type: object + required: + - object + - data + - meta + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/AdminApiKeyResource' + meta: + type: object + required: + - pagination + properties: + pagination: + $ref: '#/components/schemas/PaginationMeta' + AdminApiKeyResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/AdminApiKeyAttributes' + meta: + type: object + required: + - secret_token + properties: + secret_token: + type: string + AdminBackupAttributes: + type: object + required: + - uuid + - name + - ignored_files + - checksum + - bytes + - is_successful + - is_locked + - created_at + - completed_at + properties: + uuid: + type: string + name: + type: string + ignored_files: + type: array + items: + type: string + checksum: + type: string + nullable: true + bytes: + type: integer + is_successful: + type: boolean + is_locked: + type: boolean + created_at: + type: string + completed_at: + type: string + nullable: true + AdminBackupPaginatedResponse: + type: object + required: + - object + - data + - meta + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/AdminBackupResource' + meta: + type: object + required: + - pagination + properties: + pagination: + $ref: '#/components/schemas/PaginationMeta' + AdminBackupResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/AdminBackupAttributes' + AdminDatabaseAttributes: + type: object + required: + - server + - name + - username + - connections_from + - max_connections + properties: + server: + type: object + required: + - id + - name + properties: + id: + type: integer + name: + type: string + name: + type: string + username: + type: string + connections_from: + type: string + max_connections: + type: integer + nullable: true + AdminDatabaseHostAttributes: + type: object + required: + - id + - name + - host + - port + - username + - max_databases + - databases_count + - node_id + - created_at + - updated_at + properties: + id: + type: integer + name: + type: string + host: + type: string + port: + type: integer + username: + type: string + max_databases: + type: integer + nullable: true + databases_count: + type: integer + node_id: + type: integer + nullable: true + created_at: + type: string + updated_at: + type: string + extensions: + $ref: '#/components/schemas/ExtensionFields' + relationships: + type: object + properties: + node: + oneOf: + - + $ref: '#/components/schemas/AdminNodeResource' + - + $ref: '#/components/schemas/NullResource' + databases: + oneOf: + - + $ref: '#/components/schemas/AdminDatabaseListResponse' + - + $ref: '#/components/schemas/NullResource' + AdminDatabaseHostPaginatedResponse: + type: object + required: + - object + - data + - meta + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/AdminDatabaseHostResource' + meta: + type: object + required: + - pagination + properties: + pagination: + $ref: '#/components/schemas/PaginationMeta' + AdminDatabaseHostResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/AdminDatabaseHostAttributes' + meta: + type: object + required: + - resource + properties: + resource: + type: string + AdminDatabaseListResponse: + type: object + required: + - object + - data + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/AdminDatabaseResource' + AdminDatabasePaginatedResponse: + type: object + required: + - object + - data + - meta + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/AdminDatabaseResource' + meta: + type: object + required: + - pagination + properties: + pagination: + $ref: '#/components/schemas/PaginationMeta' + AdminDatabaseResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/AdminDatabaseAttributes' + AdminEggAttributes: + type: object + required: + - id + - uuid + - author + - name + - description + - features + - docker_image + - docker_images + - force_outgoing_ip + - config + - startup + - script + - created_at + - updated_at + properties: + id: + type: integer + uuid: + type: string + author: + type: string + name: + type: string + description: + type: string + nullable: true + features: + type: array + items: + type: string + nullable: true + docker_image: + type: string + docker_images: + type: object + additionalProperties: + type: string + force_outgoing_ip: + type: boolean + nullable: true + config: + type: object + required: + - files + - startup + - stop + - logs + - file_denylist + - extends + properties: + files: + allOf: + - + $ref: '#/components/schemas/AdminEggConfigurationFiles' + nullable: true + startup: + type: object + additionalProperties: + oneOf: + - + type: string + - + type: array + items: + type: string + nullable: true + stop: + type: string + logs: + type: object + additionalProperties: + oneOf: + - + type: string + - + type: number + - + type: boolean + nullable: true + file_denylist: + type: array + nullable: true + items: + type: string + extends: + type: integer + nullable: true + startup: + type: string + script: + type: object + required: + - privileged + - install + - entry + - container + - extends + properties: + privileged: + type: boolean + nullable: true + install: + type: string + nullable: true + entry: + type: string + container: + type: string + extends: + type: integer + nullable: true + created_at: + type: string + updated_at: + type: string + extensions: + $ref: '#/components/schemas/ExtensionFields' + relationships: + type: object + properties: + variables: + oneOf: + - + $ref: '#/components/schemas/AdminEggVariableListResponse' + - + $ref: '#/components/schemas/NullResource' + tags: + oneOf: + - + $ref: '#/components/schemas/AdminTagListResponse' + - + $ref: '#/components/schemas/NullResource' + servers: + oneOf: + - + $ref: '#/components/schemas/AdminServerListResponse' + - + $ref: '#/components/schemas/NullResource' + AdminEggConfigurationFile: + type: object + properties: + parser: + type: string + find: + $ref: '#/components/schemas/AdminEggConfigurationFind' + AdminEggConfigurationFiles: + type: object + additionalProperties: + $ref: '#/components/schemas/AdminEggConfigurationFile' + AdminEggConfigurationFind: + type: object + additionalProperties: + oneOf: + - + type: string + - + type: number + - + type: boolean + - + type: object + additionalProperties: + type: string + AdminEggListResponse: + type: object + required: + - object + - data + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/AdminEggResource' + AdminEggPaginatedResponse: + type: object + required: + - object + - data + - meta + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/AdminEggResource' + meta: + type: object + required: + - pagination + properties: + pagination: + $ref: '#/components/schemas/PaginationMeta' + AdminEggResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/AdminEggAttributes' + meta: + type: object + required: + - resource + properties: + resource: + type: string + AdminEggVariableAttributes: + type: object + required: + - id + - egg_id + - name + - description + - env_variable + - default_value + - user_viewable + - user_editable + - rules + - sort_order + - created_at + - updated_at + properties: + id: + type: integer + egg_id: + type: integer + name: + type: string + description: + type: string + env_variable: + type: string + default_value: + type: string + user_viewable: + type: boolean + user_editable: + type: boolean + rules: + type: string + sort_order: + type: integer + nullable: true + created_at: + type: string + updated_at: + type: string + AdminEggVariableListResponse: + type: object + required: + - object + - data + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/AdminEggVariableResource' + AdminEggVariableResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/AdminEggVariableAttributes' + AdminExtensionFormsResponse: + type: object + required: + - data + properties: + data: + type: object + description: 'The extensions whose fields each admin form shows, keyed by form (admin.user, admin.server, admin.node, admin.egg, admin.location, admin.mount, admin.database_host). Forms without any are left out.' + additionalProperties: + type: array + items: + type: object + required: + - id + - name + properties: + id: + type: string + name: + type: string + AdminExtensionSettingField: + type: object + required: + - input + - label + - help + - tab + - field + - options + - value + - constraints + - visibility + properties: + input: + type: string + label: + type: string + help: + type: string + nullable: true + tab: + type: string + nullable: true + field: + type: string + enum: + - text + - password + - number + - toggle + - select + - color + - textarea + - multiselect + - list + - file + options: + type: array + items: + $ref: '#/components/schemas/AdminExtensionSettingOption' + value: + oneOf: + - + type: string + - + type: number + - + type: boolean + - + type: array + items: + oneOf: + - + type: string + - + type: number + nullable: true + constraints: + type: object + required: + - max_length + - max_items + - max_kilobytes + - accept + properties: + max_length: + type: integer + nullable: true + max_items: + type: integer + nullable: true + max_kilobytes: + type: integer + nullable: true + accept: + type: array + items: + type: string + visibility: + type: string + enum: + - admin + - frontend + - public + AdminExtensionSettingOption: + type: object + required: + - value + - label + properties: + value: + oneOf: + - + type: string + - + type: number + - + type: boolean + label: + type: string + AdminLanguagesResponse: + type: object + description: 'Available panel locales keyed by locale code.' + additionalProperties: + type: string + AdminLocationAttributes: + type: object + required: + - id + - short + - long + - nodes_count + - servers_count + - created_at + - updated_at + properties: + id: + type: integer + short: + type: string + long: + type: string + nodes_count: + type: integer + servers_count: + type: integer + created_at: + type: string + updated_at: + type: string + extensions: + $ref: '#/components/schemas/ExtensionFields' + relationships: + type: object + properties: + nodes: + oneOf: + - + $ref: '#/components/schemas/AdminNodeListResponse' + - + $ref: '#/components/schemas/NullResource' + AdminLocationPaginatedResponse: + type: object + required: + - object + - data + - meta + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/AdminLocationResource' + meta: + type: object + required: + - pagination + properties: + pagination: + $ref: '#/components/schemas/PaginationMeta' + AdminLocationResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/AdminLocationAttributes' + meta: + type: object + required: + - resource + properties: + resource: + type: string + AdminMountAttributes: + type: object + required: + - id + - uuid + - name + - description + - source + - target + - read_only + - user_mountable + - eggs_count + - nodes_count + - servers_count + properties: + id: + type: integer + uuid: + type: string + name: + type: string + description: + type: string + nullable: true + source: + type: string + target: + type: string + read_only: + type: boolean + user_mountable: + type: boolean + eggs_count: + type: integer + nodes_count: + type: integer + servers_count: + type: integer + mounted: + type: boolean + description: 'Present only when listed in the context of a server.' + nullable: true + extensions: + $ref: '#/components/schemas/ExtensionFields' + relationships: + type: object + properties: + eggs: + oneOf: + - + $ref: '#/components/schemas/AdminEggListResponse' + - + $ref: '#/components/schemas/NullResource' + nodes: + oneOf: + - + $ref: '#/components/schemas/AdminNodeListResponse' + - + $ref: '#/components/schemas/NullResource' + servers: + oneOf: + - + $ref: '#/components/schemas/AdminServerListResponse' + - + $ref: '#/components/schemas/NullResource' + AdminMountListResponse: + type: object + required: + - object + - data + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/AdminMountResource' + AdminMountPaginatedResponse: + type: object + required: + - object + - data + - meta + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/AdminMountResource' + meta: + type: object + required: + - pagination + properties: + pagination: + $ref: '#/components/schemas/PaginationMeta' + AdminMountResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/AdminMountAttributes' + meta: + type: object + required: + - resource + properties: + resource: + type: string + AdminNodeAttributes: + type: object + required: + - id + - uuid + - public + - name + - description + - location_id + - fqdn + - scheme + - behind_proxy + - maintenance_mode + - memory + - memory_overallocate + - disk + - disk_overallocate + - upload_size + - daemon_listen + - daemon_sftp + - daemon_base + - created_at + - updated_at + - allocated_resources + properties: + id: + type: integer + uuid: + type: string + public: + type: boolean + name: + type: string + description: + type: string + nullable: true + location_id: + type: integer + fqdn: + type: string + scheme: + type: string + behind_proxy: + type: boolean + maintenance_mode: + type: boolean + memory: + type: integer + memory_overallocate: + type: integer + disk: + type: integer + disk_overallocate: + type: integer + upload_size: + type: integer + daemon_listen: + type: integer + daemon_sftp: + type: integer + daemon_base: + type: string + created_at: + type: string + updated_at: + type: string + servers_count: + type: integer + description: 'Present when the endpoint loads server counts.' + allocated_resources: + type: object + required: + - memory + - disk + properties: + memory: + type: integer + disk: + type: integer + extensions: + $ref: '#/components/schemas/ExtensionFields' + relationships: + type: object + properties: + location: + oneOf: + - + $ref: '#/components/schemas/AdminLocationResource' + - + $ref: '#/components/schemas/NullResource' + AdminNodeConfigurationResponse: + type: object + required: + - debug + - uuid + - token_id + - token + - api + - system + - allowed_mounts + - remote + properties: + debug: + type: boolean + uuid: + type: string + token_id: + type: string + token: + type: string + api: + type: object + required: + - host + - port + - ssl + - upload_limit + properties: + host: + type: string + port: + type: integer + ssl: + type: object + required: + - enabled + - cert + - key + properties: + enabled: + type: boolean + cert: + type: string + key: + type: string + upload_limit: + type: integer + system: + type: object + required: + - data + - sftp + properties: + data: + type: string + sftp: + type: object + required: + - bind_port + properties: + bind_port: + type: integer + allowed_mounts: + type: array + items: + type: string + remote: + type: string + AdminNodeDeployTokenResponse: + type: object + required: + - node + - token + - panel_url + - allow_insecure + properties: + node: + type: integer + token: + type: string + panel_url: + type: string + allow_insecure: + type: boolean + AdminNodeListResponse: + type: object + required: + - object + - data + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/AdminNodeResource' + AdminNodePaginatedResponse: + type: object + required: + - object + - data + - meta + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/AdminNodeResource' + meta: + type: object + required: + - pagination + properties: + pagination: + $ref: '#/components/schemas/PaginationMeta' + AdminNodeResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/AdminNodeAttributes' + meta: + type: object + required: + - resource + properties: + resource: + type: string + AdminNodeSystemInformationResponse: + type: object + required: + - architecture + - cpu_count + - kernel_version + - os + - version + properties: + architecture: + type: string + cpu_count: + type: integer + kernel_version: + type: string + os: + type: string + version: + type: string + AdminNodeUtilizationResponse: + type: object + required: + - disk + - memory + properties: + disk: + type: object + required: + - value + - max + - percent + - css + properties: + value: + type: string + max: + type: string + percent: + type: number + css: + type: string + memory: + type: object + required: + - value + - max + - percent + - css + properties: + value: + type: string + max: + type: string + percent: + type: number + css: + type: string + AdminServerAttributes: + type: object + required: + - id + - external_id + - uuid + - identifier + - name + - description + - status + - suspended + - limits + - feature_limits + - user + - node + - allocation + - egg + - container + - updated_at + - created_at + properties: + id: + type: integer + external_id: + type: string + nullable: true + uuid: + type: string + identifier: + type: string + name: + type: string + description: + type: string + nullable: true + status: + type: string + nullable: true + suspended: + type: boolean + limits: + type: object + required: + - memory + - swap + - disk + - io + - cpu + - threads + - oom_disabled + properties: + memory: + type: integer + swap: + type: integer + disk: + type: integer + io: + type: integer + cpu: + type: integer + threads: + type: string + nullable: true + oom_disabled: + type: boolean + feature_limits: + type: object + required: + - databases + - allocations + - backups + properties: + databases: + type: integer + nullable: true + allocations: + type: integer + nullable: true + backups: + type: integer + user: + type: integer + node: + type: integer + allocation: + type: integer + egg: + type: integer + container: + type: object + required: + - startup_command + - image + - skip_scripts + - installed + - environment + properties: + startup_command: + type: string + image: + type: string + skip_scripts: + type: boolean + installed: + type: integer + environment: + type: object + additionalProperties: + nullable: true + oneOf: + - + type: string + - + type: number + updated_at: + type: string + created_at: + type: string + extensions: + $ref: '#/components/schemas/ExtensionFields' + relationships: + type: object + properties: + allocation: + oneOf: + - + $ref: '#/components/schemas/AdminAllocationResource' + - + $ref: '#/components/schemas/NullResource' + allocations: + oneOf: + - + $ref: '#/components/schemas/AdminAllocationListResponse' + - + $ref: '#/components/schemas/NullResource' + user: + oneOf: + - + $ref: '#/components/schemas/AdminUserResource' + - + $ref: '#/components/schemas/NullResource' + egg: + oneOf: + - + $ref: '#/components/schemas/AdminEggResource' + - + $ref: '#/components/schemas/NullResource' + variables: + oneOf: + - + $ref: '#/components/schemas/AdminServerVariableListResponse' + - + $ref: '#/components/schemas/NullResource' + node: + oneOf: + - + $ref: '#/components/schemas/AdminNodeResource' + - + $ref: '#/components/schemas/NullResource' + AdminServerDatabaseAttributes: + type: object + required: + - id + - host + - name + - username + - connections_from + - max_connections + properties: + id: + type: string + host: + type: object + required: + - address + - port + properties: + address: + type: string + port: + type: integer + name: + type: string + username: + type: string + connections_from: + type: string + max_connections: + type: integer + nullable: true + relationships: + type: object + properties: + password: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + type: object + required: + - password + properties: + password: + type: string + AdminServerDatabaseListResponse: + type: object + required: + - object + - data + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/AdminServerDatabaseResource' + AdminServerDatabaseResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/AdminServerDatabaseAttributes' + meta: + type: object + required: + - resource + properties: + resource: + type: string + AdminServerListResponse: + type: object + required: + - object + - data + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/AdminServerResource' + AdminServerPaginatedResponse: + type: object + required: + - object + - data + - meta + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/AdminServerResource' + meta: + type: object + required: + - pagination + properties: + pagination: + $ref: '#/components/schemas/PaginationMeta' + AdminServerResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/AdminServerAttributes' + meta: + type: object + required: + - resource + properties: + resource: + type: string + AdminServerTransferAttributes: + type: object + required: + - id + - server_id + - old_node + - new_node + - old_allocation + - new_allocation + - successful + - archived + - created_at + - updated_at + properties: + id: + type: integer + server_id: + type: integer + old_node: + type: integer + new_node: + type: integer + old_allocation: + type: integer + new_allocation: + type: integer + successful: + type: boolean + nullable: true + archived: + type: boolean + created_at: + type: string + updated_at: + type: string + AdminServerTransferResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/AdminServerTransferAttributes' + AdminServerVariableAttributes: + type: object + required: + - id + - egg_id + - name + - description + - env_variable + - default_value + - server_value + - user_viewable + - user_editable + - rules + - sort_order + - created_at + - updated_at + properties: + id: + type: integer + egg_id: + type: integer + name: + type: string + description: + type: string + env_variable: + type: string + default_value: + type: string + server_value: + type: string + nullable: true + user_viewable: + type: boolean + user_editable: + type: boolean + rules: + type: string + required: + type: boolean + sort_order: + type: integer + nullable: true + created_at: + type: string + updated_at: + type: string + AdminServerVariableListResponse: + type: object + required: + - object + - data + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/AdminServerVariableResource' + AdminServerVariableResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/AdminServerVariableAttributes' + AdminSettingsResponse: + type: object + required: + - general + - mail + - advanced + - meta + properties: + general: + type: object + required: + - 'app:name' + - 'pterodactyl:auth:2fa_required' + - 'app:locale' + properties: + 'app:name': + type: string + 'pterodactyl:auth:2fa_required': + type: integer + enum: + - 0 + - 1 + - 2 + 'app:locale': + type: string + mail: + type: object + required: + - 'mail:default' + - 'mail:mailers:smtp:host' + - 'mail:mailers:smtp:port' + - 'mail:mailers:smtp:encryption' + - 'mail:mailers:smtp:username' + - 'mail:mailers:smtp:password' + - 'mail:from:address' + - 'mail:from:name' + properties: + 'mail:default': + type: string + 'mail:mailers:smtp:host': + type: string + 'mail:mailers:smtp:port': + type: integer + 'mail:mailers:smtp:encryption': + type: string + nullable: true + enum: + - tls + - ssl + - null + 'mail:mailers:smtp:username': + type: string + nullable: true + 'mail:mailers:smtp:password': + type: string + 'mail:from:address': + type: string + 'mail:from:name': + type: string + nullable: true + advanced: + type: object + required: + - 'recaptcha:enabled' + - 'recaptcha:secret_key' + - 'recaptcha:website_key' + - 'pterodactyl:guzzle:timeout' + - 'pterodactyl:guzzle:connect_timeout' + - 'pterodactyl:client_features:allocations:enabled' + - 'pterodactyl:client_features:allocations:range_start' + - 'pterodactyl:client_features:allocations:range_end' + properties: + 'recaptcha:enabled': + type: boolean + 'recaptcha:secret_key': + type: string + 'recaptcha:website_key': + type: string + 'pterodactyl:guzzle:timeout': + type: integer + 'pterodactyl:guzzle:connect_timeout': + type: integer + 'pterodactyl:client_features:allocations:enabled': + type: boolean + 'pterodactyl:client_features:allocations:range_start': + type: integer + nullable: true + 'pterodactyl:client_features:allocations:range_end': + type: integer + nullable: true + meta: + type: object + required: + - load_environment_only + - show_recaptcha_warning + properties: + load_environment_only: + type: boolean + show_recaptcha_warning: + type: boolean + AdminTagAttributes: + type: object + required: + - id + - name + - slug + - color + - is_predefined + - legacy_nest_id + - eggs_count + - nodes_count + - created_at + - updated_at + properties: + id: + type: integer + name: + type: string + slug: + type: string + color: + type: string + nullable: true + is_predefined: + type: boolean + legacy_nest_id: + type: integer + nullable: true + eggs_count: + type: integer + nodes_count: + type: integer + created_at: + type: string + updated_at: + type: string + AdminTagListResponse: + type: object + required: + - object + - data + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/AdminTagResource' + AdminTagPaginatedResponse: + type: object + required: + - object + - data + - meta + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/AdminTagResource' + meta: + type: object + required: + - pagination + properties: + pagination: + $ref: '#/components/schemas/PaginationMeta' + AdminTagResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/AdminTagAttributes' + meta: + type: object + required: + - resource + properties: + resource: + type: string + AdminUserAttributes: + type: object + required: + - id + - external_id + - uuid + - username + - email + - first_name + - last_name + - language + - root_admin + - 2fa + - image + - servers_count + - subuser_of_count + - created_at + - updated_at + properties: + id: + type: integer + external_id: + type: string + nullable: true + uuid: + type: string + username: + type: string + email: + type: string + first_name: + type: string + last_name: + type: string + language: + type: string + root_admin: + type: boolean + 2fa: + type: boolean + image: + type: string + servers_count: + type: integer + subuser_of_count: + type: integer + created_at: + type: string + updated_at: + type: string + extensions: + $ref: '#/components/schemas/ExtensionFields' + relationships: + type: object + properties: + servers: + oneOf: + - + $ref: '#/components/schemas/AdminServerListResponse' + - + $ref: '#/components/schemas/NullResource' + AdminUserPaginatedResponse: + type: object + required: + - object + - data + - meta + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/AdminUserResource' + meta: + type: object + required: + - pagination + properties: + pagination: + $ref: '#/components/schemas/PaginationMeta' + AdminUserResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/AdminUserAttributes' + meta: + type: object + required: + - resource + properties: + resource: + type: string + AdminVersionInformationResponse: + type: object + required: + - current + - latest + - is_latest + - daemon + - discord + - donations + properties: + current: + type: string + latest: + type: string + is_latest: + type: boolean + daemon: + type: string + discord: + type: string + donations: + type: string + ApplicationAllocationAttributes: + type: object + required: + - id + - ip + - alias + - port + - notes + - assigned + properties: + id: + type: integer + ip: + type: string + alias: + type: string + nullable: true + port: + type: integer + notes: + type: string + nullable: true + assigned: + type: boolean + ApplicationAllocationPaginatedResponse: + type: object + required: + - object + - data + - meta + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/ApplicationAllocationResource' + meta: + type: object + required: + - pagination + properties: + pagination: + $ref: '#/components/schemas/PaginationMeta' + ApplicationAllocationResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/ApplicationAllocationAttributes' + ApplicationEggAttributes: + type: object + required: + - id + - uuid + - name + - author + - description + - docker_image + - docker_images + - config + - startup + - script + - created_at + - updated_at + properties: + id: + type: integer + uuid: + type: string + name: + type: string + author: + type: string + description: + type: string + nullable: true + docker_image: + type: string + docker_images: + type: object + additionalProperties: + type: string + config: + type: object + required: + - files + - startup + - stop + - logs + - file_denylist + - extends + properties: + files: + $ref: '#/components/schemas/AdminEggConfigurationFiles' + startup: + type: object + nullable: true + additionalProperties: + oneOf: + - + type: string + - + type: array + items: + type: string + stop: + type: string + nullable: true + logs: + type: object + nullable: true + additionalProperties: + oneOf: + - + type: string + - + type: number + - + type: boolean + file_denylist: + type: array + nullable: true + items: + type: string + extends: + type: integer + nullable: true + startup: + type: string + script: + type: object + required: + - privileged + - install + - entry + - container + - extends + properties: + privileged: + type: boolean + install: + type: string + nullable: true + entry: + type: string + container: + type: string + extends: + type: integer + nullable: true + created_at: + type: string + updated_at: + type: string + ApplicationEggPaginatedResponse: + type: object + required: + - object + - data + - meta + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/ApplicationEggResource' + meta: + type: object + required: + - pagination + properties: + pagination: + $ref: '#/components/schemas/PaginationMeta' + ApplicationEggResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/ApplicationEggAttributes' + ApplicationLocationAttributes: + type: object + required: + - id + - short + - long + - updated_at + - created_at + properties: + id: + type: integer + short: + type: string + long: + type: string + updated_at: + type: string + created_at: + type: string + extensions: + $ref: '#/components/schemas/ExtensionFields' + ApplicationLocationPaginatedResponse: + type: object + required: + - object + - data + - meta + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/ApplicationLocationResource' + meta: + type: object + required: + - pagination + properties: + pagination: + $ref: '#/components/schemas/PaginationMeta' + ApplicationLocationResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/ApplicationLocationAttributes' + meta: + type: object + required: + - resource + properties: + resource: + type: string + ApplicationNodeAttributes: + type: object + required: + - id + - uuid + - public + - name + - description + - location_id + - fqdn + - scheme + - behind_proxy + - maintenance_mode + - memory + - memory_overallocate + - disk + - disk_overallocate + - upload_size + - daemon_listen + - daemon_sftp + - daemon_base + - created_at + - updated_at + - allocated_resources + properties: + id: + type: integer + uuid: + type: string + public: + type: boolean + name: + type: string + description: + type: string + nullable: true + location_id: + type: integer + fqdn: + type: string + scheme: + type: string + behind_proxy: + type: boolean + maintenance_mode: + type: boolean + memory: + type: integer + memory_overallocate: + type: integer + disk: + type: integer + disk_overallocate: + type: integer + upload_size: + type: integer + daemon_listen: + type: integer + daemon_sftp: + type: integer + daemon_base: + type: string + created_at: + type: string + updated_at: + type: string + allocated_resources: + type: object + required: + - memory + - disk + properties: + memory: + type: integer + disk: + type: integer + extensions: + $ref: '#/components/schemas/ExtensionFields' + ApplicationNodeListResponse: + type: object + required: + - object + - data + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/ApplicationNodeResource' + ApplicationNodePaginatedResponse: + type: object + required: + - object + - data + - meta + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/ApplicationNodeResource' + meta: + type: object + required: + - pagination + properties: + pagination: + $ref: '#/components/schemas/PaginationMeta' + ApplicationNodeResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/ApplicationNodeAttributes' + meta: + type: object + required: + - resource + properties: + resource: + type: string + ApplicationServerAttributes: + type: object + required: + - id + - external_id + - uuid + - identifier + - name + - description + - status + - suspended + - limits + - feature_limits + - user + - node + - allocation + - egg + - container + - updated_at + - created_at + properties: + id: + type: integer + external_id: + type: string + nullable: true + uuid: + type: string + identifier: + type: string + name: + type: string + description: + type: string + nullable: true + status: + type: string + nullable: true + suspended: + type: boolean + limits: + type: object + required: + - memory + - swap + - disk + - io + - cpu + - threads + - oom_disabled + properties: + memory: + type: integer + swap: + type: integer + disk: + type: integer + io: + type: integer + cpu: + type: integer + threads: + type: string + nullable: true + oom_disabled: + type: boolean + feature_limits: + type: object + required: + - databases + - allocations + - backups + properties: + databases: + type: integer + nullable: true + allocations: + type: integer + nullable: true + backups: + type: integer + nullable: true + user: + type: integer + node: + type: integer + allocation: + type: integer + egg: + type: integer + container: + type: object + required: + - startup_command + - image + - installed + - environment + - skip_scripts + properties: + startup_command: + type: string + image: + type: string + installed: + type: integer + environment: + type: object + additionalProperties: + nullable: true + oneOf: + - + type: string + - + type: number + - + type: boolean + skip_scripts: + type: boolean + updated_at: + type: string + created_at: + type: string + extensions: + $ref: '#/components/schemas/ExtensionFields' + ApplicationServerDatabaseAttributes: + type: object + required: + - id + - server + - host + - database + - username + - remote + - max_connections + - created_at + - updated_at + properties: + id: + type: integer + server: + type: integer + host: + type: integer + database: + type: string + username: + type: string + remote: + type: string + max_connections: + type: integer + nullable: true + created_at: + type: string + updated_at: + type: string + ApplicationServerDatabaseListResponse: + type: object + required: + - object + - data + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/ApplicationServerDatabaseResource' + ApplicationServerDatabaseResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/ApplicationServerDatabaseAttributes' + meta: + type: object + required: + - resource + properties: + resource: + type: string + ApplicationServerPaginatedResponse: + type: object + required: + - object + - data + - meta + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/ApplicationServerResource' + meta: + type: object + required: + - pagination + properties: + pagination: + $ref: '#/components/schemas/PaginationMeta' + ApplicationServerResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/ApplicationServerAttributes' + ApplicationTagAttributes: + type: object + required: + - id + - name + - slug + - color + - is_predefined + - legacy_nest_id + - created_at + - updated_at + properties: + id: + type: integer + name: + type: string + slug: + type: string + color: + type: string + nullable: true + is_predefined: + type: boolean + legacy_nest_id: + type: integer + nullable: true + created_at: + type: string + updated_at: + type: string + ApplicationTagPaginatedResponse: + type: object + required: + - object + - data + - meta + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/ApplicationTagResource' + meta: + type: object + required: + - pagination + properties: + pagination: + $ref: '#/components/schemas/PaginationMeta' + ApplicationTagResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/ApplicationTagAttributes' + ApplicationUserAttributes: + type: object + required: + - id + - external_id + - uuid + - username + - email + - first_name + - last_name + - language + - root_admin + - 2fa + - created_at + - updated_at + properties: + id: + type: integer + external_id: + type: string + nullable: true + uuid: + type: string + username: + type: string + email: + type: string + first_name: + type: string + last_name: + type: string + language: + type: string + root_admin: + type: boolean + 2fa: + type: boolean + created_at: + type: string + updated_at: + type: string + extensions: + $ref: '#/components/schemas/ExtensionFields' + ApplicationUserPaginatedResponse: + type: object + required: + - object + - data + - meta + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/ApplicationUserResource' + meta: + type: object + required: + - pagination + properties: + pagination: + $ref: '#/components/schemas/PaginationMeta' + ApplicationUserResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/ApplicationUserAttributes' + meta: + type: object + required: + - resource + properties: + resource: + type: string + AuthLoginCheckpointResponse: + type: object + required: + - data + properties: + data: + type: object + required: + - complete + - confirmation_token + properties: + complete: + type: boolean + enum: + - false + confirmation_token: + type: string + AuthLoginCompleteResponse: + type: object + required: + - data + properties: + data: + type: object + required: + - complete + - intended + - user + properties: + complete: + type: boolean + enum: + - true + intended: + type: string + user: + $ref: '#/components/schemas/AuthUser' + AuthLoginResponse: + oneOf: + - + $ref: '#/components/schemas/AuthLoginCompleteResponse' + - + $ref: '#/components/schemas/AuthLoginCheckpointResponse' + AuthPasswordResetEmailResponse: + type: object + required: + - status + properties: + status: + type: string + AuthResetPasswordResponse: + type: object + required: + - success + - redirect_to + - send_to_login + properties: + success: + type: boolean + enum: + - true + redirect_to: + type: string + nullable: true + send_to_login: + type: boolean + AuthUser: + type: object + required: + - uuid + - username + - email + - name_first + - name_last + - language + - root_admin + - use_totp + - gravatar + - created_at + - updated_at + - identifier + properties: + uuid: + type: string + format: uuid + username: + type: string + email: + type: string + format: email + name_first: + type: string + nullable: true + name_last: + type: string + nullable: true + language: + type: string + root_admin: + type: boolean + use_totp: + type: boolean + gravatar: + type: boolean + created_at: + type: string + format: date-time + updated_at: + type: string + format: date-time + identifier: + type: string + pattern: '^user_[a-z2-7]{26}$' + ClientActivityLogAttributes: + type: object + required: + - id + - batch + - event + - is_api + - ip + - description + - properties + - has_additional_metadata + - timestamp + properties: + id: + type: string + batch: + type: string + nullable: true + event: + type: string + is_api: + type: boolean + ip: + type: string + nullable: true + description: + type: string + nullable: true + properties: + type: object + additionalProperties: + oneOf: + - + type: string + - + type: integer + - + type: number + - + type: boolean + - + type: array + items: + type: string + - + type: object + additionalProperties: + type: string + has_additional_metadata: + type: boolean + timestamp: + type: string + relationships: + type: object + properties: + actor: + oneOf: + - + $ref: '#/components/schemas/ClientUserResource' + - + $ref: '#/components/schemas/NullResource' + ClientActivityLogPaginatedResponse: + type: object + required: + - object + - data + - meta + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/ClientActivityLogResource' + meta: + type: object + required: + - pagination + properties: + pagination: + $ref: '#/components/schemas/PaginationMeta' + ClientActivityLogResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/ClientActivityLogAttributes' + ClientAllocationAttributes: + type: object + required: + - id + - ip + - ip_alias + - port + - notes + - is_default + properties: + id: + type: integer + ip: + type: string + ip_alias: + type: string + nullable: true + port: + type: integer + notes: + type: string + nullable: true + is_default: + type: boolean + ClientAllocationListResponse: + type: object + required: + - object + - data + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/ClientAllocationResource' + ClientAllocationResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/ClientAllocationAttributes' + ClientApiKeyAttributes: + type: object + required: + - identifier + - description + - allowed_ips + - last_used_at + - created_at + properties: + identifier: + type: string + description: + type: string + allowed_ips: + type: array + nullable: true + items: + type: string + last_used_at: + type: string + nullable: true + created_at: + type: string + ClientApiKeyListResponse: + type: object + required: + - object + - data + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/ClientApiKeyResource' + ClientApiKeyResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/ClientApiKeyAttributes' + meta: + type: object + required: + - secret_token + properties: + secret_token: + type: string + ClientBackupAttributes: + type: object + required: + - uuid + - is_successful + - is_locked + - name + - ignored_files + - checksum + - bytes + - created_at + - completed_at + properties: + uuid: + type: string + is_successful: + type: boolean + is_locked: + type: boolean + name: + type: string + ignored_files: + type: array + items: + type: string + checksum: + type: string + nullable: true + bytes: + type: integer + created_at: + type: string + completed_at: + type: string + nullable: true + ClientBackupPaginatedResponse: + type: object + required: + - object + - data + - meta + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/ClientBackupResource' + meta: + type: object + required: + - pagination + - backup_count + properties: + pagination: + $ref: '#/components/schemas/PaginationMeta' + backup_count: + type: integer + ClientBackupResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/ClientBackupAttributes' + ClientEggVariableAttributes: + type: object + required: + - name + - description + - env_variable + - default_value + - server_value + - is_editable + - rules + properties: + name: + type: string + description: + type: string + env_variable: + type: string + default_value: + type: string + server_value: + type: string + nullable: true + is_editable: + type: boolean + rules: + type: string + ClientEggVariableListResponse: + type: object + required: + - object + - data + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/ClientEggVariableResource' + meta: + type: object + required: + - startup_command + - docker_images + - raw_startup_command + properties: + startup_command: + type: string + docker_images: + type: object + additionalProperties: + type: string + raw_startup_command: + type: string + ClientEggVariableResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/ClientEggVariableAttributes' + meta: + type: object + required: + - startup_command + - raw_startup_command + properties: + startup_command: + type: string + raw_startup_command: + type: string + ClientFileObjectAttributes: + type: object + required: + - name + - mode + - mode_bits + - size + - is_file + - is_symlink + - mimetype + - created_at + - modified_at + properties: + name: + type: string + mode: + type: string + nullable: true + mode_bits: + type: string + nullable: true + size: + type: integer + nullable: true + is_file: + type: boolean + is_symlink: + type: boolean + mimetype: + type: string + created_at: + type: string + modified_at: + type: string + ClientFileObjectListResponse: + type: object + required: + - object + - data + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/ClientFileObjectResource' + ClientFileObjectResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/ClientFileObjectAttributes' + ClientRecoveryTokensAttributes: + type: object + required: + - tokens + properties: + tokens: + type: array + items: + type: string + ClientRecoveryTokensResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/ClientRecoveryTokensAttributes' + ClientScheduleTaskAttributes: + type: object + required: + - id + - sequence_id + - action + - payload + - time_offset + - is_queued + - continue_on_failure + - created_at + - updated_at + properties: + id: + type: integer + sequence_id: + type: integer + action: + type: string + enum: + - power + - command + - backup + payload: + type: string + time_offset: + type: integer + is_queued: + type: boolean + continue_on_failure: + type: boolean + created_at: + type: string + updated_at: + type: string + ClientScheduleTaskListResponse: + type: object + required: + - object + - data + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/ClientScheduleTaskResource' + ClientScheduleTaskResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/ClientScheduleTaskAttributes' + ClientServerAttributes: + type: object + required: + - server_owner + - identifier + - __deprecated_uuid_short + - server_identifier + - internal_id + - uuid + - name + - node + - is_node_under_maintenance + - sftp_details + - description + - limits + - invocation + - docker_image + - egg_features + - egg_tags + - feature_limits + - status + - is_suspended + - is_installing + - is_transferring + - skip_scripts + properties: + server_owner: + type: boolean + identifier: + type: string + __deprecated_uuid_short: + type: string + server_identifier: + type: string + pattern: '^serv_[a-zA-Z0-9]+$' + internal_id: + type: integer + uuid: + type: string + name: + type: string + node: + type: string + is_node_under_maintenance: + type: boolean + sftp_details: + type: object + required: + - ip + - port + properties: + ip: + type: string + port: + type: integer + description: + type: string + nullable: true + limits: + type: object + required: + - memory + - swap + - disk + - io + - cpu + - threads + - oom_disabled + properties: + memory: + type: integer + swap: + type: integer + disk: + type: integer + io: + type: integer + cpu: + type: integer + threads: + type: string + nullable: true + oom_disabled: + type: boolean + invocation: + type: string + docker_image: + type: string + egg_features: + type: array + nullable: true + items: + type: string + egg_tags: + type: array + items: + type: string + feature_limits: + type: object + required: + - databases + - allocations + - backups + properties: + databases: + type: integer + nullable: true + allocations: + type: integer + nullable: true + backups: + type: integer + nullable: true + status: + type: string + nullable: true + enum: + - installing + - install_failed + - reinstall_failed + - suspended + - restoring_backup + - null + is_suspended: + type: boolean + is_installing: + type: boolean + is_transferring: + type: boolean + skip_scripts: + type: boolean + relationships: + type: object + properties: + allocations: + oneOf: + - + $ref: '#/components/schemas/ClientAllocationListResponse' + - + $ref: '#/components/schemas/NullResource' + variables: + oneOf: + - + $ref: '#/components/schemas/ClientEggVariableListResponse' + - + $ref: '#/components/schemas/NullResource' + ClientServerDatabaseAttributes: + type: object + required: + - id + - host + - name + - username + - connections_from + - max_connections + properties: + id: + type: string + host: + type: object + required: + - address + - port + properties: + address: + type: string + port: + type: integer + name: + type: string + username: + type: string + connections_from: + type: string + max_connections: + type: integer + nullable: true + relationships: + type: object + properties: + password: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + type: object + required: + - password + properties: + password: + type: string + ClientServerDatabaseListResponse: + type: object + required: + - object + - data + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/ClientServerDatabaseResource' + ClientServerDatabaseResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/ClientServerDatabaseAttributes' + ClientServerLogsAttributes: + type: object + required: + - lines + properties: + lines: + type: array + items: + type: string + ClientServerLogsResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/ClientServerLogsAttributes' + ClientServerPaginatedResponse: + type: object + required: + - object + - data + - meta + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/ClientServerResource' + meta: + type: object + required: + - pagination + properties: + pagination: + $ref: '#/components/schemas/PaginationMeta' + ClientServerResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/ClientServerAttributes' + meta: + type: object + required: + - is_server_owner + - user_permissions + properties: + is_server_owner: + type: boolean + user_permissions: + type: array + items: + type: string + ClientServerScheduleAttributes: + type: object + required: + - id + - name + - cron + - is_active + - is_processing + - only_when_online + - last_run_at + - next_run_at + - created_at + - updated_at + properties: + id: + type: integer + name: + type: string + cron: + type: object + required: + - day_of_week + - day_of_month + - month + - hour + - minute + properties: + day_of_week: + type: string + day_of_month: + type: string + month: + type: string + hour: + type: string + minute: + type: string + is_active: + type: boolean + is_processing: + type: boolean + only_when_online: + type: boolean + last_run_at: + type: string + nullable: true + next_run_at: + type: string + nullable: true + created_at: + type: string + updated_at: + type: string + relationships: + type: object + properties: + tasks: + oneOf: + - + $ref: '#/components/schemas/ClientScheduleTaskListResponse' + - + $ref: '#/components/schemas/NullResource' + ClientServerScheduleListResponse: + type: object + required: + - object + - data + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/ClientServerScheduleResource' + ClientServerScheduleResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/ClientServerScheduleAttributes' + ClientServerSubuserAttributes: + type: object + required: + - uuid + - identifier + - username + - email + - image + - 2fa_enabled + - created_at + - permissions + properties: + uuid: + type: string + identifier: + type: string + username: + type: string + email: + type: string + image: + type: string + 2fa_enabled: + type: boolean + created_at: + type: string + permissions: + type: array + items: + anyOf: + - + type: string + enum: + - websocket.connect + - control.console + - control.start + - control.stop + - control.restart + - user.create + - user.read + - user.update + - user.delete + - file.create + - file.read + - file.read-content + - file.update + - file.delete + - file.archive + - file.sftp + - backup.create + - backup.read + - backup.delete + - backup.download + - backup.restore + - allocation.read + - allocation.create + - allocation.update + - allocation.delete + - startup.read + - startup.update + - startup.docker-image + - database.create + - database.read + - database.update + - database.delete + - database.view_password + - schedule.create + - schedule.read + - schedule.update + - schedule.delete + - settings.rename + - settings.reinstall + - activity.read + - + type: string + pattern: '^ext\.[a-z][a-z0-9-]{0,47}\.[a-z][a-z0-9-]{0,47}$' + description: 'A permission registered by an enabled extension.' + ClientServerSubuserListResponse: + type: object + required: + - object + - data + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/ClientServerSubuserResource' + ClientServerSubuserResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/ClientServerSubuserAttributes' + ClientSignedUrlAttributes: + type: object + required: + - url + properties: + url: + type: string + ClientSignedUrlResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/ClientSignedUrlAttributes' + ClientSshKeyAttributes: + type: object + required: + - name + - fingerprint + - public_key + - created_at + properties: + name: + type: string + fingerprint: + type: string + public_key: + type: string + created_at: + type: string + ClientSshKeyListResponse: + type: object + required: + - object + - data + properties: + object: + type: string + data: + type: array + items: + $ref: '#/components/schemas/ClientSshKeyResource' + ClientSshKeyResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/ClientSshKeyAttributes' + ClientStatsAttributes: + type: object + required: + - current_state + - is_suspended + - resources + properties: + current_state: + type: string + enum: + - offline + - stopped + - starting + - running + - stopping + is_suspended: + type: boolean + resources: + type: object + required: + - memory_bytes + - cpu_absolute + - disk_bytes + - network_rx_bytes + - network_tx_bytes + - uptime + properties: + memory_bytes: + type: integer + cpu_absolute: + type: number + disk_bytes: + type: integer + network_rx_bytes: + type: integer + network_tx_bytes: + type: integer + uptime: + type: integer + ClientStatsResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/ClientStatsAttributes' + ClientSystemPermissionsResponse: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + type: object + required: + - permissions + properties: + permissions: + type: object + additionalProperties: + type: object + required: + - description + - keys + properties: + description: + type: string + keys: + type: object + additionalProperties: + type: string + ClientTwoFactorSetupResponse: + type: object + required: + - data + properties: + data: + type: object + required: + - image_url_data + - secret + properties: + image_url_data: + type: string + secret: + type: string + ClientUserAttributes: + type: object + required: + - id + - admin + - username + - email + - first_name + - last_name + - language + properties: + id: + type: integer + admin: + type: boolean + username: + type: string + email: + type: string + first_name: + type: string + last_name: + type: string + language: + type: string + ClientUserResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + attributes: + $ref: '#/components/schemas/ClientUserAttributes' + ErrorEnvelope: + type: object + required: + - errors + properties: + errors: + type: array + items: + type: object + required: + - code + - status + - detail + properties: + code: + type: string + status: + type: string + detail: + type: string + ExtensionFields: + type: object + description: 'Values of the fields extensions add to this resource, keyed by extension id and then by field name. Each extension validates the values sent for it; extensions left out of a request keep their values. Responses about one resource include them; lists leave them out.' + additionalProperties: + type: object + additionalProperties: + oneOf: + - + type: string + - + type: number + - + type: boolean + - + type: array + items: + oneOf: + - + type: string + - + type: number + - + type: boolean + nullable: true + nullable: true + NullResource: + type: object + required: + - object + - attributes + properties: + object: + type: string + enum: + - null_resource + attributes: + nullable: true + enum: + - null + PaginationMeta: + type: object + required: + - total + - count + - per_page + - current_page + - total_pages + properties: + total: + type: integer + count: + type: integer + per_page: + type: integer + current_page: + type: integer + total_pages: + type: integer + links: + type: object + additionalProperties: + type: string + ValidationErrorEnvelope: + type: object + required: + - errors + properties: + errors: + type: array + items: + type: object + required: + - code + - status + - detail + properties: + code: + type: string + status: + type: string + detail: + type: string + meta: + type: object + properties: + source_field: + type: string + rule: + type: string + AdminInstallExtensionRequest: + type: object + properties: + package: + type: string + format: binary + description: 'Extension archive to install.' + enable: + type: boolean + description: 'Enable the extension after installing it.' + replace: + type: boolean + description: 'Replace an installed extension with the same id. Without it, such a package is rejected with a 409 naming the id and both versions.' + required: + - package + AdminUpdateExtensionSettingsRequest: + type: object + properties: + settings: + type: object + description: 'Field values keyed by input name, as described by the settings schema.' + additionalProperties: + oneOf: + - + type: string + - + type: number + - + type: boolean + - + type: array + items: + oneOf: + - + type: string + - + type: number + nullable: true + required: + - settings + AdminUploadExtensionSettingFileRequest: + type: object + properties: + file: + type: string + format: binary + description: 'File to store.' + required: + - file + AdminCreateUserRequest: + type: object + properties: + external_id: + type: string + description: 'An external identifier for this resource. Must not be greater than 191 characters.' + nullable: true + email: + type: string + description: 'The user email address. Must be a valid email address. Must be between 1 and 191 characters.' + username: + type: string + description: 'The username. Must be between 1 and 191 characters.' + password: + type: string + description: 'The password. Must be at least 8 characters.' + nullable: true + root_admin: + type: boolean + description: 'Whether the user has administrator privileges.' + name_first: + type: string + description: 'The name first. Must be between 1 and 191 characters.' + name_last: + type: string + description: 'The name last. Must be between 1 and 191 characters.' + preferences: + type: object + description: '' + properties: + language: + type: string + description: 'The preferences language.' + extensions: + $ref: '#/components/schemas/ExtensionFields' + required: + - email + - username + - name_first + - name_last + AdminUpdateUserRequest: + type: object + properties: + external_id: + type: string + description: 'An external identifier for this resource. Must not be greater than 191 characters.' + nullable: true + email: + type: string + description: 'The user email address. Must be a valid email address. Must be between 1 and 191 characters.' + username: + type: string + description: 'The username. Must be between 1 and 191 characters.' + password: + type: string + description: 'The password. Must be at least 8 characters.' + nullable: true + root_admin: + type: boolean + description: 'Whether the user has administrator privileges.' + name_first: + type: string + description: 'The name first. Must be between 1 and 191 characters.' + name_last: + type: string + description: 'The name last. Must be between 1 and 191 characters.' + preferences: + type: object + description: '' + properties: + language: + type: string + description: 'The preferences language.' + extensions: + $ref: '#/components/schemas/ExtensionFields' + required: + - email + - username + - name_first + - name_last + AdminAttachServerMountRequest: + type: object + properties: + mount_id: + type: integer + description: 'The mount ID. Must match an existing stored value.' + required: + - mount_id + AdminCreateServerRequest: + type: object + properties: + external_id: + type: string + description: 'An external identifier for this resource. Must be between 1 and 191 characters.' + nullable: true + name: + type: string + description: 'The display name. Must be at least 1 character. Must not be greater than 191 characters.' + description: + type: string + description: 'A description for this resource.' + nullable: true + owner_id: + type: integer + description: 'The owner user ID. Must match an existing stored value.' + egg_id: + type: integer + description: 'The egg ID. Must match an existing stored value.' + docker_image: + type: string + description: 'The Docker image to use. Must match the regex /^~?[\w\.\/\-:@ ]*$/. Must not be greater than 191 characters.' + startup: + type: string + description: 'The startup command.' + environment: + type: object + description: 'Environment variables for the server.' + additionalProperties: + type: string + skip_scripts: + type: boolean + description: 'Whether install scripts should be skipped.' + oom_disabled: + type: boolean + description: 'Whether the OOM killer is disabled.' + memory: + type: integer + description: 'The memory limit in megabytes. Must be at least 0.' + swap: + type: integer + description: 'The swap limit in megabytes. Must be at least -1.' + disk: + type: integer + description: 'The disk limit in megabytes. Must be at least 0.' + io: + type: integer + description: 'The block IO weight. Must be between 10 and 1000.' + threads: + type: string + description: 'CPU threads available to the server. Must match the regex /^[0-9-,]+$/.' + nullable: true + cpu: + type: integer + description: 'The CPU limit percentage. Must be at least 0.' + database_limit: + type: integer + description: 'The maximum number of databases allowed. Must be at least 0.' + nullable: true + allocation_limit: + type: integer + description: 'The maximum number of allocations allowed. Must be at least 0.' + nullable: true + backup_limit: + type: integer + description: 'The maximum number of backups allowed. Must be at least 0.' + nullable: true + primary_allocation_id: + type: integer + description: 'The primary allocation ID.' + deploy: + type: object + description: 'The deploy.' + properties: + locations: + type: array + description: 'Must be at least 1.' + items: + type: integer + dedicated_ip: + type: boolean + description: 'The deploy dedicated ip. This field is required when deploy is present.' + port_range: + type: array + description: '' + items: + type: string + tags: + type: array + description: '' + items: + type: string + required: + - locations + start_on_completion: + type: boolean + description: 'Whether the server should start when the operation completes.' + secondary_allocations_ids: + type: array + description: '' + items: + type: integer + extensions: + $ref: '#/components/schemas/ExtensionFields' + required: + - name + - owner_id + - egg_id + - docker_image + - startup + - memory + - swap + - disk + - io + - cpu + - primary_allocation_id + AdminUpdateServerDetailsRequest: + type: object + properties: + external_id: + type: string + description: 'An external identifier for this resource. Must be between 1 and 191 characters.' + nullable: true + name: + type: string + description: 'The display name. Must be at least 1 character. Must not be greater than 191 characters.' + owner_id: + type: integer + description: 'The owner user ID. Must match an existing stored value.' + description: + type: string + description: 'A description for this resource.' + nullable: true + extensions: + $ref: '#/components/schemas/ExtensionFields' + required: + - name + - owner_id + AdminUpdateServerBuildRequest: + type: object + properties: + allocation_id: + type: integer + description: 'The allocation ID. Must match an existing stored value.' + oom_disabled: + type: boolean + description: 'Whether the OOM killer is disabled.' + memory: + type: integer + description: 'The memory limit in megabytes. Must be at least 0.' + swap: + type: integer + description: 'The swap limit in megabytes. Must be at least -1.' + io: + type: integer + description: 'The block IO weight. Must be between 10 and 1000.' + cpu: + type: integer + description: 'The CPU limit percentage. Must be at least 0.' + threads: + type: string + description: 'CPU threads available to the server. Must match the regex /^[0-9-,]+$/.' + nullable: true + disk: + type: integer + description: 'The disk limit in megabytes. Must be at least 0.' + add_allocation_ids: + type: array + description: '' + items: + type: integer + remove_allocation_ids: + type: array + description: '' + items: + type: integer + database_limit: + type: integer + description: 'The maximum number of databases allowed. Must be at least 0.' + nullable: true + allocation_limit: + type: integer + description: 'The maximum number of allocations allowed. Must be at least 0.' + nullable: true + backup_limit: + type: integer + description: 'The maximum number of backups allowed. Must be at least 0.' + nullable: true + required: + - allocation_id + - memory + - swap + - io + - cpu + - disk + AdminUpdateServerStartupRequest: + type: object + properties: + startup: + type: string + description: 'The startup command.' + environment: + type: object + description: 'Environment variables for the server.' + additionalProperties: + type: string + egg_id: + type: integer + description: 'The egg ID. Must match an existing stored value.' + docker_image: + type: string + description: 'The Docker image to use. Must match the regex /^~?[\w\.\/\-:@ ]*$/. Must not be greater than 191 characters.' + skip_scripts: + type: boolean + description: 'Whether install scripts should be skipped.' + required: + - startup + - egg_id + - docker_image + AdminUpdateServerSuspensionRequest: + type: object + properties: + suspended: + type: boolean + description: 'The suspended.' + nullable: true + AdminTransferServerRequest: + type: object + properties: + node_id: + type: integer + description: 'The destination node ID.' + allocation_id: + type: integer + description: 'The primary allocation ID on the destination node.' + allocation_additional: + type: array + description: 'Additional allocation IDs on the destination node.' + items: + type: integer + required: + - node_id + - allocation_id + AdminCreateServerDatabaseRequest: + type: object + properties: + database: + type: string + description: 'The database. Must contain only letters, numbers, dashes and underscores. Must be at least 1 character. Must not be greater than 48 characters.' + remote: + type: string + description: 'The remote database address. Must match the regex /^[0-9%.]{1,15}$/.' + database_host_id: + type: integer + description: 'The database host ID. Must match an existing stored value.' + max_connections: + type: integer + description: 'The maximum number of connections allowed. Must be at least 0.' + nullable: true + required: + - database + - remote + - database_host_id + AdminCreateNodeRequest: + type: object + properties: + public: + type: boolean + description: 'The public.' + name: + type: string + description: 'The display name. Must match the regex /^([\w .-]{1,100})$/.' + description: + type: string + description: 'A description for this resource.' + nullable: true + location_id: + type: integer + description: 'The location ID. Must match an existing stored value.' + fqdn: + type: string + description: 'The fully qualified domain name.' + scheme: + type: string + description: 'The scheme.' + behind_proxy: + type: boolean + description: 'Whether the node is behind a proxy.' + maintenance_mode: + type: boolean + description: 'The maintenance mode.' + memory: + type: integer + description: 'The memory limit in megabytes. Must be at least 1.' + memory_overallocate: + type: integer + description: 'The memory overallocate. Must be at least -1.' + disk: + type: integer + description: 'The disk limit in megabytes. Must be at least 1.' + disk_overallocate: + type: integer + description: 'The disk overallocate. Must be at least -1.' + upload_size: + type: integer + description: 'The upload size. Must be at least 1.' + daemon_listen: + type: integer + description: 'The daemon listen. Must be between 1 and 65535.' + daemon_sftp: + type: integer + description: 'The daemon sftp. Must be between 1 and 65535.' + daemon_base: + type: string + description: 'The daemon base. Must match the regex /^([\/][\d\w.\-\/]+)$/.' + extensions: + $ref: '#/components/schemas/ExtensionFields' + required: + - name + - location_id + - fqdn + - scheme + - memory + - memory_overallocate + - disk + - disk_overallocate + - daemon_listen + - daemon_sftp + AdminUpdateNodeRequest: + type: object + properties: + public: + type: boolean + description: 'The public.' + name: + type: string + description: 'The display name. Must match the regex /^([\w .-]{1,100})$/.' + description: + type: string + description: 'A description for this resource.' + nullable: true + location_id: + type: integer + description: 'The location ID. Must match an existing stored value.' + fqdn: + type: string + description: 'The fully qualified domain name.' + scheme: + type: string + description: 'The scheme.' + behind_proxy: + type: boolean + description: 'Whether the node is behind a proxy.' + maintenance_mode: + type: boolean + description: 'The maintenance mode.' + memory: + type: integer + description: 'The memory limit in megabytes. Must be at least 1.' + memory_overallocate: + type: integer + description: 'The memory overallocate. Must be at least -1.' + disk: + type: integer + description: 'The disk limit in megabytes. Must be at least 1.' + disk_overallocate: + type: integer + description: 'The disk overallocate. Must be at least -1.' + upload_size: + type: integer + description: 'The upload size. Must be at least 1.' + daemon_listen: + type: integer + description: 'The daemon listen. Must be between 1 and 65535.' + daemon_sftp: + type: integer + description: 'The daemon sftp. Must be between 1 and 65535.' + daemon_base: + type: string + description: 'The daemon base. Must match the regex /^([\/][\d\w.\-\/]+)$/.' + reset_secret: + type: boolean + description: 'Whether to rotate the daemon secret.' + extensions: + $ref: '#/components/schemas/ExtensionFields' + required: + - name + - location_id + - fqdn + - scheme + - memory + - memory_overallocate + - disk + - disk_overallocate + - daemon_listen + - daemon_sftp + AdminSyncNodeGameTagsRequest: + type: object + properties: + tags: + type: array + description: 'Must not be greater than 191 characters.' + items: + type: string + AdminSyncNodeDeploymentTagsRequest: + type: object + properties: + tags: + type: array + description: 'Must not be greater than 191 characters.' + items: + type: string + AdminCreateNodeAllocationsRequest: + type: object + properties: + ip: + type: array + description: '' + items: + type: string + alias: + type: string + description: 'An optional alias for this resource. Must not be greater than 255 characters.' + nullable: true + ports: + type: array + description: '' + items: + type: string + AdminBulkDeleteNodeAllocationsRequest: + type: object + properties: + ids: + type: array + description: '' + items: + type: integer + AdminDeleteNodeAllocationIPBlockRequest: + type: object + properties: + ip: + type: string + description: 'The IP address.' + required: + - ip + AdminUpdateNodeAllocationRequest: + type: object + properties: + alias: + type: string + description: 'An optional alias for this resource.' + nullable: true + AdminCreateLocationRequest: + type: object + properties: + short: + type: string + description: 'The short. Must be between 1 and 60 characters.' + long: + type: string + description: 'The long. Must be between 1 and 191 characters.' + nullable: true + extensions: + $ref: '#/components/schemas/ExtensionFields' + required: + - short + AdminUpdateLocationRequest: + type: object + properties: + short: + type: string + description: 'The short. Must be between 1 and 60 characters.' + long: + type: string + description: 'The long. Must be between 1 and 191 characters.' + nullable: true + extensions: + $ref: '#/components/schemas/ExtensionFields' + required: + - short + AdminCreateMountRequest: + type: object + properties: + name: + type: string + description: 'The display name. Must be at least 2 characters. Must not be greater than 64 characters.' + description: + type: string + description: 'A description for this resource. Must not be greater than 191 characters.' + nullable: true + source: + type: string + description: 'The source path. Must start with one of /.' + target: + type: string + description: 'The target path. Must start with one of /.' + read_only: + type: boolean + description: 'The read only.' + user_mountable: + type: boolean + description: 'Whether users can mount this resource.' + extensions: + $ref: '#/components/schemas/ExtensionFields' + required: + - name + - source + - target + AdminUpdateMountRequest: + type: object + properties: + name: + type: string + description: 'The display name. Must be at least 2 characters. Must not be greater than 64 characters.' + description: + type: string + description: 'A description for this resource. Must not be greater than 191 characters.' + nullable: true + source: + type: string + description: 'The source path. Must start with one of /.' + target: + type: string + description: 'The target path. Must start with one of /.' + read_only: + type: boolean + description: 'The read only.' + user_mountable: + type: boolean + description: 'Whether users can mount this resource.' + extensions: + $ref: '#/components/schemas/ExtensionFields' + required: + - name + - source + - target + AdminAttachEggsToMountRequest: + type: object + properties: + eggs: + type: array + description: '' + items: + type: integer + required: + - eggs + AdminAttachNodesToMountRequest: + type: object + properties: + nodes: + type: array + description: '' + items: + type: integer + required: + - nodes + AdminImportCatalogEggRequest: + type: object + properties: + catalog_id: + type: string + description: 'The catalog id. Must not be greater than 255 characters.' + required: + - catalog_id + AdminCreateEggVariableRequest: + type: object + properties: + name: + type: string + description: 'The display name. Must be at least 1 character. Must not be greater than 191 characters.' + description: + type: string + description: 'A description for this resource.' + nullable: true + env_variable: + type: string + description: 'The environment variable name. Must not be one of SERVER_MEMORY, SERVER_IP, SERVER_PORT, ENV, HOME, USER, STARTUP, SERVER_UUID, UUID, in any letter case. Must match the regex /^[\w]{1,191}$/.' + rules: + type: string + description: 'Laravel validation rules applied to user-submitted values.' + default_value: + type: string + description: 'The default value.' + options: + type: array + description: '' + items: + type: string + required: + - name + - env_variable + - rules + AdminReorderEggVariablesRequest: + type: object + properties: + order: + type: array + description: '' + items: + type: integer + required: + - order + AdminUpdateEggVariableRequest: + type: object + properties: + name: + type: string + description: 'The display name. Must be at least 1 character. Must not be greater than 191 characters.' + description: + type: string + description: 'A description for this resource.' + nullable: true + env_variable: + type: string + description: 'The environment variable name. Must not be one of SERVER_MEMORY, SERVER_IP, SERVER_PORT, ENV, HOME, USER, STARTUP, SERVER_UUID, UUID, in any letter case. Must match the regex /^[\w]{1,191}$/.' + rules: + type: string + description: 'Laravel validation rules applied to user-submitted values.' + default_value: + type: string + description: 'The default value.' + options: + type: array + description: '' + items: + type: string + required: + - name + - env_variable + - rules + AdminUpdateEggInstallScriptRequest: + type: object + properties: + script_install: + type: string + description: 'The install script body.' + nullable: true + script_is_privileged: + type: boolean + description: 'Whether the install script runs in privileged mode.' + script_entry: + type: string + description: 'The install container entrypoint.' + script_container: + type: string + description: 'The install container image.' + copy_script_from: + type: integer + description: 'Another egg ID to copy the install script from.' + nullable: true + AdminUpdateEggFromImportRequest: + type: object + properties: + import_file: + type: string + format: binary + description: 'The file to import. Must be a file. Must not be greater than 1000 kilobytes.' + required: + - import_file + AdminSyncEggTagsRequest: + type: object + properties: + tags: + type: array + description: 'Must not be greater than 191 characters.' + items: + type: string + AdminImportEggRequest: + type: object + properties: + import_file: + type: string + format: binary + description: 'The file to import. Must be a file. Must not be greater than 1000 kilobytes.' + required: + - import_file + AdminCreateEggRequest: + type: object + properties: + name: + type: string + description: 'The display name. Must not be greater than 191 characters.' + description: + type: string + description: 'A description for this resource.' + nullable: true + docker_images: + type: string + description: 'Docker images available to this resource. One image per line, optionally prefixed with a display name and a pipe (Java 21|ghcr.io/pterodactyl/yolks:java_21). Each must be at most 191 characters and match the regex /^[\w#\.\/\- ]*\|?~?[\w\.\/\-:@ ]*$/.' + force_outgoing_ip: + type: boolean + description: 'Whether servers should use their allocation IP for outgoing traffic.' + file_denylist: + type: array + description: 'File patterns denied by the file manager.' + items: + type: string + features: + type: array + description: 'Feature flags enabled for this resource.' + items: + type: string + startup: + type: string + description: 'The startup command.' + config_from: + type: integer + description: 'The config from. Must match an existing stored value.' + nullable: true + config_stop: + type: string + description: 'The config stop. This field is required when config_from is not present. Must not be greater than 191 characters.' + nullable: true + config_startup: + type: string + description: 'The config startup. This field is required when config_from is not present. Must be a valid JSON string.' + nullable: true + config_logs: + type: string + description: 'The config logs. This field is required when config_from is not present. Must be a valid JSON string.' + nullable: true + config_files: + type: string + description: 'The config files. This field is required when config_from is not present. Must be a valid JSON string.' + nullable: true + extensions: + $ref: '#/components/schemas/ExtensionFields' + required: + - name + - docker_images + - startup + AdminUpdateEggRequest: + type: object + properties: + name: + type: string + description: 'The display name. Must not be greater than 191 characters.' + description: + type: string + description: 'A description for this resource.' + nullable: true + docker_images: + type: string + description: 'Docker images available to this resource. One image per line, optionally prefixed with a display name and a pipe (Java 21|ghcr.io/pterodactyl/yolks:java_21). Each must be at most 191 characters and match the regex /^[\w#\.\/\- ]*\|?~?[\w\.\/\-:@ ]*$/.' + force_outgoing_ip: + type: boolean + description: 'Whether servers should use their allocation IP for outgoing traffic.' + file_denylist: + type: array + description: 'File patterns denied by the file manager.' + items: + type: string + features: + type: array + description: 'Feature flags enabled for this resource.' + items: + type: string + startup: + type: string + description: 'The startup command.' + config_from: + type: integer + description: 'The config from. Must match an existing stored value.' + nullable: true + config_stop: + type: string + description: 'The config stop. This field is required when config_from is not present. Must not be greater than 191 characters.' + nullable: true + config_startup: + type: string + description: 'The config startup. This field is required when config_from is not present. Must be a valid JSON string.' + nullable: true + config_logs: + type: string + description: 'The config logs. This field is required when config_from is not present. Must be a valid JSON string.' + nullable: true + config_files: + type: string + description: 'The config files. This field is required when config_from is not present. Must be a valid JSON string.' + nullable: true + extensions: + $ref: '#/components/schemas/ExtensionFields' + required: + - name + - docker_images + - startup + AdminCreateTagRequest: + type: object + properties: + name: + type: string + description: 'The display name. Must be between 1 and 191 characters.' + slug: + type: string + description: 'The slug. Must be between 1 and 191 characters.' + color: + type: string + description: 'The color.' + nullable: true + required: + - name + - slug + AdminUpdateTagRequest: + type: object + properties: + name: + type: string + description: 'The display name. Must be between 1 and 191 characters.' + slug: + type: string + description: 'The slug. Must be between 1 and 191 characters.' + color: + type: string + description: 'The color.' + nullable: true + required: + - name + - slug + AdminUpdateGeneralSettingsRequest: + type: object + properties: + branding: + type: object + description: '' + properties: + name: + type: string + description: 'The branding name. Must not be greater than 191 characters.' + required: + - name + misc: + type: object + description: '' + properties: + required_2fa: + type: integer + description: 'The misc required 2fa.' + enum: + - 0 + - 1 + - 2 + required: + - required_2fa + default_locale: + type: string + description: 'The default locale.' + required: + - default_locale + AdminUpdateMailSettingsRequest: + type: object + properties: + smtp: + type: object + description: '' + properties: + host: + type: string + description: 'The smtp host.' + port: + type: integer + description: 'The smtp port. Must be between 1 and 65535.' + encryption: + type: string + nullable: true + enum: + - tls + - ssl + - null + description: 'The smtp encryption.' + username: + type: string + description: 'The smtp username. Must not be greater than 191 characters.' + nullable: true + password: + type: string + description: 'The smtp password. Must not be greater than 191 characters.' + nullable: true + from_address: + type: string + description: 'The smtp from address. Must be a valid email address.' + from_name: + type: string + description: 'The smtp from name. Must not be greater than 191 characters.' + nullable: true + required: + - host + - port + - from_address + AdminUpdateAdvancedSettingsRequest: + type: object + properties: + 'recaptcha:enabled': + type: string + description: 'The recaptcha:enabled.' + enum: + - 'true' + - 'false' + 'recaptcha:secret_key': + type: string + description: 'The recaptcha:secret key. Must not be greater than 191 characters.' + nullable: true + 'recaptcha:website_key': + type: string + description: 'The recaptcha:website key. Must not be greater than 191 characters.' + 'pterodactyl:guzzle:timeout': + type: integer + description: 'The pterodactyl:guzzle:timeout. Must be between 1 and 60.' + 'pterodactyl:guzzle:connect_timeout': + type: integer + description: 'The pterodactyl:guzzle:connect timeout. Must be between 1 and 60.' + 'pterodactyl:client_features:allocations:enabled': + type: string + description: 'The pterodactyl:client features:allocations:enabled.' + enum: + - 'true' + - 'false' + 'pterodactyl:client_features:allocations:range_start': + type: integer + description: 'The pterodactyl:client features:allocations:range start. This field is required when pterodactyl:client_features:allocations:enabled is true. Must be between 1024 and 65535.' + nullable: true + 'pterodactyl:client_features:allocations:range_end': + type: integer + description: 'The pterodactyl:client features:allocations:range end. This field is required when pterodactyl:client_features:allocations:enabled is true. Must be between 1024 and 65535.' + nullable: true + required: + - 'recaptcha:enabled' + - 'recaptcha:website_key' + - 'pterodactyl:guzzle:timeout' + - 'pterodactyl:guzzle:connect_timeout' + - 'pterodactyl:client_features:allocations:enabled' + AdminCreateDatabaseHostRequest: + type: object + properties: + name: + type: string + description: 'The display name. Must not be greater than 191 characters.' + host: + type: string + description: 'The database host address. Must match the regex /^[\w\-\.]+$/.' + port: + type: integer + description: 'The port number. Must be between 1 and 65535.' + username: + type: string + description: 'The username. Must not be greater than 32 characters.' + password: + type: string + description: 'The password.' + nullable: true + node_id: + type: integer + description: 'The node ID. Must match an existing stored value.' + nullable: true + extensions: + $ref: '#/components/schemas/ExtensionFields' + required: + - name + - host + - port + - username + AdminUpdateDatabaseHostRequest: + type: object + properties: + name: + type: string + description: 'The display name. Must not be greater than 191 characters.' + host: + type: string + description: 'The database host address. Must match the regex /^[\w\-\.]+$/.' + port: + type: integer + description: 'The port number. Must be between 1 and 65535.' + username: + type: string + description: 'The username. Must not be greater than 32 characters.' + password: + type: string + description: 'The password.' + nullable: true + node_id: + type: integer + description: 'The node ID. Must match an existing stored value.' + nullable: true + extensions: + $ref: '#/components/schemas/ExtensionFields' + required: + - name + - host + - port + - username + AdminCreateAPIKeyRequest: + type: object + properties: + memo: + type: string + description: 'The memo. Must not be greater than 500 characters.' + r_servers: + type: integer + description: 'The r servers. Must be at least 0. Must not be greater than 3.' + r_nodes: + type: integer + description: 'The r nodes. Must be at least 0. Must not be greater than 3.' + r_allocations: + type: integer + description: 'The r allocations. Must be at least 0. Must not be greater than 3.' + r_users: + type: integer + description: 'The r users. Must be at least 0. Must not be greater than 3.' + r_locations: + type: integer + description: 'The r locations. Must be at least 0. Must not be greater than 3.' + r_eggs: + type: integer + description: 'The r eggs. Must be at least 0. Must not be greater than 3.' + r_database_hosts: + type: integer + description: 'The r database hosts. Must be at least 0. Must not be greater than 3.' + r_server_databases: + type: integer + description: 'The r server databases. Must be at least 0. Must not be greater than 3.' + required: + - memo + AdminUpdateAPIKeyRequest: + type: object + properties: + memo: + type: string + description: 'The memo. Must not be greater than 500 characters.' + r_servers: + type: integer + description: 'The r servers. Must be at least 0. Must not be greater than 3.' + r_nodes: + type: integer + description: 'The r nodes. Must be at least 0. Must not be greater than 3.' + r_allocations: + type: integer + description: 'The r allocations. Must be at least 0. Must not be greater than 3.' + r_users: + type: integer + description: 'The r users. Must be at least 0. Must not be greater than 3.' + r_locations: + type: integer + description: 'The r locations. Must be at least 0. Must not be greater than 3.' + r_eggs: + type: integer + description: 'The r eggs. Must be at least 0. Must not be greater than 3.' + r_database_hosts: + type: integer + description: 'The r database hosts. Must be at least 0. Must not be greater than 3.' + r_server_databases: + type: integer + description: 'The r server databases. Must be at least 0. Must not be greater than 3.' + required: + - memo + ApplicationCreateUserRequest: + type: object + properties: + external_id: + type: string + description: 'An external identifier for this resource. Must not be greater than 191 characters.' + nullable: true + email: + type: string + description: 'The user email address. Must be a valid email address. Must be between 1 and 191 characters.' + username: + type: string + description: 'The username. Must be between 1 and 191 characters.' + password: + type: string + description: 'The password. Must be at least 8 characters.' + nullable: true + language: + type: string + description: 'The locale code.' + enum: + - en + root_admin: + type: boolean + description: 'Whether the user has administrator privileges.' + first_name: + type: string + description: 'The first name. Must be between 1 and 191 characters.' + last_name: + type: string + description: 'The last name. Must be between 1 and 191 characters.' + extensions: + $ref: '#/components/schemas/ExtensionFields' + required: + - email + - username + - first_name + - last_name + ApplicationUpdateUserRequest: + type: object + properties: + external_id: + type: string + description: 'An external identifier for this resource. Must not be greater than 191 characters.' + nullable: true + email: + type: string + description: 'The user email address. Must be a valid email address. Must be between 1 and 191 characters.' + username: + type: string + description: 'The username. Must be between 1 and 191 characters.' + password: + type: string + description: 'The password. Must be at least 8 characters.' + nullable: true + language: + type: string + description: 'The locale code.' + enum: + - en + root_admin: + type: boolean + description: 'Whether the user has administrator privileges.' + first_name: + type: string + description: 'The first name. Must be between 1 and 191 characters.' + last_name: + type: string + description: 'The last name. Must be between 1 and 191 characters.' + extensions: + $ref: '#/components/schemas/ExtensionFields' + required: + - email + - username + - first_name + - last_name + ApplicationCreateNodeRequest: + type: object + properties: + public: + type: boolean + description: 'The public.' + name: + type: string + description: 'The display name. Must match the regex /^([\w .-]{1,100})$/.' + description: + type: string + description: 'A description for this resource.' + nullable: true + location_id: + type: integer + description: 'The location ID. Must match an existing stored value.' + fqdn: + type: string + description: 'The fully qualified domain name.' + scheme: + type: string + description: 'The scheme.' + behind_proxy: + type: boolean + description: 'Whether the node is behind a proxy.' + maintenance_mode: + type: boolean + description: 'The maintenance mode.' + memory: + type: integer + description: 'The memory limit in megabytes. Must be at least 1.' + memory_overallocate: + type: integer + description: 'The memory overallocate. Must be at least -1.' + disk: + type: integer + description: 'The disk limit in megabytes. Must be at least 1.' + disk_overallocate: + type: integer + description: 'The disk overallocate. Must be at least -1.' + upload_size: + type: integer + description: 'The upload size. Must be at least 1.' + daemon_listen: + type: integer + description: 'The daemon listen. Must be between 1 and 65535.' + daemon_sftp: + type: integer + description: 'The daemon sftp. Must be between 1 and 65535.' + daemon_base: + type: string + description: 'The daemon base. Must match the regex /^([\/][\d\w.\-\/]+)$/.' + extensions: + $ref: '#/components/schemas/ExtensionFields' + required: + - name + - location_id + - fqdn + - scheme + - memory + - memory_overallocate + - disk + - disk_overallocate + - daemon_listen + - daemon_sftp + ApplicationUpdateNodeRequest: + type: object + properties: + public: + type: boolean + description: 'The public.' + name: + type: string + description: 'The display name. Must match the regex /^([\w .-]{1,100})$/.' + description: + type: string + description: 'A description for this resource.' + nullable: true + location_id: + type: integer + description: 'The location ID. Must match an existing stored value.' + fqdn: + type: string + description: 'The fully qualified domain name.' + scheme: + type: string + description: 'The scheme.' + behind_proxy: + type: boolean + description: 'Whether the node is behind a proxy.' + maintenance_mode: + type: boolean + description: 'The maintenance mode.' + memory: + type: integer + description: 'The memory limit in megabytes. Must be at least 1.' + memory_overallocate: + type: integer + description: 'The memory overallocate. Must be at least -1.' + disk: + type: integer + description: 'The disk limit in megabytes. Must be at least 1.' + disk_overallocate: + type: integer + description: 'The disk overallocate. Must be at least -1.' + upload_size: + type: integer + description: 'The upload size. Must be at least 1.' + daemon_listen: + type: integer + description: 'The daemon listen. Must be between 1 and 65535.' + daemon_sftp: + type: integer + description: 'The daemon sftp. Must be between 1 and 65535.' + daemon_base: + type: string + description: 'The daemon base. Must match the regex /^([\/][\d\w.\-\/]+)$/.' + reset_secret: + type: boolean + description: 'The reset secret.' + extensions: + $ref: '#/components/schemas/ExtensionFields' + required: + - name + - location_id + - fqdn + - scheme + - memory + - memory_overallocate + - disk + - disk_overallocate + - daemon_listen + - daemon_sftp + ApplicationCreateNodeAllocationsRequest: + type: object + properties: + ip: + type: string + description: 'The IP address.' + alias: + type: string + description: 'An optional alias for this resource. Must not be greater than 191 characters.' + nullable: true + ports: + type: array + description: '' + items: + type: string + required: + - ip + ApplicationCreateLocationRequest: + type: object + properties: + short: + type: string + description: 'The short. Must be between 1 and 60 characters.' + long: + type: string + description: 'The long. Must be between 1 and 191 characters.' + nullable: true + extensions: + $ref: '#/components/schemas/ExtensionFields' + required: + - short + ApplicationUpdateLocationRequest: + type: object + properties: + short: + type: string + description: 'The short. Must be between 1 and 60 characters.' + long: + type: string + description: 'The long. Must be between 1 and 191 characters.' + nullable: true + extensions: + $ref: '#/components/schemas/ExtensionFields' + required: + - short + ApplicationCreateServerRequest: + type: object + properties: + external_id: + type: string + description: 'An external identifier for this resource. Must be between 1 and 191 characters.' + nullable: true + name: + type: string + description: 'The display name. Must be at least 1 character. Must not be greater than 191 characters.' + description: + type: string + description: 'A description for this resource.' + nullable: true + user: + type: integer + description: 'The user ID. Must match an existing stored value.' + egg: + type: string + description: 'The egg. Must match an existing stored value.' + docker_image: + type: string + description: 'The Docker image to use. Must match the regex /^~?[\w\.\/\-:@ ]*$/. Must not be greater than 191 characters.' + startup: + type: string + description: 'The startup command.' + environment: + type: object + description: 'Environment variables for the server.' + additionalProperties: + type: string + skip_scripts: + type: boolean + description: 'Whether install scripts should be skipped.' + oom_disabled: + type: boolean + description: 'Whether the OOM killer is disabled.' + limits: + type: object + description: 'The limits.' + properties: + memory: + type: integer + description: 'The limits memory. Must be at least 0.' + swap: + type: integer + description: 'The limits swap. Must be at least -1.' + disk: + type: integer + description: 'The limits disk. Must be at least 0.' + io: + type: integer + description: 'The limits io. Must be between 10 and 1000.' + threads: + type: string + description: 'The limits threads. Must match the regex /^[0-9-,]+$/.' + nullable: true + cpu: + type: integer + description: 'The limits cpu. Must be at least 0.' + required: + - memory + - swap + - disk + - io + - cpu + feature_limits: + type: object + description: 'The feature limits.' + properties: + databases: + type: integer + description: 'The maximum number of databases allowed. Must be at least 0.' + nullable: true + allocations: + type: integer + description: 'The maximum number of allocations allowed. Must be at least 0.' + nullable: true + backups: + type: integer + description: 'The maximum number of backups allowed. Must be at least 0.' + nullable: true + allocation: + type: object + description: '' + properties: + default: + type: integer + description: 'The allocation default.' + additional: + type: array + description: '' + items: + type: integer + required: + - default + deploy: + type: object + description: 'The deploy.' + properties: + locations: + type: array + description: 'Must be at least 1.' + items: + type: integer + dedicated_ip: + type: boolean + description: 'The deploy dedicated ip.' + port_range: + type: array + description: '' + items: + type: string + tags: + type: array + description: 'The deploy tags.' + items: + oneOf: + - + type: integer + - + type: string + required: + - locations + start_on_completion: + type: boolean + description: 'Whether the server should start when the operation completes.' + extensions: + $ref: '#/components/schemas/ExtensionFields' + required: + - name + - user + - egg + - docker_image + - startup + - limits + - feature_limits + ApplicationUpdateServerDetailsRequest: + type: object + properties: + external_id: + type: string + description: 'An external identifier for this resource. Must be between 1 and 191 characters.' + nullable: true + name: + type: string + description: 'The display name. Must be at least 1 character. Must not be greater than 191 characters.' + user: + type: integer + description: 'The user ID. Must match an existing stored value.' + description: + type: string + description: 'A description for this resource.' + nullable: true + extensions: + $ref: '#/components/schemas/ExtensionFields' + required: + - name + - user + ApplicationUpdateServerBuildRequest: + type: object + properties: + allocation: + type: string + description: 'The allocation ID. Must match an existing stored value.' + oom_disabled: + type: boolean + description: 'Whether the OOM killer is disabled.' + limits: + type: object + description: 'The limits.' + properties: + memory: + type: integer + description: 'The limits memory. This field is required when limits is present. Must be at least 0.' + swap: + type: integer + description: 'The limits swap. This field is required when limits is present. Must be at least -1.' + io: + type: integer + description: 'The limits io. This field is required when limits is present. Must be between 10 and 1000.' + cpu: + type: integer + description: 'The limits cpu. This field is required when limits is present. Must be at least 0.' + threads: + type: string + description: 'The limits threads. Must match the regex /^[0-9-,]+$/.' + nullable: true + disk: + type: integer + description: 'The limits disk. This field is required when limits is present. Must be at least 0.' + memory: + type: integer + description: 'The memory limit in megabytes. This field is required when limits is not present. Must be at least 0.' + swap: + type: integer + description: 'The swap limit in megabytes. This field is required when limits is not present. Must be at least -1.' + io: + type: integer + description: 'The block IO weight. This field is required when limits is not present. Must be between 10 and 1000.' + cpu: + type: integer + description: 'The CPU limit percentage. This field is required when limits is not present. Must be at least 0.' + threads: + type: string + description: 'CPU threads available to the server. Must match the regex /^[0-9-,]+$/.' + nullable: true + disk: + type: integer + description: 'The disk limit in megabytes. This field is required when limits is not present. Must be at least 0.' + add_allocations: + type: array + description: '' + items: + type: integer + remove_allocations: + type: array + description: '' + items: + type: integer + feature_limits: + type: object + description: 'The feature limits.' + properties: + databases: + type: integer + description: 'The maximum number of databases allowed. Must be at least 0.' + nullable: true + allocations: + type: integer + description: 'The maximum number of allocations allowed. Must be at least 0.' + nullable: true + backups: + type: integer + description: 'The maximum number of backups allowed. Must be at least 0.' + nullable: true + required: + - allocation + - feature_limits + ApplicationUpdateServerStartupRequest: + type: object + properties: + startup: + type: string + description: 'The startup command.' + environment: + type: object + description: 'Environment variables for the server.' + additionalProperties: + type: string + egg: + type: string + description: 'The egg. Must match an existing stored value.' + image: + type: string + description: 'The image. Must match the regex /^~?[\w\.\/\-:@ ]*$/. Must not be greater than 191 characters.' + skip_scripts: + type: boolean + description: 'Whether install scripts should be skipped.' + required: + - startup + - egg + - image + ApplicationCreateServerDatabaseRequest: + type: object + properties: + database: + type: string + description: 'The database. Must contain only letters, numbers, dashes and underscores. Must be at least 1 character. Must not be greater than 48 characters.' + remote: + type: string + description: 'The remote database address. Must match the regex /^[0-9%.]{1,15}$/.' + host: + type: integer + description: 'The database host address. Must match an existing stored value.' + required: + - database + - remote + - host + AuthLoginRequest: + type: object + properties: + user: + type: string + description: 'The account username or email address.' + password: + type: string + description: 'The account password.' + g-recaptcha-response: + type: string + description: 'The reCAPTCHA token when reCAPTCHA is enabled.' + nullable: true + required: + - user + - password + AuthCompleteLoginCheckpointRequest: + type: object + properties: + confirmation_token: + type: string + description: 'The confirmation token returned by the login endpoint.' + authentication_code: + type: string + description: 'The six-digit TOTP code. Required when recovery_token is not provided.' + nullable: true + recovery_token: + type: string + description: 'A recovery token. Required when authentication_code is not provided.' + nullable: true + required: + - confirmation_token + AuthRequestPasswordResetEmailRequest: + type: object + properties: + email: + type: string + description: 'The account email address.' + g-recaptcha-response: + type: string + description: 'The reCAPTCHA token when reCAPTCHA is enabled.' + nullable: true + required: + - email + AuthResetPasswordRequest: + type: object + properties: + token: + type: string + description: 'The password reset token.' + email: + type: string + description: 'The account email address.' + password: + type: string + description: 'The new account password. Must be at least eight characters.' + password_confirmation: + type: string + description: 'Confirmation matching the new account password.' + g-recaptcha-response: + type: string + description: 'The reCAPTCHA token when reCAPTCHA is enabled.' + nullable: true + required: + - token + - email + - password + - password_confirmation + ClientEnableTwoFactorAuthenticationRequest: + type: object + properties: + code: + type: string + description: 'The six-digit TOTP code generated by the authenticator app.' + password: + type: string + description: 'The current account password.' + required: + - code + - password + ClientDisableTwoFactorAuthenticationRequest: + type: object + properties: + password: + type: string + description: 'The current account password.' + required: + - password + ClientUpdateAccountEmailRequest: + type: object + properties: + email: + type: string + description: 'The user email address. Must be a valid email address. Must be between 1 and 191 characters.' + password: + type: string + description: 'The current account password.' + required: + - email + - password + ClientUpdateAccountPasswordRequest: + type: object + properties: + current_password: + type: string + description: 'The current account password.' + password: + type: string + description: 'The password. Must be at least 8 characters.' + password_confirmation: + type: string + description: 'Confirmation matching the new password.' + required: + - current_password + - password + - password_confirmation + ClientCreateAccountAPIKeyRequest: + type: object + properties: + description: + type: string + description: 'A description for this resource. Must not be greater than 500 characters.' + allowed_ips: + type: array + description: '' + items: + type: string + required: + - description + ClientCreateSSHKeyRequest: + type: object + properties: + name: + type: string + description: 'The display name.' + public_key: + type: string + description: 'The SSH public key. Must not be greater than 16384 characters.' + required: + - name + - public_key + ClientDeleteSSHKeyRequest: + type: object + properties: + fingerprint: + type: string + description: 'The SSH key fingerprint.' + required: + - fingerprint + ClientSendServerCommandRequest: + type: object + properties: + command: + type: string + description: 'The console command to send. Must be at least 1 character.' + required: + - command + ClientSendPowerActionRequest: + type: object + properties: + signal: + type: string + description: 'The power signal.' + enum: + - start + - stop + - restart + - kill + required: + - signal + ClientCreateServerDatabaseRequest: + type: object + properties: + database: + type: string + description: 'The database. Must contain only letters, numbers, dashes and underscores. Must be at least 3 characters. Must not be greater than 48 characters.' + remote: + type: string + description: 'The remote database address. Must match the regex /^[\w\-\/.%:]+$/.' + required: + - database + - remote + ClientRenameFilesRequest: + type: object + properties: + root: + type: string + description: 'The root. Must not be greater than 2048 characters.' + nullable: true + files: + type: array + description: '' + items: + type: object + properties: + to: + type: string + description: 'Must not be greater than 2048 characters.' + from: + type: string + description: 'Must not be greater than 2048 characters.' + required: + - to + - from + ClientCopyFileRequest: + type: object + properties: + location: + type: string + description: 'The location. Must not be greater than 2048 characters.' + required: + - location + ClientWriteFileContentsRequest: + type: string + description: 'Raw file contents to write.' + ClientCompressFilesRequest: + type: object + properties: + root: + type: string + description: 'The root. Must not be greater than 2048 characters.' + nullable: true + files: + type: array + description: 'Must not be greater than 2048 characters.' + items: + type: string + ClientDecompressFileRequest: + type: object + properties: + root: + type: string + description: 'The root. Must not be greater than 2048 characters.' + nullable: true + file: + type: string + description: 'The file path. Must not be greater than 2048 characters.' + required: + - file + ClientDeleteFilesRequest: + type: object + properties: + root: + type: string + description: 'The root. Must not be greater than 2048 characters.' + nullable: true + files: + type: array + description: 'Must not be greater than 2048 characters.' + items: + type: string + ClientCreateFolderRequest: + type: object + properties: + root: + type: string + description: 'The root. Must not be greater than 2048 characters.' + nullable: true + name: + type: string + description: 'The display name. Must not be greater than 255 characters.' + required: + - name + ClientChangeFilePermissionsRequest: + type: object + properties: + root: + type: string + description: 'The root. Must not be greater than 2048 characters.' + nullable: true + files: + type: array + description: 'File paths affected by the operation.' + items: + type: object + properties: + file: + type: string + description: 'Must not be greater than 2048 characters.' + mode: + type: string + description: 'Must match the regex /^[0-7]{3,4}$/.' + required: + - file + - mode + required: + - files + ClientPullRemoteFileRequest: + type: object + properties: + url: + type: string + description: 'The URL. Must be a valid URL. Must not be greater than 2048 characters.' + directory: + type: string + description: 'The directory path. Must not be greater than 2048 characters.' + nullable: true + filename: + type: string + description: 'The file name. Must not be greater than 255 characters.' + nullable: true + use_header: + type: boolean + description: 'The use header.' + foreground: + type: boolean + description: 'The foreground.' + required: + - url + ClientCreateServerScheduleRequest: + type: object + properties: + name: + type: string + description: 'The display name. Must not be greater than 191 characters.' + is_active: + type: boolean + description: 'Whether the resource is active.' + minute: + type: string + description: 'The minute.' + hour: + type: string + description: 'The hour.' + day_of_month: + type: string + description: 'The day of month.' + month: + type: string + description: 'The month.' + day_of_week: + type: string + description: 'The day of week.' + only_when_online: + type: boolean + description: 'Whether the schedule should run only when the server is online.' + required: + - name + - minute + - hour + - day_of_month + - month + - day_of_week + ClientUpdateServerScheduleRequest: + type: object + properties: + name: + type: string + description: 'The display name. Must not be greater than 191 characters.' + is_active: + type: boolean + description: 'Whether the resource is active.' + minute: + type: string + description: 'The minute.' + hour: + type: string + description: 'The hour.' + day_of_month: + type: string + description: 'The day of month.' + month: + type: string + description: 'The month.' + day_of_week: + type: string + description: 'The day of week.' + only_when_online: + type: boolean + description: 'Whether the schedule should run only when the server is online.' + required: + - name + - minute + - hour + - day_of_month + - month + - day_of_week + ClientCreateScheduleTaskRequest: + type: object + properties: + action: + type: string + description: 'The action to perform.' + enum: + - command + - power + - backup + payload: + type: string + description: 'The payload. This field is required unless action is in backup.' + nullable: true + time_offset: + type: integer + description: 'The delay before this task runs. Must be at least 0. Must not be greater than 900.' + sequence_id: + type: integer + description: 'The task execution order. Must be at least 1.' + continue_on_failure: + type: boolean + description: 'Whether the schedule continues when this task fails.' + required: + - action + - time_offset + ClientUpdateScheduleTaskRequest: + type: object + properties: + action: + type: string + description: 'The action to perform.' + enum: + - command + - power + - backup + payload: + type: string + description: 'The payload. This field is required unless action is in backup.' + nullable: true + time_offset: + type: integer + description: 'The delay before this task runs. Must be at least 0. Must not be greater than 900.' + sequence_id: + type: integer + description: 'The task execution order. Must be at least 1.' + continue_on_failure: + type: boolean + description: 'Whether the schedule continues when this task fails.' + required: + - action + - time_offset + ClientUpdateAllocationNotesRequest: + type: object + properties: + notes: + type: string + description: 'Notes for this resource. Must not be greater than 256 characters.' + nullable: true + ClientCreateServerSubuserRequest: + type: object + properties: + email: + type: string + description: 'The user email address. Must be a valid email address. Must be between 1 and 191 characters.' + permissions: + type: array + items: + anyOf: + - + type: string + enum: + - websocket.connect + - control.console + - control.start + - control.stop + - control.restart + - user.create + - user.read + - user.update + - user.delete + - file.create + - file.read + - file.read-content + - file.update + - file.delete + - file.archive + - file.sftp + - backup.create + - backup.read + - backup.delete + - backup.download + - backup.restore + - allocation.read + - allocation.create + - allocation.update + - allocation.delete + - startup.read + - startup.update + - startup.docker-image + - database.create + - database.read + - database.update + - database.delete + - database.view_password + - schedule.create + - schedule.read + - schedule.update + - schedule.delete + - settings.rename + - settings.reinstall + - activity.read + - + type: string + pattern: '^ext\.[a-z][a-z0-9-]{0,47}\.[a-z][a-z0-9-]{0,47}$' + description: 'A permission registered by an enabled extension.' + description: 'Permissions granted to the user.' + required: + - email + ClientUpdateServerSubuserRequest: + type: object + properties: + permissions: + type: array + items: + anyOf: + - + type: string + enum: + - websocket.connect + - control.console + - control.start + - control.stop + - control.restart + - user.create + - user.read + - user.update + - user.delete + - file.create + - file.read + - file.read-content + - file.update + - file.delete + - file.archive + - file.sftp + - backup.create + - backup.read + - backup.delete + - backup.download + - backup.restore + - allocation.read + - allocation.create + - allocation.update + - allocation.delete + - startup.read + - startup.update + - startup.docker-image + - database.create + - database.read + - database.update + - database.delete + - database.view_password + - schedule.create + - schedule.read + - schedule.update + - schedule.delete + - settings.rename + - settings.reinstall + - activity.read + - + type: string + pattern: '^ext\.[a-z][a-z0-9-]{0,47}\.[a-z][a-z0-9-]{0,47}$' + description: 'A permission registered by an enabled extension.' + description: 'Permissions granted to the user.' + ClientCreateServerBackupRequest: + type: object + properties: + name: + type: string + description: 'The display name. Must not be greater than 191 characters.' + nullable: true + is_locked: + type: boolean + description: 'Whether the resource is locked.' + nullable: true + ignored: + type: string + description: 'Whether this item should be ignored.' + nullable: true + ClientRestoreServerBackupRequest: + type: object + properties: + truncate: + type: boolean + description: 'The truncate.' + required: + - truncate + ClientUpdateStartupVariableRequest: + type: object + properties: + key: + type: string + description: 'The key.' + value: + type: string + description: 'The value.' + required: + - key + ClientRenameServerRequest: + type: object + properties: + name: + type: string + description: 'The display name. Must be at least 1 character. Must not be greater than 191 characters.' + description: + type: string + description: 'A description for this resource.' + nullable: true + required: + - name + ClientSetServerDockerImageRequest: + type: object + properties: + docker_image: + type: string + description: 'The Docker image to use.' + required: + - docker_image + AdminListActivityFilterOptionsResponseBody: + type: object + properties: + data: + type: object + properties: + events: + type: array + items: + type: string + users: + type: array + items: + type: object + properties: + id: + type: integer + username: + type: string + email: + type: string + AdminListExtensionsResponseBody: + type: object + properties: + data: + type: array + items: + type: object + properties: + id: + type: string + name: + type: string + version: + type: string + description: + type: string + nullable: true + author: + type: string + nullable: true + provider: + type: string + nullable: true + icon: + type: string + nullable: true + icon_url: + type: string + nullable: true + has_ui: + type: boolean + ui_entry: + type: string + nullable: true + ui_mode: + type: string + frontend_entry: + type: string + nullable: true + installed: + type: boolean + enabled: + type: boolean + state: + type: string + error: + type: string + nullable: true + error_phase: + type: string + nullable: true + description: 'Where the last failure happened: register, boot or compatibility while loading, manifest for an invalid package, or a runtime phase such as event, action, command, schedule or runtime.' + errored_at: + type: string + nullable: true + description: 'When the last failure was recorded.' + required: + - description + - author + - provider + - icon + - icon_url + - ui_entry + - frontend_entry + - error_phase + - errored_at + meta: + type: object + properties: + enabled: + type: boolean + directory: + type: string + AdminInstallExtensionResponseBody: + type: object + properties: + data: + type: object + properties: + id: + type: string + name: + type: string + version: + type: string + description: + type: string + nullable: true + author: + type: string + nullable: true + provider: + type: string + nullable: true + icon: + type: string + nullable: true + icon_url: + type: string + nullable: true + has_ui: + type: boolean + ui_entry: + type: string + nullable: true + ui_mode: + type: string + frontend_entry: + type: string + nullable: true + installed: + type: boolean + enabled: + type: boolean + state: + type: string + error: + type: string + nullable: true + error_phase: + type: string + nullable: true + description: 'Where the last failure happened: register, boot or compatibility while loading, manifest for an invalid package, or a runtime phase such as event, action, command, schedule or runtime.' + errored_at: + type: string + nullable: true + description: 'When the last failure was recorded.' + required: + - description + - author + - provider + - icon + - icon_url + - ui_entry + - frontend_entry + - error_phase + - errored_at + AdminGetExtensionSettingsResponseBody: + type: object + required: + - data + properties: + data: + type: object + required: + - registered + - schema + properties: + registered: + type: boolean + schema: + type: array + items: + $ref: '#/components/schemas/AdminExtensionSettingField' + AdminUpdateExtensionSettingsResponseBody: + type: object + required: + - data + properties: + data: + type: object + required: + - registered + - schema + properties: + registered: + type: boolean + schema: + type: array + items: + $ref: '#/components/schemas/AdminExtensionSettingField' + AdminGetExtensionIcon200ImagePngResponseBody: + type: string + format: binary + description: 'Icon image bytes.' + AdminGetExtensionIcon200ImageJpegResponseBody: + type: string + format: binary + description: 'Icon image bytes.' + AdminGetExtensionIcon200ImageWebpResponseBody: + type: string + format: binary + description: 'Icon image bytes.' + AdminUploadExtensionSettingFileResponseBody: + type: object + required: + - data + properties: + data: + type: object + required: + - registered + - schema + properties: + registered: + type: boolean + schema: + type: array + items: + $ref: '#/components/schemas/AdminExtensionSettingField' + AdminClearExtensionSettingFileResponseBody: + type: object + required: + - data + properties: + data: + type: object + required: + - registered + - schema + properties: + registered: + type: boolean + schema: + type: array + items: + $ref: '#/components/schemas/AdminExtensionSettingField' + AdminEnableExtensionResponseBody: + type: object + properties: + data: + type: object + properties: + id: + type: string + name: + type: string + version: + type: string + description: + type: string + nullable: true + author: + type: string + nullable: true + provider: + type: string + nullable: true + icon: + type: string + nullable: true + icon_url: + type: string + nullable: true + has_ui: + type: boolean + ui_entry: + type: string + nullable: true + ui_mode: + type: string + frontend_entry: + type: string + nullable: true + installed: + type: boolean + enabled: + type: boolean + state: + type: string + error: + type: string + nullable: true + error_phase: + type: string + nullable: true + description: 'Where the last failure happened: register, boot or compatibility while loading, manifest for an invalid package, or a runtime phase such as event, action, command, schedule or runtime.' + errored_at: + type: string + nullable: true + description: 'When the last failure was recorded.' + required: + - description + - author + - provider + - icon + - icon_url + - ui_entry + - frontend_entry + - error_phase + - errored_at + AdminDisableExtensionResponseBody: + type: object + properties: + data: + type: object + properties: + id: + type: string + name: + type: string + version: + type: string + description: + type: string + nullable: true + author: + type: string + nullable: true + provider: + type: string + nullable: true + icon: + type: string + nullable: true + icon_url: + type: string + nullable: true + has_ui: + type: boolean + ui_entry: + type: string + nullable: true + ui_mode: + type: string + frontend_entry: + type: string + nullable: true + installed: + type: boolean + enabled: + type: boolean + state: + type: string + error: + type: string + nullable: true + error_phase: + type: string + nullable: true + description: 'Where the last failure happened: register, boot or compatibility while loading, manifest for an invalid package, or a runtime phase such as event, action, command, schedule or runtime.' + errored_at: + type: string + nullable: true + description: 'When the last failure was recorded.' + required: + - description + - author + - provider + - icon + - icon_url + - ui_entry + - frontend_entry + - error_phase + - errored_at + AdminListNodeAllocationIPsResponseBody: + type: object + properties: + data: + type: array + items: + type: string + AdminListEggCatalogResponseBody: + type: object + properties: + data: + type: array + description: 'The available catalog entries.' + items: + type: object + properties: + id: + type: string + description: 'The catalog identifier used to import this egg.' + name: + type: string + description: 'The egg name.' + description: + type: string + description: 'The egg description, or an empty string.' + category: + type: string + description: 'The catalog category, or an empty string.' + source_url: + type: string + description: 'The egg page on eggs.pterodactyl.io.' + required: + - id + - name + - description + - category + - source_url + required: + - data + AdminExportEggResponseBody: + type: string + description: 'Raw egg export JSON document returned as a text download.' + ApplicationGetNodeConfigurationResponseBody: + type: object + properties: + debug: + type: boolean + uuid: + type: string + token_id: + type: string + token: + type: string + api: + type: object + properties: + host: + type: string + port: + type: integer + ssl: + type: object + properties: + enabled: + type: boolean + cert: + type: string + key: + type: string + upload_limit: + type: integer + system: + type: object + properties: + data: + type: string + sftp: + type: object + properties: + bind_port: + type: integer + allowed_mounts: + type: array + items: + type: string + remote: + type: string + ClientGetExtensionJobProgressResponseBody: + type: object + properties: + data: + type: object + properties: + id: + type: string + description: 'Progress job UUID.' + extension: + type: string + description: 'Extension identifier.' + status: + type: string + description: 'Job state.' + enum: + - running + - completed + - failed + percent: + type: integer + description: 'Progress from zero to one hundred.' + message: + type: string + description: 'Current progress message.' + sequence: + type: integer + description: 'Monotonically increasing update sequence.' + updated_at: + type: string + description: 'Update timestamp in ISO 8601 format.' + required: + - id + - extension + - status + - percent + - message + - sequence + - updated_at + description: 'Latest progress snapshot.' + required: + - data + ClientListAccountActivityFilterOptionsResponseBody: + type: object + properties: + data: + type: object + properties: + events: + type: array + items: + type: string + users: + type: array + items: + type: object + properties: + id: + type: integer + username: + type: string + email: + type: string + ClientGetWebsocketCredentialsResponseBody: + type: object + properties: + data: + type: object + properties: + token: + type: string + socket: + type: string + ClientGetServerExtensionJobProgressResponseBody: + type: object + properties: + data: + type: object + properties: + id: + type: string + description: 'Progress job UUID.' + extension: + type: string + description: 'Extension identifier.' + status: + type: string + description: 'Job state.' + enum: + - running + - completed + - failed + percent: + type: integer + description: 'Progress from zero to one hundred.' + message: + type: string + description: 'Current progress message.' + sequence: + type: integer + description: 'Monotonically increasing update sequence.' + updated_at: + type: string + description: 'Update timestamp in ISO 8601 format.' + required: + - id + - extension + - status + - percent + - message + - sequence + - updated_at + description: 'Latest progress snapshot.' + required: + - data + ClientListServerActivityFilterOptionsResponseBody: + type: object + properties: + data: + type: object + properties: + events: + type: array + items: + type: string + users: + type: array + items: + type: object + properties: + id: + type: integer + username: + type: string + email: + type: string + ClientGetFileContentsResponseBody: + type: string + AdminListActivityFilterEventQueryParameter: + type: string + description: 'Filter activity by event name.' + AdminListActivityFilterIpQueryParameter: + type: string + description: 'Filter activity by originating IP address.' + AdminListActivityFilterUserQueryParameter: + type: string + description: 'Filter activity by the username or email of the user that performed it.' + AdminListActivityFilterUserIdQueryParameter: + type: integer + description: 'Filter activity to a single user by ID. Preferred over filter[user] when the exact user is known.' + AdminListActivityFilterEventNameQueryParameter: + type: string + description: 'Filter activity to one exact event name. Preferred over filter[event], which matches substrings.' + AdminListActivitySortQueryParameter: + type: string + description: 'Sort activity by timestamp. Prefix with "-" for descending order.' + enum: + - timestamp + - '-timestamp' + AdminListActivityPageQueryParameter: + type: integer + description: 'Page number to return.' + AdminListActivityPerPageQueryParameter: + type: integer + description: 'Results to return per page. The maximum is 100.' + AdminListActivityIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports actor.' + AdminGetExtensionSettingsExtensionPathParameter: + type: string + AdminGetExtensionIconExtensionPathParameter: + type: string + AdminUploadExtensionSettingFileExtensionPathParameter: + type: string + AdminUploadExtensionSettingFileInputPathParameter: + type: string + AdminEnableExtensionExtensionPathParameter: + type: string + AdminDisableExtensionExtensionPathParameter: + type: string + AdminRemoveExtensionExtensionPathParameter: + type: string + AdminListUsersPageQueryParameter: + type: integer + description: 'Page number to retrieve.' + AdminListUsersPerPageQueryParameter: + type: integer + description: 'Results to return per page.' + AdminListUsersFilterEmailQueryParameter: + type: string + description: 'Filter users by email address.' + AdminListUsersFilterUuidQueryParameter: + type: string + description: 'Filter users by UUID.' + AdminListUsersFilterUsernameQueryParameter: + type: string + description: 'Filter users by username.' + AdminListUsersFilterExternalIdQueryParameter: + type: string + description: 'Filter users by external identifier.' + AdminListUsersFilterSearchQueryParameter: + type: string + description: 'Search users by username, email, or UUID.' + AdminListUsersSortQueryParameter: + type: string + description: 'Sort users by id, uuid, email, username, or creation date. Prefix with a hyphen for descending order.' + AdminGetUserByExternalIDExternalIdPathParameter: + type: string + AdminGetUserIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports servers.' + AdminGetUserUserIdPathParameter: + type: integer + AdminDisableUserTwoFactorAuthenticationUserIdPathParameter: + type: integer + AdminGetNodeSystemInformationNodeIdPathParameter: + type: integer + AdminCreateNodeDeployTokenNodeIdPathParameter: + type: integer + AdminGetNodeUtilizationNodeIdPathParameter: + type: integer + AdminListServerMountsServerAdminIdentifierPathParameter: + type: string + AdminDetachServerMountServerAdminIdentifierPathParameter: + type: string + AdminDetachServerMountMountIdPathParameter: + type: integer + AdminListServersFilterWildcardQueryParameter: + type: string + description: 'Search servers by UUID, name, owner, node, allocation, or external identifier.' + AdminListServersFilterUuidQueryParameter: + type: string + description: 'Filter servers by UUID.' + AdminListServersFilterUuidShortQueryParameter: + type: string + description: 'Filter servers by short UUID identifier.' + AdminListServersFilterNameQueryParameter: + type: string + description: 'Filter servers by name.' + AdminListServersFilterExternalIdQueryParameter: + type: string + description: 'Filter servers by external identifier.' + AdminListServersFilterImageQueryParameter: + type: string + description: 'Filter servers by Docker image.' + AdminListServersFilterNodeIdQueryParameter: + type: integer + description: 'Filter servers by node ID.' + AdminListServersFilterOwnerIdQueryParameter: + type: integer + description: 'Filter servers by owner user ID.' + AdminListServersSortQueryParameter: + type: string + description: 'Sort servers by id, uuid, name, or creation time. Prefix with a hyphen for descending order.' + AdminListServersIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports allocation, allocations, user, subusers, egg, variables, location, node, and databases.' + AdminListServersPageQueryParameter: + type: integer + description: 'Page number to retrieve.' + AdminListServersPerPageQueryParameter: + type: integer + description: 'Results to return per page.' + AdminGetServerByExternalIDExternalIdPathParameter: + type: string + AdminGetServerIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports allocation, allocations, user, subusers, egg, variables, location, node, and databases.' + AdminGetServerServerAdminIdentifierPathParameter: + type: string + AdminUpdateServerDetailsServerAdminIdentifierPathParameter: + type: string + AdminUpdateServerBuildServerAdminIdentifierPathParameter: + type: string + AdminUpdateServerStartupServerAdminIdentifierPathParameter: + type: string + AdminUpdateServerSuspensionServerAdminIdentifierPathParameter: + type: string + AdminReinstallServerServerAdminIdentifierPathParameter: + type: string + AdminRebuildServerServerAdminIdentifierPathParameter: + type: string + AdminGetServerTransferProgressServerAdminIdentifierPathParameter: + type: string + AdminTransferServerServerAdminIdentifierPathParameter: + type: string + AdminToggleServerInstallStateServerAdminIdentifierPathParameter: + type: string + AdminForceDeleteServerServerAdminIdentifierPathParameter: + type: string + AdminListServerDatabasesIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports "password".' + enum: + - password + AdminListServerDatabasesServerAdminIdentifierPathParameter: + type: string + AdminGetServerDatabaseIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports "password".' + enum: + - password + AdminGetServerDatabaseServerAdminIdentifierPathParameter: + type: string + AdminGetServerDatabaseDatabaseIdPathParameter: + type: string + AdminRotateServerDatabasePasswordServerAdminIdentifierPathParameter: + type: string + AdminRotateServerDatabasePasswordDatabaseIdPathParameter: + type: string + AdminListServerBackupsFilterUuidQueryParameter: + type: string + description: 'Filter backups by UUID.' + AdminListServerBackupsFilterNameQueryParameter: + type: string + description: 'Filter backups by name.' + AdminListServerBackupsSortQueryParameter: + type: string + description: 'Sort backups by id, bytes, or created_at. Prefix with a hyphen for descending order.' + AdminListServerBackupsPerPageQueryParameter: + type: integer + description: 'Results to return per page.' + AdminListServerBackupsServerAdminIdentifierPathParameter: + type: string + AdminToggleServerBackupLockServerAdminIdentifierPathParameter: + type: string + AdminToggleServerBackupLockBackupUuidPathParameter: + type: string + AdminListNodesFilterUuidQueryParameter: + type: string + description: 'Filter nodes by UUID.' + AdminListNodesFilterNameQueryParameter: + type: string + description: 'Filter nodes by name.' + AdminListNodesFilterFqdnQueryParameter: + type: string + description: 'Filter nodes by FQDN.' + AdminListNodesSortQueryParameter: + type: string + description: 'Sort nodes by id, uuid, name, memory, disk, or creation time. Prefix with a hyphen for descending order.' + AdminListNodesPageQueryParameter: + type: integer + description: 'Page number to return.' + AdminListNodesPerPageQueryParameter: + type: integer + description: 'Results to return per page.' + AdminListNodesIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports "allocations", "location", and "servers".' + enum: + - allocations + - location + - servers + - 'allocations,location' + - 'location,servers' + AdminGetNodeIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports "allocations", "location", and "servers".' + enum: + - allocations + - location + - servers + - 'allocations,location' + - 'location,servers' + AdminGetNodeNodeIdPathParameter: + type: integer + AdminGetNodeConfigurationNodeIdPathParameter: + type: integer + AdminSyncNodeGameTagsNodeIdPathParameter: + type: integer + AdminSyncNodeDeploymentTagsNodeIdPathParameter: + type: integer + AdminListNodeAllocationsFilterIpQueryParameter: + type: string + description: 'Filter allocations by exact IP address.' + AdminListNodeAllocationsFilterPortQueryParameter: + type: integer + description: 'Filter allocations by exact port.' + AdminListNodeAllocationsFilterIpAliasQueryParameter: + type: string + description: 'Filter allocations by IP alias.' + AdminListNodeAllocationsFilterServerIdQueryParameter: + type: string + description: 'Filter allocations by server ID, or pass an empty value to return unassigned allocations.' + AdminListNodeAllocationsSortQueryParameter: + type: string + description: 'Sort allocations by id, ip, or port. Prefix with a hyphen for descending order.' + AdminListNodeAllocationsPageQueryParameter: + type: integer + description: 'Page number to return.' + AdminListNodeAllocationsPerPageQueryParameter: + type: integer + description: 'Results to return per page.' + AdminListNodeAllocationsNodeIdPathParameter: + type: integer + AdminListNodeAllocationIPsNodeIdPathParameter: + type: integer + AdminListAvailableNodeAllocationsFilterIpQueryParameter: + type: string + description: 'Filter allocations by exact IP address.' + AdminListAvailableNodeAllocationsFilterPortQueryParameter: + type: integer + description: 'Filter allocations by exact port.' + AdminListAvailableNodeAllocationsFilterIpAliasQueryParameter: + type: string + description: 'Filter allocations by IP alias.' + AdminListAvailableNodeAllocationsSortQueryParameter: + type: string + description: 'Sort allocations by id, ip, or port. Prefix with a hyphen for descending order.' + AdminListAvailableNodeAllocationsPerPageQueryParameter: + type: integer + description: 'Results to return per page.' + AdminListAvailableNodeAllocationsNodeIdPathParameter: + type: integer + AdminDeleteNodeAllocationIPBlockNodeIdPathParameter: + type: integer + AdminUpdateNodeAllocationNodeIdPathParameter: + type: integer + AdminUpdateNodeAllocationAllocationIdPathParameter: + type: integer + AdminListLocationsFilterShortQueryParameter: + type: string + description: 'Filter locations by short identifier.' + AdminListLocationsFilterLongQueryParameter: + type: string + description: 'Filter locations by long description.' + AdminListLocationsSortQueryParameter: + type: string + description: 'Sort locations by ID, short identifier, or creation date. Prefix with a hyphen for descending order.' + AdminListLocationsPageQueryParameter: + type: integer + description: 'Page number to return.' + AdminListLocationsPerPageQueryParameter: + type: integer + description: 'Results to return per page.' + AdminGetLocationIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports "nodes" and "servers".' + enum: + - nodes + - servers + - 'nodes,servers' + AdminGetLocationLocationIdPathParameter: + type: integer + AdminListEligibleLocationNodesLocationIdPathParameter: + type: integer + AdminListMountsFilterNameQueryParameter: + type: string + description: 'Filter mounts by name.' + AdminListMountsSortQueryParameter: + type: string + description: 'Sort mounts by id or name. Prefix with a hyphen for descending order.' + AdminListMountsPageQueryParameter: + type: integer + description: 'Page number to return.' + AdminListMountsPerPageQueryParameter: + type: integer + description: 'Results to return per page.' + AdminListMountsIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports "eggs", "nodes", and "servers".' + enum: + - eggs + - nodes + - servers + - 'eggs,nodes' + - 'eggs,nodes,servers' + AdminGetMountIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports "eggs", "nodes", and "servers".' + enum: + - eggs + - nodes + - servers + - 'eggs,nodes' + - 'eggs,nodes,servers' + AdminGetMountMountIdPathParameter: + type: integer + AdminAttachEggsToMountIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports "eggs", "nodes", and "servers".' + enum: + - eggs + - nodes + - servers + - 'eggs,nodes' + - 'eggs,nodes,servers' + AdminAttachEggsToMountMountIdPathParameter: + type: integer + AdminDetachEggFromMountMountIdPathParameter: + type: integer + AdminDetachEggFromMountEggIdPathParameter: + type: integer + AdminAttachNodesToMountIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports "eggs", "nodes", and "servers".' + enum: + - eggs + - nodes + - servers + - 'eggs,nodes' + - 'eggs,nodes,servers' + AdminAttachNodesToMountMountIdPathParameter: + type: integer + AdminDetachNodeFromMountMountIdPathParameter: + type: integer + AdminDetachNodeFromMountNodeIdPathParameter: + type: integer + AdminListEggVariablesIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Unknown includes are ignored.' + AdminListEggVariablesEggIdPathParameter: + type: integer + AdminReorderEggVariablesEggIdPathParameter: + type: integer + AdminUpdateEggVariableEggIdPathParameter: + type: integer + AdminUpdateEggVariableVariableIdPathParameter: + type: integer + AdminGetEggInstallScriptEggIdPathParameter: + type: integer + AdminExportEggEggIdPathParameter: + type: integer + AdminUpdateEggFromImportEggIdPathParameter: + type: integer + AdminSyncEggTagsEggIdPathParameter: + type: integer + AdminListEggsFilterNameQueryParameter: + type: string + description: 'Filter eggs by name.' + AdminListEggsSortQueryParameter: + type: string + description: 'Sort eggs by id or name. Prefix with a hyphen for descending order.' + AdminListEggsPageQueryParameter: + type: integer + description: 'Page number to return.' + AdminListEggsPerPageQueryParameter: + type: integer + description: 'Results to return per page.' + AdminListEggsIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include: variables, tags, servers.' + enum: + - variables + - tags + - servers + - 'variables,tags' + - 'variables,servers' + - 'tags,servers' + - 'variables,tags,servers' + AdminGetEggIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include: variables, tags, servers.' + enum: + - variables + - tags + - servers + - 'variables,tags' + - 'variables,servers' + - 'tags,servers' + - 'variables,tags,servers' + AdminGetEggEggIdPathParameter: + type: integer + AdminListTagsFilterNameQueryParameter: + type: string + description: 'Filter tags by name.' + AdminListTagsFilterSlugQueryParameter: + type: string + description: 'Filter tags by slug.' + AdminListTagsSortQueryParameter: + type: string + description: 'Sort tags by id, name, or slug. Prefix with a hyphen for descending order.' + AdminListTagsPageQueryParameter: + type: integer + description: 'Page number to return.' + AdminListTagsPerPageQueryParameter: + type: integer + description: 'Results to return per page.' + AdminListTagsIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports "eggs" and "nodes".' + enum: + - eggs + - nodes + - 'eggs,nodes' + AdminGetTagIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports "eggs" and "nodes".' + enum: + - eggs + - nodes + - 'eggs,nodes' + AdminGetTagTagIdPathParameter: + type: integer + AdminListDatabaseHostsPageQueryParameter: + type: integer + description: 'Page number to retrieve.' + AdminListDatabaseHostsPerPageQueryParameter: + type: integer + description: 'Results to return per page.' + AdminListDatabaseHostsFilterNameQueryParameter: + type: string + description: 'Filter hosts by name.' + AdminListDatabaseHostsFilterHostQueryParameter: + type: string + description: 'Filter hosts by address or hostname.' + AdminListDatabaseHostsSortQueryParameter: + type: string + description: 'Sort hosts by ID, name, or creation date. Prefix with a hyphen for descending order.' + AdminListDatabaseHostsIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports node and databases.' + AdminGetDatabaseHostIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports node and databases.' + AdminGetDatabaseHostDatabaseHostIdPathParameter: + type: string + AdminListDatabaseHostDatabasesPageQueryParameter: + type: integer + description: 'Page number to retrieve.' + AdminListDatabaseHostDatabasesPerPageQueryParameter: + type: integer + description: 'Results to return per page.' + AdminListDatabaseHostDatabasesDatabaseHostIdPathParameter: + type: string + AdminListAPIKeysFilterMemoQueryParameter: + type: string + description: 'Filter keys by memo.' + AdminListAPIKeysFilterIdentifierQueryParameter: + type: string + description: 'Filter keys by identifier.' + AdminListAPIKeysSortQueryParameter: + type: string + description: 'Sort keys by ID, memo, or creation date. Prefix with a hyphen for descending order.' + AdminListAPIKeysPageQueryParameter: + type: integer + description: 'Page number to retrieve.' + AdminListAPIKeysPerPageQueryParameter: + type: integer + description: 'Results to return per page.' + AdminGetAPIKeyIdentifierPathParameter: + type: string + ApplicationListUsersPerPageQueryParameter: + type: integer + description: 'Number of users to return per page, up to 100.' + ApplicationListUsersFilterEmailQueryParameter: + type: string + description: 'Filter users by email address.' + ApplicationListUsersFilterUuidQueryParameter: + type: string + description: 'Filter users by UUID.' + ApplicationListUsersFilterUsernameQueryParameter: + type: string + description: 'Filter users by username.' + ApplicationListUsersFilterExternalIdQueryParameter: + type: string + description: 'Filter users by external identifier.' + ApplicationListUsersSortQueryParameter: + type: string + description: 'Sort users by id or uuid. Prefix with "-" for descending order.' + enum: + - id + - '-id' + - uuid + - '-uuid' + ApplicationListUsersIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports "servers" when the key can read servers.' + enum: + - servers + ApplicationGetUserIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports "servers" when the key can read servers.' + enum: + - servers + ApplicationGetUserUserIdPathParameter: + type: integer + ApplicationGetUserByExternalIDExternalIdPathParameter: + type: string + ApplicationListNodesPerPageQueryParameter: + type: integer + description: 'Number of nodes to return per page, up to 100.' + ApplicationListNodesFilterUuidQueryParameter: + type: string + description: 'Filter nodes by UUID.' + ApplicationListNodesFilterNameQueryParameter: + type: string + description: 'Filter nodes by name.' + ApplicationListNodesFilterFqdnQueryParameter: + type: string + description: 'Filter nodes by fully qualified domain name.' + ApplicationListNodesFilterDaemonTokenIdQueryParameter: + type: string + description: 'Filter nodes by daemon token identifier.' + ApplicationListNodesSortQueryParameter: + type: string + description: 'Sort nodes by id, uuid, memory, or disk. Prefix with "-" for descending order.' + enum: + - id + - '-id' + - uuid + - '-uuid' + - memory + - '-memory' + - disk + - '-disk' + ApplicationListNodesIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports "allocations", "location", and "servers" when the key can read those resources.' + enum: + - allocations + - location + - servers + - 'location,allocations' + ApplicationListDeployableNodesMemoryQueryParameter: + type: integer + description: 'Memory required for the deployment, in megabytes.' + ApplicationListDeployableNodesDiskQueryParameter: + type: integer + description: 'Disk required for the deployment, in megabytes.' + ApplicationListDeployableNodesLocationIdsQueryParameter: + type: array + description: 'Restrict results to these location IDs.' + items: + type: integer + ApplicationListDeployableNodesPageQueryParameter: + type: integer + description: 'Page number to return. When omitted, all viable nodes are returned without pagination metadata.' + ApplicationListDeployableNodesPerPageQueryParameter: + type: integer + description: 'Number of nodes to return per page when page is supplied, up to 100.' + ApplicationGetNodeIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports "allocations", "location", and "servers" when the key can read those resources.' + enum: + - allocations + - location + - servers + - 'location,allocations' + ApplicationGetNodeNodeIdPathParameter: + type: integer + ApplicationGetNodeConfigurationNodeIdPathParameter: + type: integer + ApplicationListNodeAllocationsPerPageQueryParameter: + type: integer + description: 'Number of allocations to return per page, up to 100.' + ApplicationListNodeAllocationsFilterIpQueryParameter: + type: string + description: 'Filter allocations by exact IP address.' + ApplicationListNodeAllocationsFilterPortQueryParameter: + type: integer + description: 'Filter allocations by exact port.' + ApplicationListNodeAllocationsFilterIpAliasQueryParameter: + type: string + description: 'Filter allocations by IP alias.' + ApplicationListNodeAllocationsFilterServerIdQueryParameter: + type: string + description: 'Filter allocations by assigned server ID. Empty or non-numeric values return unassigned allocations.' + ApplicationListNodeAllocationsIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports "node" and "server" when the key can read those resources.' + enum: + - node + - server + - 'node,server' + ApplicationListNodeAllocationsNodeIdPathParameter: + type: integer + ApplicationDeleteNodeAllocationNodeIdPathParameter: + type: integer + ApplicationDeleteNodeAllocationAllocationIdPathParameter: + type: integer + ApplicationListLocationsPerPageQueryParameter: + type: integer + description: 'Number of locations to return per page, up to 100.' + ApplicationListLocationsFilterShortQueryParameter: + type: string + description: 'Filter locations by short identifier.' + ApplicationListLocationsFilterLongQueryParameter: + type: string + description: 'Filter locations by description.' + ApplicationListLocationsSortQueryParameter: + type: string + description: 'Sort locations by id. Prefix with "-" for descending order.' + enum: + - id + - '-id' + ApplicationListLocationsIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports "nodes" and "servers" when the key can read those resources.' + enum: + - nodes + - servers + - 'nodes,servers' + ApplicationGetLocationIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports "nodes" and "servers" when the key can read those resources.' + enum: + - nodes + - servers + - 'nodes,servers' + ApplicationGetLocationLocationIdPathParameter: + type: integer + ApplicationListEggsPerPageQueryParameter: + type: integer + description: 'Number of eggs to return per page, up to 100.' + ApplicationListEggsFilterNameQueryParameter: + type: string + description: 'Filter eggs by name.' + ApplicationListEggsFilterTagQueryParameter: + type: string + description: 'Filter eggs by tag slug. Separate several slugs with commas to return eggs that carry any of them.' + ApplicationListEggsSortQueryParameter: + type: string + description: 'Sort eggs by id or name. Prefix with "-" for descending order.' + enum: + - id + - '-id' + - name + - '-name' + ApplicationListEggsIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports "servers", "config", "script", "variables", and "tags" when the key can read those resources.' + enum: + - servers + - config + - script + - variables + - tags + ApplicationGetEggIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports "servers", "config", "script", "variables", and "tags" when the key can read those resources.' + enum: + - servers + - config + - script + - variables + - tags + ApplicationGetEggEggIdPathParameter: + type: integer + ApplicationListTagsPerPageQueryParameter: + type: integer + description: 'Number of tags to return per page, up to 100.' + ApplicationListTagsFilterNameQueryParameter: + type: string + description: 'Filter tags by name.' + ApplicationListTagsFilterSlugQueryParameter: + type: string + description: 'Filter tags by slug.' + ApplicationListTagsSortQueryParameter: + type: string + description: 'Sort tags by id, name, or slug. Prefix with "-" for descending order.' + enum: + - id + - '-id' + - name + - '-name' + - slug + - '-slug' + ApplicationListTagsIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports "eggs" and "nodes" when the key can read those resources.' + enum: + - eggs + - nodes + - 'eggs,nodes' + ApplicationGetTagIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports "eggs" and "nodes" when the key can read those resources.' + enum: + - eggs + - nodes + - 'eggs,nodes' + ApplicationGetTagTagIdPathParameter: + type: integer + ApplicationListServersPerPageQueryParameter: + type: integer + description: 'Number of servers to return per page, up to 100.' + ApplicationListServersFilterUuidQueryParameter: + type: string + description: 'Filter servers by UUID.' + ApplicationListServersFilterUuidShortQueryParameter: + type: string + description: 'Filter servers by short UUID identifier.' + ApplicationListServersFilterNameQueryParameter: + type: string + description: 'Filter servers by name.' + ApplicationListServersFilterDescriptionQueryParameter: + type: string + description: 'Filter servers by description.' + ApplicationListServersFilterImageQueryParameter: + type: string + description: 'Filter servers by Docker image.' + ApplicationListServersFilterExternalIdQueryParameter: + type: string + description: 'Filter servers by external identifier.' + ApplicationListServersSearchQueryParameter: + type: string + description: 'Search term accepted by the list request. Must not exceed 100 characters.' + ApplicationListServersSortQueryParameter: + type: string + description: 'Sort servers by id or uuid. Prefix with "-" for descending order.' + enum: + - id + - '-id' + - uuid + - '-uuid' + ApplicationListServersIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports "allocations", "user", "subusers", "egg", "variables", "location", "node", "databases", and "transfer" when the key can read those resources.' + ApplicationGetServerIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports "allocations", "user", "subusers", "egg", "variables", "location", "node", "databases", and "transfer" when the key can read those resources.' + ApplicationGetServerServerIdPathParameter: + type: integer + ApplicationGetServerByExternalIDExternalIdPathParameter: + type: string + ApplicationUpdateServerDetailsServerIdPathParameter: + type: integer + ApplicationUpdateServerBuildServerIdPathParameter: + type: integer + ApplicationUpdateServerStartupServerIdPathParameter: + type: integer + ApplicationSuspendServerServerIdPathParameter: + type: integer + ApplicationUnsuspendServerServerIdPathParameter: + type: integer + ApplicationReinstallServerServerIdPathParameter: + type: integer + ApplicationDeleteServerServerIdPathParameter: + type: integer + ApplicationDeleteServerForcePathParameter: + type: string + ApplicationListServerDatabasesIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports "password" and "host" when the key can read database hosts.' + enum: + - password + - host + - 'password,host' + ApplicationListServerDatabasesServerIdPathParameter: + type: integer + ApplicationGetServerDatabaseIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports "password" and "host" when the key can read database hosts.' + enum: + - password + - host + - 'password,host' + ApplicationGetServerDatabaseServerIdPathParameter: + type: integer + ApplicationGetServerDatabaseDatabaseIdPathParameter: + type: string + ApplicationResetServerDatabasePasswordServerIdPathParameter: + type: integer + ApplicationResetServerDatabasePasswordDatabaseIdPathParameter: + type: string + ClientListClientServersPageQueryParameter: + type: integer + description: 'Page number to return.' + ClientListClientServersPerPageQueryParameter: + type: integer + description: 'Number of servers to return per page. The maximum is 100.' + ClientListClientServersTypeQueryParameter: + type: string + description: 'Scope of servers to return. "owner" returns owned servers, "admin" returns admin-accessible servers excluding owned or subuser servers, and "admin-all" returns all servers for root administrators.' + enum: + - owner + - admin + - admin-all + ClientListClientServersFilterUuidQueryParameter: + type: string + description: 'Filter servers by UUID.' + ClientListClientServersFilterNameQueryParameter: + type: string + description: 'Filter servers by name.' + ClientListClientServersFilterDescriptionQueryParameter: + type: string + description: 'Filter servers by description.' + ClientListClientServersFilterExternalIdQueryParameter: + type: string + description: 'Filter servers by external identifier.' + ClientListClientServersFilterWildcardQueryParameter: + type: string + description: 'Search across server name, UUID, short UUID, external identifier, or allocation address and port.' + ClientGetExtensionJobProgressExtensionPathParameter: + type: string + ClientGetExtensionJobProgressJobPathParameter: + type: string + ClientListAccountActivityPageQueryParameter: + type: integer + description: 'Page number to retrieve.' + ClientListAccountActivityPerPageQueryParameter: + type: integer + description: 'Number of activity log entries to return per page. The maximum is 100.' + ClientListAccountActivityFilterEventQueryParameter: + type: string + description: 'Filter activity by event name.' + ClientListAccountActivityFilterUserQueryParameter: + type: string + description: 'Filter activity by the username or email of the user that performed it.' + ClientListAccountActivityFilterUserIdQueryParameter: + type: integer + description: 'Filter activity to a single user by ID. Preferred over filter[user] when the exact user is known.' + ClientListAccountActivityFilterEventNameQueryParameter: + type: string + description: 'Filter activity to one exact event name. Preferred over filter[event], which matches substrings.' + ClientListAccountActivitySortQueryParameter: + type: string + description: 'Sort activity by timestamp. Prefix with "-" for descending order.' + enum: + - timestamp + - '-timestamp' + ClientListAccountActivityIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports actor.' + ClientDeleteAccountAPIKeyIdentifierPathParameter: + type: string + ClientGetServerServerUuidPathParameter: + type: string + ClientGetWebsocketCredentialsServerUuidPathParameter: + type: string + ClientGetServerResourcesServerUuidPathParameter: + type: string + ClientGetServerLogsLinesQueryParameter: + type: integer + description: 'Number of lines to return. Defaults to the maximum of 100.' + ClientGetServerLogsServerUuidPathParameter: + type: string + ClientGetServerExtensionJobProgressServerUuidPathParameter: + type: string + ClientGetServerExtensionJobProgressExtensionPathParameter: + type: string + ClientGetServerExtensionJobProgressJobPathParameter: + type: string + ClientListServerActivityPageQueryParameter: + type: integer + description: 'Page number to retrieve.' + ClientListServerActivityPerPageQueryParameter: + type: integer + description: 'Number of activity log entries to return per page. The maximum is 100.' + ClientListServerActivityFilterEventQueryParameter: + type: string + description: 'Filter activity by event name.' + ClientListServerActivityFilterUserQueryParameter: + type: string + description: 'Filter activity by the username or email of the user that performed it.' + ClientListServerActivityFilterUserIdQueryParameter: + type: integer + description: 'Filter activity to a single user by ID. Preferred over filter[user] when the exact user is known.' + ClientListServerActivityFilterEventNameQueryParameter: + type: string + description: 'Filter activity to one exact event name. Preferred over filter[event], which matches substrings.' + ClientListServerActivitySortQueryParameter: + type: string + description: 'Sort activity by timestamp. Prefix with "-" for descending order.' + enum: + - timestamp + - '-timestamp' + ClientListServerActivityIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports actor.' + ClientListServerActivityServerUuidPathParameter: + type: string + ClientListServerActivityFilterOptionsServerUuidPathParameter: + type: string + ClientSendServerCommandServerUuidPathParameter: + type: string + ClientSendPowerActionServerUuidPathParameter: + type: string + ClientListServerDatabasesIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports "password" when the user can view database passwords.' + enum: + - password + ClientCreateServerDatabaseIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports "password" when the user can view database passwords.' + enum: + - password + ClientListServerDatabasesServerUuidPathParameter: + type: string + ClientRotateServerDatabasePasswordIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports "password" when the user can view database passwords.' + enum: + - password + ClientRotateServerDatabasePasswordServerUuidPathParameter: + type: string + ClientRotateServerDatabasePasswordDatabaseIdPathParameter: + type: string + ClientDeleteServerDatabaseServerUuidPathParameter: + type: string + ClientDeleteServerDatabaseDatabaseIdPathParameter: + type: string + ClientListFilesDirectoryQueryParameter: + type: string + description: 'Directory to list. Defaults to the server root.' + nullable: true + ClientListFilesServerUuidPathParameter: + type: string + ClientGetFileContentsFileQueryParameter: + type: string + description: 'Path to the file to read.' + ClientGetFileContentsServerUuidPathParameter: + type: string + ClientGetFileDownloadURLFileQueryParameter: + type: string + description: 'Path to the file to download.' + ClientGetFileDownloadURLServerUuidPathParameter: + type: string + ClientRenameFilesServerUuidPathParameter: + type: string + ClientCopyFileServerUuidPathParameter: + type: string + ClientWriteFileContentsFileQueryParameter: + type: string + description: 'Path to the file to write.' + ClientWriteFileContentsServerUuidPathParameter: + type: string + ClientCompressFilesServerUuidPathParameter: + type: string + ClientDecompressFileServerUuidPathParameter: + type: string + ClientDeleteFilesServerUuidPathParameter: + type: string + ClientCreateFolderServerUuidPathParameter: + type: string + ClientChangeFilePermissionsServerUuidPathParameter: + type: string + ClientPullRemoteFileServerUuidPathParameter: + type: string + ClientGetFileUploadURLServerUuidPathParameter: + type: string + ClientListServerSchedulesIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports tasks.' + ClientListServerSchedulesServerUuidPathParameter: + type: string + ClientGetServerScheduleIncludeQueryParameter: + type: string + description: 'Comma-separated relationships to include. Supports tasks.' + ClientGetServerScheduleServerUuidPathParameter: + type: string + ClientGetServerScheduleScheduleIdPathParameter: + type: integer + ClientExecuteServerScheduleServerUuidPathParameter: + type: string + ClientExecuteServerScheduleScheduleIdPathParameter: + type: integer + ClientCreateScheduleTaskServerUuidPathParameter: + type: string + ClientCreateScheduleTaskScheduleIdPathParameter: + type: integer + ClientUpdateScheduleTaskServerUuidPathParameter: + type: string + ClientUpdateScheduleTaskScheduleIdPathParameter: + type: integer + ClientUpdateScheduleTaskTaskIdPathParameter: + type: integer + ClientListServerAllocationsServerUuidPathParameter: + type: string + ClientUpdateAllocationNotesServerUuidPathParameter: + type: string + ClientUpdateAllocationNotesAllocationIdPathParameter: + type: integer + ClientSetPrimaryAllocationServerUuidPathParameter: + type: string + ClientSetPrimaryAllocationAllocationIdPathParameter: + type: integer + ClientListServerSubusersServerUuidPathParameter: + type: string + ClientGetServerSubuserServerUuidPathParameter: + type: string + ClientGetServerSubuserUserPathParameter: + type: string + ClientListServerBackupsPageQueryParameter: + type: integer + description: 'The page number to return.' + ClientListServerBackupsPerPageQueryParameter: + type: integer + description: 'Number of backups to return per page. The maximum is 50.' + ClientListServerBackupsServerUuidPathParameter: + type: string + ClientGetServerBackupServerUuidPathParameter: + type: string + ClientGetServerBackupBackupUuidPathParameter: + type: string + ClientGetBackupDownloadURLServerUuidPathParameter: + type: string + ClientGetBackupDownloadURLBackupUuidPathParameter: + type: string + ClientToggleBackupLockServerUuidPathParameter: + type: string + ClientToggleBackupLockBackupUuidPathParameter: + type: string + ClientRestoreServerBackupServerUuidPathParameter: + type: string + ClientRestoreServerBackupBackupUuidPathParameter: + type: string + ClientGetStartupConfigurationServerUuidPathParameter: + type: string + ClientUpdateStartupVariableServerUuidPathParameter: + type: string + ClientRenameServerServerUuidPathParameter: + type: string + ClientReinstallServerServerUuidPathParameter: + type: string + ClientSetServerDockerImageServerUuidPathParameter: + type: string +security: + - + default: [] +paths: + /api/admin/languages: + get: + summary: 'List languages' + operationId: adminListLanguages + description: 'Returns the languages available for panel locale selectors.' + parameters: [] + responses: + '200': + description: 'Available languages returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminLanguagesResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + /api/admin/activity: + get: + summary: 'List activity' + operationId: adminListActivity + description: 'Returns a paginated list of administrative activity. Only events in the "admin" namespace are returned; customer activity against a server or account is excluded.' + parameters: + - + in: query + name: 'filter[event]' + description: 'Filter activity by event name.' + required: false + schema: + $ref: '#/components/schemas/AdminListActivityFilterEventQueryParameter' + - + in: query + name: 'filter[ip]' + description: 'Filter activity by originating IP address.' + required: false + schema: + $ref: '#/components/schemas/AdminListActivityFilterIpQueryParameter' + - + in: query + name: 'filter[user]' + description: 'Filter activity by the username or email of the user that performed it.' + required: false + schema: + $ref: '#/components/schemas/AdminListActivityFilterUserQueryParameter' + - + in: query + name: 'filter[user_id]' + description: 'Filter activity to a single user by ID. Preferred over filter[user] when the exact user is known.' + required: false + schema: + $ref: '#/components/schemas/AdminListActivityFilterUserIdQueryParameter' + - + in: query + name: 'filter[event_name]' + description: 'Filter activity to one exact event name. Preferred over filter[event], which matches substrings.' + required: false + schema: + $ref: '#/components/schemas/AdminListActivityFilterEventNameQueryParameter' + - + in: query + name: sort + description: 'Sort activity by timestamp. Prefix with "-" for descending order.' + required: false + schema: + $ref: '#/components/schemas/AdminListActivitySortQueryParameter' + - + in: query + name: page + description: 'Page number to return.' + required: false + schema: + $ref: '#/components/schemas/AdminListActivityPageQueryParameter' + - + in: query + name: per_page + description: 'Results to return per page. The maximum is 100.' + required: false + schema: + $ref: '#/components/schemas/AdminListActivityPerPageQueryParameter' + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports actor.' + required: false + schema: + $ref: '#/components/schemas/AdminListActivityIncludeQueryParameter' + responses: + '200': + description: 'Activity logs returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminActivityLogPaginatedResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + /api/admin/activity/filters: + get: + summary: 'List activity filter options' + operationId: adminListActivityFilterOptions + description: 'Returns the distinct events and users present in the administrative activity log.' + parameters: [] + responses: + '200': + description: 'Filter options returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminListActivityFilterOptionsResponseBody' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + /api/admin/extensions: + get: + summary: 'List extensions' + operationId: adminListExtensions + description: 'Returns discovered extensions, invalid manifests, and their install state.' + parameters: [] + responses: + '200': + description: 'Extensions returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminListExtensionsResponseBody' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + post: + summary: 'Install extension' + operationId: adminInstallExtension + description: 'Installs an uploaded .pteroext or .zip extension package.' + parameters: [] + responses: + '201': + description: 'Extension installed.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminInstallExtensionResponseBody' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + multipart/form-data: + schema: + $ref: '#/components/schemas/AdminInstallExtensionRequest' + security: + - + panelSession: [] + /api/admin/extensions/forms: + get: + summary: 'List extension forms' + operationId: adminListExtensionForms + description: 'Returns, for each admin form, the enabled extensions that add fields to it and that the signed-in administrator may edit. Forms without extension fields are left out.' + parameters: [] + responses: + '200': + description: 'Extension forms returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminExtensionFormsResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + '/api/admin/extensions/{extension}/settings': + get: + summary: 'Get extension settings' + operationId: adminGetExtensionSettings + description: 'Returns the auto-render form schema (with current public values) for an extension that registered a settings definition.' + parameters: [] + responses: + '200': + description: 'Settings schema returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminGetExtensionSettingsResponseBody' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + patch: + summary: 'Update extension settings' + operationId: adminUpdateExtensionSettings + description: "Validates against each field's type and the extension's declared rules and persists the submitted values. Omitted fields keep their stored values, as do secrets submitted empty or as their mask." + parameters: [] + responses: + '200': + description: 'Settings updated; fresh schema returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminUpdateExtensionSettingsResponseBody' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminUpdateExtensionSettingsRequest' + security: + - + panelSession: [] + parameters: + - + in: path + name: extension + description: 'The extension identifier.' + required: true + schema: + $ref: '#/components/schemas/AdminGetExtensionSettingsExtensionPathParameter' + '/api/admin/extensions/{extension}/icon': + get: + summary: 'Get extension icon' + operationId: adminGetExtensionIcon + description: 'Returns the PNG, JPEG or WebP image an extension declares as its "icon". Extensions with a lucide icon name or no icon return not found.' + parameters: [] + responses: + '200': + description: 'Icon image returned.' + content: + image/png: + schema: + $ref: '#/components/schemas/AdminGetExtensionIcon200ImagePngResponseBody' + image/jpeg: + schema: + $ref: '#/components/schemas/AdminGetExtensionIcon200ImageJpegResponseBody' + image/webp: + schema: + $ref: '#/components/schemas/AdminGetExtensionIcon200ImageWebpResponseBody' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: extension + description: 'The extension identifier.' + required: true + schema: + $ref: '#/components/schemas/AdminGetExtensionIconExtensionPathParameter' + '/api/admin/extensions/{extension}/settings/{input}/file': + post: + summary: 'Upload extension setting file' + operationId: adminUploadExtensionSettingFile + description: "Stores the uploaded file as the value of a file setting and deletes the file it replaces. The type is decided from the file's content and checked against the setting's allow-list and size limit." + parameters: [] + responses: + '200': + description: 'File stored; fresh schema returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminUploadExtensionSettingFileResponseBody' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + multipart/form-data: + schema: + $ref: '#/components/schemas/AdminUploadExtensionSettingFileRequest' + security: + - + panelSession: [] + delete: + summary: 'Clear extension setting file' + operationId: adminClearExtensionSettingFile + description: 'Deletes the file stored for a file setting, which returns the setting to its default.' + parameters: [] + responses: + '200': + description: 'File removed; fresh schema returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminClearExtensionSettingFileResponseBody' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + security: + - + panelSession: [] + parameters: + - + in: path + name: extension + description: 'The extension identifier.' + required: true + schema: + $ref: '#/components/schemas/AdminUploadExtensionSettingFileExtensionPathParameter' + - + in: path + name: input + description: 'The input name of the extension setting.' + required: true + schema: + $ref: '#/components/schemas/AdminUploadExtensionSettingFileInputPathParameter' + '/api/admin/extensions/{extension}/enable': + post: + summary: 'Enable extension' + operationId: adminEnableExtension + description: 'Enables an installed extension, publishes assets, and runs migrations.' + parameters: [] + responses: + '200': + description: 'Extension enabled.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminEnableExtensionResponseBody' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + security: + - + panelSession: [] + parameters: + - + in: path + name: extension + description: 'The extension identifier.' + required: true + schema: + $ref: '#/components/schemas/AdminEnableExtensionExtensionPathParameter' + '/api/admin/extensions/{extension}/disable': + post: + summary: 'Disable extension' + operationId: adminDisableExtension + description: 'Disables an installed extension without removing files or data.' + parameters: [] + responses: + '200': + description: 'Extension disabled.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminDisableExtensionResponseBody' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + security: + - + panelSession: [] + parameters: + - + in: path + name: extension + description: 'The extension identifier.' + required: true + schema: + $ref: '#/components/schemas/AdminDisableExtensionExtensionPathParameter' + '/api/admin/extensions/{extension}': + delete: + summary: 'Remove extension' + operationId: adminRemoveExtension + description: 'Deletes extension files, published assets, settings, subuser permission grants, and the install record.' + parameters: [] + responses: + '204': + description: 'Extension removed.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + security: + - + panelSession: [] + parameters: + - + in: path + name: extension + description: 'The extension identifier.' + required: true + schema: + $ref: '#/components/schemas/AdminRemoveExtensionExtensionPathParameter' + /api/admin/users: + get: + summary: 'List users' + operationId: adminListUsers + description: 'Returns a paginated list of panel users, sorted with root administrators first by default.' + parameters: + - + in: query + name: page + description: 'Page number to retrieve.' + required: false + schema: + $ref: '#/components/schemas/AdminListUsersPageQueryParameter' + - + in: query + name: per_page + description: 'Results to return per page.' + required: false + schema: + $ref: '#/components/schemas/AdminListUsersPerPageQueryParameter' + - + in: query + name: 'filter[email]' + description: 'Filter users by email address.' + required: false + schema: + $ref: '#/components/schemas/AdminListUsersFilterEmailQueryParameter' + - + in: query + name: 'filter[uuid]' + description: 'Filter users by UUID.' + required: false + schema: + $ref: '#/components/schemas/AdminListUsersFilterUuidQueryParameter' + - + in: query + name: 'filter[username]' + description: 'Filter users by username.' + required: false + schema: + $ref: '#/components/schemas/AdminListUsersFilterUsernameQueryParameter' + - + in: query + name: 'filter[external_id]' + description: 'Filter users by external identifier.' + required: false + schema: + $ref: '#/components/schemas/AdminListUsersFilterExternalIdQueryParameter' + - + in: query + name: 'filter[search]' + description: 'Search users by username, email, or UUID.' + required: false + schema: + $ref: '#/components/schemas/AdminListUsersFilterSearchQueryParameter' + - + in: query + name: sort + description: 'Sort users by id, uuid, email, username, or creation date. Prefix with a hyphen for descending order.' + required: false + schema: + $ref: '#/components/schemas/AdminListUsersSortQueryParameter' + responses: + '200': + description: 'Users returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminUserPaginatedResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + post: + summary: 'Create user' + operationId: adminCreateUser + description: 'Creates a panel user. Optional password and language fields may be supplied explicitly.' + parameters: [] + responses: + '201': + description: 'User created.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminUserResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminCreateUserRequest' + '/api/admin/users/external/{external_id}': + get: + summary: 'Get user by external ID' + operationId: adminGetUserByExternalID + description: 'Returns a single panel user by external identifier.' + parameters: [] + responses: + '200': + description: 'User returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminUserResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: external_id + description: 'The external ID.' + required: true + schema: + $ref: '#/components/schemas/AdminGetUserByExternalIDExternalIdPathParameter' + '/api/admin/users/{user_id}': + get: + summary: 'Get user' + operationId: adminGetUser + description: 'Returns a single panel user by internal numeric ID.' + parameters: + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports servers.' + required: false + schema: + $ref: '#/components/schemas/AdminGetUserIncludeQueryParameter' + responses: + '200': + description: 'User returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminUserResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + put: + summary: 'Update user' + operationId: adminUpdateUser + description: 'Updates an existing panel user. Supplying a password changes the user password.' + parameters: [] + responses: + '200': + description: 'User updated.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminUserResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminUpdateUserRequest' + delete: + summary: 'Delete user' + operationId: adminDeleteUser + description: 'Deletes a panel user. The authenticated administrator cannot delete their own account.' + parameters: [] + responses: + '204': + description: 'User deleted.' + '400': + description: 'The authenticated administrator attempted to delete their own user account.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: user_id + description: 'The user ID.' + required: true + schema: + $ref: '#/components/schemas/AdminGetUserUserIdPathParameter' + '/api/admin/users/{user_id}/disable-2fa': + post: + summary: 'Disable user two-factor authentication' + operationId: adminDisableUserTwoFactorAuthentication + description: 'Clears the configured TOTP secret and disables two-factor authentication for a user.' + parameters: [] + responses: + '204': + description: 'Two-factor authentication disabled.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: user_id + description: 'The user ID.' + required: true + schema: + $ref: '#/components/schemas/AdminDisableUserTwoFactorAuthenticationUserIdPathParameter' + '/api/admin/nodes/{node_id}/system-information': + get: + summary: 'Get node system information' + operationId: adminGetNodeSystemInformation + description: 'Proxies Wings system information for a node.' + parameters: [] + responses: + '200': + description: 'System information returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminNodeSystemInformationResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '502': + description: 'The panel could not connect to Wings.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: node_id + description: 'The node ID.' + required: true + schema: + $ref: '#/components/schemas/AdminGetNodeSystemInformationNodeIdPathParameter' + '/api/admin/nodes/{node_id}/deploy-token': + post: + summary: 'Create node deploy token' + operationId: adminCreateNodeDeployToken + description: 'Creates or reuses an application API key that can deploy the specified node.' + parameters: [] + responses: + '200': + description: 'Deploy token returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminNodeDeployTokenResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: node_id + description: 'The node ID.' + required: true + schema: + $ref: '#/components/schemas/AdminCreateNodeDeployTokenNodeIdPathParameter' + '/api/admin/nodes/{node_id}/utilization': + get: + summary: 'Get node utilization' + operationId: adminGetNodeUtilization + description: 'Returns aggregate resource utilization for a node.' + parameters: [] + responses: + '200': + description: 'Utilization returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminNodeUtilizationResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: node_id + description: 'The node ID.' + required: true + schema: + $ref: '#/components/schemas/AdminGetNodeUtilizationNodeIdPathParameter' + '/api/admin/servers/{server_admin_identifier}/mounts': + get: + summary: 'List server mounts' + operationId: adminListServerMounts + description: 'Returns mount definitions that are eligible for a server, including whether each mount is attached.' + parameters: [] + responses: + '200': + description: 'Eligible server mounts returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminMountListResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The server is not installed.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + post: + summary: 'Attach server mount' + operationId: adminAttachServerMount + description: 'Attaches an eligible mount definition to a server.' + parameters: [] + responses: + '204': + description: 'Mount attached.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The server is not installed.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminAttachServerMountRequest' + parameters: + - + in: path + name: server_admin_identifier + description: 'The server ID or UUID.' + required: true + schema: + $ref: '#/components/schemas/AdminListServerMountsServerAdminIdentifierPathParameter' + '/api/admin/servers/{server_admin_identifier}/mounts/{mount_id}': + delete: + summary: 'Detach server mount' + operationId: adminDetachServerMount + description: 'Detaches a mount definition from a server.' + parameters: [] + responses: + '204': + description: 'Mount detached.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The server is not installed.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: server_admin_identifier + description: 'The server ID or UUID.' + required: true + schema: + $ref: '#/components/schemas/AdminDetachServerMountServerAdminIdentifierPathParameter' + - + in: path + name: mount_id + description: 'The mount ID.' + required: true + schema: + $ref: '#/components/schemas/AdminDetachServerMountMountIdPathParameter' + /api/admin/servers: + get: + summary: 'List servers' + operationId: adminListServers + description: 'Returns a paginated list of servers.' + parameters: + - + in: query + name: 'filter[*]' + description: 'Search servers by UUID, name, owner, node, allocation, or external identifier.' + required: false + schema: + $ref: '#/components/schemas/AdminListServersFilterWildcardQueryParameter' + - + in: query + name: 'filter[uuid]' + description: 'Filter servers by UUID.' + required: false + schema: + $ref: '#/components/schemas/AdminListServersFilterUuidQueryParameter' + - + in: query + name: 'filter[uuidShort]' + description: 'Filter servers by short UUID identifier.' + required: false + schema: + $ref: '#/components/schemas/AdminListServersFilterUuidShortQueryParameter' + - + in: query + name: 'filter[name]' + description: 'Filter servers by name.' + required: false + schema: + $ref: '#/components/schemas/AdminListServersFilterNameQueryParameter' + - + in: query + name: 'filter[external_id]' + description: 'Filter servers by external identifier.' + required: false + schema: + $ref: '#/components/schemas/AdminListServersFilterExternalIdQueryParameter' + - + in: query + name: 'filter[image]' + description: 'Filter servers by Docker image.' + required: false + schema: + $ref: '#/components/schemas/AdminListServersFilterImageQueryParameter' + - + in: query + name: 'filter[node_id]' + description: 'Filter servers by node ID.' + required: false + schema: + $ref: '#/components/schemas/AdminListServersFilterNodeIdQueryParameter' + - + in: query + name: 'filter[owner_id]' + description: 'Filter servers by owner user ID.' + required: false + schema: + $ref: '#/components/schemas/AdminListServersFilterOwnerIdQueryParameter' + - + in: query + name: sort + description: 'Sort servers by id, uuid, name, or creation time. Prefix with a hyphen for descending order.' + required: false + schema: + $ref: '#/components/schemas/AdminListServersSortQueryParameter' + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports allocation, allocations, user, subusers, egg, variables, location, node, and databases.' + required: false + schema: + $ref: '#/components/schemas/AdminListServersIncludeQueryParameter' + - + in: query + name: page + description: 'Page number to retrieve.' + required: false + schema: + $ref: '#/components/schemas/AdminListServersPageQueryParameter' + - + in: query + name: per_page + description: 'Results to return per page.' + required: false + schema: + $ref: '#/components/schemas/AdminListServersPerPageQueryParameter' + responses: + '200': + description: 'Servers returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminServerPaginatedResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + post: + summary: 'Create server' + operationId: adminCreateServer + description: 'Creates a server using explicit allocations or automatic deployment constraints.' + parameters: [] + responses: + '201': + description: 'Server created.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminServerResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminCreateServerRequest' + '/api/admin/servers/external/{external_id}': + get: + summary: 'Get server by external ID' + operationId: adminGetServerByExternalID + description: 'Returns a single server by external identifier.' + parameters: [] + responses: + '200': + description: 'Server returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminServerResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: external_id + description: 'The external ID.' + required: true + schema: + $ref: '#/components/schemas/AdminGetServerByExternalIDExternalIdPathParameter' + '/api/admin/servers/{server_admin_identifier}': + get: + summary: 'Get server' + operationId: adminGetServer + description: 'Returns a single server by admin identifier.' + parameters: + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports allocation, allocations, user, subusers, egg, variables, location, node, and databases.' + required: false + schema: + $ref: '#/components/schemas/AdminGetServerIncludeQueryParameter' + responses: + '200': + description: 'Server returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminServerResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + delete: + summary: 'Delete server' + operationId: adminDeleteServer + description: 'Deletes a server and returns an error if Wings or database host cleanup fails.' + parameters: [] + responses: + '204': + description: 'Server deleted.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: server_admin_identifier + description: 'The server ID or UUID.' + required: true + schema: + $ref: '#/components/schemas/AdminGetServerServerAdminIdentifierPathParameter' + '/api/admin/servers/{server_admin_identifier}/details': + put: + summary: 'Update server details' + operationId: adminUpdateServerDetails + description: 'Updates a server name, owner, description, and external identifier.' + parameters: [] + responses: + '200': + description: 'Server updated.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminServerResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminUpdateServerDetailsRequest' + parameters: + - + in: path + name: server_admin_identifier + description: 'The server ID or UUID.' + required: true + schema: + $ref: '#/components/schemas/AdminUpdateServerDetailsServerAdminIdentifierPathParameter' + '/api/admin/servers/{server_admin_identifier}/build': + put: + summary: 'Update server build' + operationId: adminUpdateServerBuild + description: 'Updates server limits, primary allocation, and feature limits.' + parameters: [] + responses: + '200': + description: 'Server build updated.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminServerResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminUpdateServerBuildRequest' + parameters: + - + in: path + name: server_admin_identifier + description: 'The server ID or UUID.' + required: true + schema: + $ref: '#/components/schemas/AdminUpdateServerBuildServerAdminIdentifierPathParameter' + '/api/admin/servers/{server_admin_identifier}/startup': + put: + summary: 'Update server startup' + operationId: adminUpdateServerStartup + description: 'Updates the egg, Docker image, startup command, environment, and install-script behavior.' + parameters: [] + responses: + '200': + description: 'Server startup updated.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminServerResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminUpdateServerStartupRequest' + parameters: + - + in: path + name: server_admin_identifier + description: 'The server ID or UUID.' + required: true + schema: + $ref: '#/components/schemas/AdminUpdateServerStartupServerAdminIdentifierPathParameter' + '/api/admin/servers/{server_admin_identifier}/suspension': + post: + summary: 'Update server suspension' + operationId: adminUpdateServerSuspension + description: 'Suspends or unsuspends a server.' + parameters: [] + responses: + '204': + description: 'Server suspension state updated.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: false + content: + application/json: + schema: + $ref: '#/components/schemas/AdminUpdateServerSuspensionRequest' + parameters: + - + in: path + name: server_admin_identifier + description: 'The server ID or UUID.' + required: true + schema: + $ref: '#/components/schemas/AdminUpdateServerSuspensionServerAdminIdentifierPathParameter' + '/api/admin/servers/{server_admin_identifier}/reinstall': + post: + summary: 'Reinstall server' + operationId: adminReinstallServer + description: 'Queues a server reinstall through Wings.' + parameters: [] + responses: + '202': + description: 'Server reinstall accepted.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: server_admin_identifier + description: 'The server ID or UUID.' + required: true + schema: + $ref: '#/components/schemas/AdminReinstallServerServerAdminIdentifierPathParameter' + '/api/admin/servers/{server_admin_identifier}/rebuild': + post: + summary: 'Rebuild server' + operationId: adminRebuildServer + description: 'Synchronizes the server configuration to Wings.' + parameters: [] + responses: + '204': + description: 'Server rebuild synchronized.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: server_admin_identifier + description: 'The server ID or UUID.' + required: true + schema: + $ref: '#/components/schemas/AdminRebuildServerServerAdminIdentifierPathParameter' + '/api/admin/servers/{server_admin_identifier}/transfer/progress': + get: + summary: 'Get server transfer progress' + operationId: adminGetServerTransferProgress + description: 'Returns the active transfer for a server, or 204 when no transfer is in progress.' + parameters: [] + responses: + '200': + description: 'Transfer progress returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminServerTransferResource' + '204': + description: 'No server transfer is currently in progress.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: server_admin_identifier + description: 'The server ID or UUID.' + required: true + schema: + $ref: '#/components/schemas/AdminGetServerTransferProgressServerAdminIdentifierPathParameter' + '/api/admin/servers/{server_admin_identifier}/transfer': + post: + summary: 'Transfer server' + operationId: adminTransferServer + description: 'Starts a server transfer to another node using the specified target allocations.' + parameters: [] + responses: + '204': + description: 'Server transfer started.' + '400': + description: 'The destination node cannot fit the server or the server cannot currently be transferred.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminTransferServerRequest' + parameters: + - + in: path + name: server_admin_identifier + description: 'The server ID or UUID.' + required: true + schema: + $ref: '#/components/schemas/AdminTransferServerServerAdminIdentifierPathParameter' + '/api/admin/servers/{server_admin_identifier}/settings/toggle-install': + post: + summary: 'Toggle server install state' + operationId: adminToggleServerInstallState + description: 'Toggles a server between installed and installing states unless it is marked as failed.' + parameters: [] + responses: + '204': + description: 'Server install state toggled.' + '400': + description: 'The server is marked as failed.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: server_admin_identifier + description: 'The server ID or UUID.' + required: true + schema: + $ref: '#/components/schemas/AdminToggleServerInstallStateServerAdminIdentifierPathParameter' + '/api/admin/servers/{server_admin_identifier}/force': + delete: + summary: 'Force delete server' + operationId: adminForceDeleteServer + description: 'Deletes a server while bypassing recoverable Wings or database host cleanup failures.' + parameters: [] + responses: + '204': + description: 'Server force deleted.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: server_admin_identifier + description: 'The server ID or UUID.' + required: true + schema: + $ref: '#/components/schemas/AdminForceDeleteServerServerAdminIdentifierPathParameter' + '/api/admin/servers/{server_admin_identifier}/databases': + get: + summary: 'List server databases' + operationId: adminListServerDatabases + description: 'Returns all databases assigned to a server.' + parameters: + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports "password".' + required: false + schema: + $ref: '#/components/schemas/AdminListServerDatabasesIncludeQueryParameter' + responses: + '200': + description: 'Server databases returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminServerDatabaseListResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The server is not installed.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + post: + summary: 'Create server database' + operationId: adminCreateServerDatabase + description: 'Creates a database for a server and returns the generated password.' + parameters: [] + responses: + '201': + description: 'Server database created.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminServerDatabaseResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The server is not installed.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminCreateServerDatabaseRequest' + parameters: + - + in: path + name: server_admin_identifier + description: 'The server ID or UUID.' + required: true + schema: + $ref: '#/components/schemas/AdminListServerDatabasesServerAdminIdentifierPathParameter' + '/api/admin/servers/{server_admin_identifier}/databases/{database_id}': + get: + summary: 'Get server database' + operationId: adminGetServerDatabase + description: 'Returns a single database assigned to a server.' + parameters: + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports "password".' + required: false + schema: + $ref: '#/components/schemas/AdminGetServerDatabaseIncludeQueryParameter' + responses: + '200': + description: 'Server database returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminServerDatabaseResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The server is not installed.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + delete: + summary: 'Delete server database' + operationId: adminDeleteServerDatabase + description: 'Deletes a database assigned to a server.' + parameters: [] + responses: + '204': + description: 'Server database deleted.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The server is not installed.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: server_admin_identifier + description: 'The server ID or UUID.' + required: true + schema: + $ref: '#/components/schemas/AdminGetServerDatabaseServerAdminIdentifierPathParameter' + - + in: path + name: database_id + description: 'The database ID.' + required: true + schema: + $ref: '#/components/schemas/AdminGetServerDatabaseDatabaseIdPathParameter' + '/api/admin/servers/{server_admin_identifier}/databases/{database_id}/rotate-password': + post: + summary: 'Rotate server database password' + operationId: adminRotateServerDatabasePassword + description: 'Rotates the password for a database assigned to a server.' + parameters: [] + responses: + '200': + description: 'Database password rotated.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminServerDatabaseResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: server_admin_identifier + description: 'The server ID or UUID.' + required: true + schema: + $ref: '#/components/schemas/AdminRotateServerDatabasePasswordServerAdminIdentifierPathParameter' + - + in: path + name: database_id + description: 'The database ID.' + required: true + schema: + $ref: '#/components/schemas/AdminRotateServerDatabasePasswordDatabaseIdPathParameter' + '/api/admin/servers/{server_admin_identifier}/backups': + get: + summary: 'List server backups' + operationId: adminListServerBackups + description: 'Returns a paginated list of backups assigned to a server.' + parameters: + - + in: query + name: 'filter[uuid]' + description: 'Filter backups by UUID.' + required: true + schema: + $ref: '#/components/schemas/AdminListServerBackupsFilterUuidQueryParameter' + - + in: query + name: 'filter[name]' + description: 'Filter backups by name.' + required: true + schema: + $ref: '#/components/schemas/AdminListServerBackupsFilterNameQueryParameter' + - + in: query + name: sort + description: 'Sort backups by id, bytes, or created_at. Prefix with a hyphen for descending order.' + required: true + schema: + $ref: '#/components/schemas/AdminListServerBackupsSortQueryParameter' + - + in: query + name: per_page + description: 'Results to return per page.' + required: true + schema: + $ref: '#/components/schemas/AdminListServerBackupsPerPageQueryParameter' + responses: + '200': + description: 'Server backups returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminBackupPaginatedResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: server_admin_identifier + description: 'The server ID or UUID.' + required: true + schema: + $ref: '#/components/schemas/AdminListServerBackupsServerAdminIdentifierPathParameter' + '/api/admin/servers/{server_admin_identifier}/backups/{backup_uuid}/toggle': + post: + summary: 'Toggle server backup lock' + operationId: adminToggleServerBackupLock + description: 'Toggles whether a server backup is locked against deletion.' + parameters: [] + responses: + '200': + description: 'Server backup lock state toggled.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminBackupResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: server_admin_identifier + description: 'The server ID or UUID.' + required: true + schema: + $ref: '#/components/schemas/AdminToggleServerBackupLockServerAdminIdentifierPathParameter' + - + in: path + name: backup_uuid + description: 'The backup UUID.' + required: true + schema: + $ref: '#/components/schemas/AdminToggleServerBackupLockBackupUuidPathParameter' + /api/admin/nodes: + get: + summary: 'List nodes' + operationId: adminListNodes + description: 'Returns a paginated list of Wings nodes.' + parameters: + - + in: query + name: 'filter[uuid]' + description: 'Filter nodes by UUID.' + required: false + schema: + $ref: '#/components/schemas/AdminListNodesFilterUuidQueryParameter' + - + in: query + name: 'filter[name]' + description: 'Filter nodes by name.' + required: false + schema: + $ref: '#/components/schemas/AdminListNodesFilterNameQueryParameter' + - + in: query + name: 'filter[fqdn]' + description: 'Filter nodes by FQDN.' + required: false + schema: + $ref: '#/components/schemas/AdminListNodesFilterFqdnQueryParameter' + - + in: query + name: sort + description: 'Sort nodes by id, uuid, name, memory, disk, or creation time. Prefix with a hyphen for descending order.' + required: false + schema: + $ref: '#/components/schemas/AdminListNodesSortQueryParameter' + - + in: query + name: page + description: 'Page number to return.' + required: false + schema: + $ref: '#/components/schemas/AdminListNodesPageQueryParameter' + - + in: query + name: per_page + description: 'Results to return per page.' + required: false + schema: + $ref: '#/components/schemas/AdminListNodesPerPageQueryParameter' + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports "allocations", "location", and "servers".' + required: false + schema: + $ref: '#/components/schemas/AdminListNodesIncludeQueryParameter' + responses: + '200': + description: 'Nodes returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminNodePaginatedResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + post: + summary: 'Create node' + operationId: adminCreateNode + description: 'Creates a Wings node. HTTPS nodes must use a valid FQDN rather than a raw IP address.' + parameters: [] + responses: + '201': + description: 'Node created.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminNodeResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminCreateNodeRequest' + '/api/admin/nodes/{node_id}': + get: + summary: 'Get node' + operationId: adminGetNode + description: 'Returns a single Wings node by ID.' + parameters: + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports "allocations", "location", and "servers".' + required: false + schema: + $ref: '#/components/schemas/AdminGetNodeIncludeQueryParameter' + responses: + '200': + description: 'Node returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminNodeResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + put: + summary: 'Update node' + operationId: adminUpdateNode + description: 'Updates a Wings node and optionally rotates its daemon secret.' + parameters: [] + responses: + '200': + description: 'Node updated.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminNodeResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminUpdateNodeRequest' + delete: + summary: 'Delete node' + operationId: adminDeleteNode + description: 'Deletes a node when it has no active servers.' + parameters: [] + responses: + '204': + description: 'Node deleted.' + '400': + description: 'The node has active servers.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: node_id + description: 'The node ID.' + required: true + schema: + $ref: '#/components/schemas/AdminGetNodeNodeIdPathParameter' + '/api/admin/nodes/{node_id}/configuration': + get: + summary: 'Get node configuration' + operationId: adminGetNodeConfiguration + description: 'Returns the raw Wings configuration payload for a node, including daemon authentication tokens.' + parameters: [] + responses: + '200': + description: 'Node configuration returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminNodeConfigurationResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: node_id + description: 'The node ID.' + required: true + schema: + $ref: '#/components/schemas/AdminGetNodeConfigurationNodeIdPathParameter' + '/api/admin/nodes/{node_id}/tags': + put: + summary: 'Sync node game tags' + operationId: adminSyncNodeGameTags + description: 'Replaces the games a node accepts. A node with no game tags accepts any egg.' + parameters: [] + responses: + '200': + description: 'Games the node accepts.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminTagListResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: false + content: + application/json: + schema: + $ref: '#/components/schemas/AdminSyncNodeGameTagsRequest' + parameters: + - + in: path + name: node_id + description: 'The node ID.' + required: true + schema: + $ref: '#/components/schemas/AdminSyncNodeGameTagsNodeIdPathParameter' + '/api/admin/nodes/{node_id}/deployment-tags': + put: + summary: 'Sync node deployment tags' + operationId: adminSyncNodeDeploymentTags + description: 'Replaces the reservations on a node. A deploy must declare exactly these tags to land here.' + parameters: [] + responses: + '200': + description: 'Reservations on the node.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminTagListResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: false + content: + application/json: + schema: + $ref: '#/components/schemas/AdminSyncNodeDeploymentTagsRequest' + parameters: + - + in: path + name: node_id + description: 'The node ID.' + required: true + schema: + $ref: '#/components/schemas/AdminSyncNodeDeploymentTagsNodeIdPathParameter' + '/api/admin/nodes/{node_id}/allocations': + get: + summary: 'List node allocations' + operationId: adminListNodeAllocations + description: 'Returns a paginated list of allocations for a node.' + parameters: + - + in: query + name: 'filter[ip]' + description: 'Filter allocations by exact IP address.' + required: false + schema: + $ref: '#/components/schemas/AdminListNodeAllocationsFilterIpQueryParameter' + - + in: query + name: 'filter[port]' + description: 'Filter allocations by exact port.' + required: false + schema: + $ref: '#/components/schemas/AdminListNodeAllocationsFilterPortQueryParameter' + - + in: query + name: 'filter[ip_alias]' + description: 'Filter allocations by IP alias.' + required: false + schema: + $ref: '#/components/schemas/AdminListNodeAllocationsFilterIpAliasQueryParameter' + - + in: query + name: 'filter[server_id]' + description: 'Filter allocations by server ID, or pass an empty value to return unassigned allocations.' + required: false + schema: + $ref: '#/components/schemas/AdminListNodeAllocationsFilterServerIdQueryParameter' + - + in: query + name: sort + description: 'Sort allocations by id, ip, or port. Prefix with a hyphen for descending order.' + required: false + schema: + $ref: '#/components/schemas/AdminListNodeAllocationsSortQueryParameter' + - + in: query + name: page + description: 'Page number to return.' + required: false + schema: + $ref: '#/components/schemas/AdminListNodeAllocationsPageQueryParameter' + - + in: query + name: per_page + description: 'Results to return per page.' + required: false + schema: + $ref: '#/components/schemas/AdminListNodeAllocationsPerPageQueryParameter' + responses: + '200': + description: 'Allocations returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminAllocationPaginatedResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + post: + summary: 'Create node allocations' + operationId: adminCreateNodeAllocations + description: 'Creates one or more allocations on a node from IP addresses and ports or port ranges.' + parameters: [] + responses: + '204': + description: 'Allocations created.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: false + content: + application/json: + schema: + $ref: '#/components/schemas/AdminCreateNodeAllocationsRequest' + delete: + summary: 'Bulk delete node allocations' + operationId: adminBulkDeleteNodeAllocations + description: 'Deletes multiple unassigned allocations from a node by allocation ID.' + parameters: [] + responses: + '204': + description: 'Allocations deleted.' + '400': + description: 'One of the allocations is currently assigned to a server.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: false + content: + application/json: + schema: + $ref: '#/components/schemas/AdminBulkDeleteNodeAllocationsRequest' + parameters: + - + in: path + name: node_id + description: 'The node ID.' + required: true + schema: + $ref: '#/components/schemas/AdminListNodeAllocationsNodeIdPathParameter' + '/api/admin/nodes/{node_id}/allocations/ips': + get: + summary: 'List node allocation IPs' + operationId: adminListNodeAllocationIPs + description: 'Returns distinct allocation IP addresses for a node.' + parameters: [] + responses: + '200': + description: 'Allocation IPs returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminListNodeAllocationIPsResponseBody' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: node_id + description: 'The node ID.' + required: true + schema: + $ref: '#/components/schemas/AdminListNodeAllocationIPsNodeIdPathParameter' + '/api/admin/nodes/{node_id}/allocations/available': + get: + summary: 'List available node allocations' + operationId: adminListAvailableNodeAllocations + description: 'Returns unassigned allocations for a node.' + parameters: + - + in: query + name: 'filter[ip]' + description: 'Filter allocations by exact IP address.' + required: true + schema: + $ref: '#/components/schemas/AdminListAvailableNodeAllocationsFilterIpQueryParameter' + - + in: query + name: 'filter[port]' + description: 'Filter allocations by exact port.' + required: true + schema: + $ref: '#/components/schemas/AdminListAvailableNodeAllocationsFilterPortQueryParameter' + - + in: query + name: 'filter[ip_alias]' + description: 'Filter allocations by IP alias.' + required: true + schema: + $ref: '#/components/schemas/AdminListAvailableNodeAllocationsFilterIpAliasQueryParameter' + - + in: query + name: sort + description: 'Sort allocations by id, ip, or port. Prefix with a hyphen for descending order.' + required: true + schema: + $ref: '#/components/schemas/AdminListAvailableNodeAllocationsSortQueryParameter' + - + in: query + name: per_page + description: 'Results to return per page.' + required: true + schema: + $ref: '#/components/schemas/AdminListAvailableNodeAllocationsPerPageQueryParameter' + responses: + '200': + description: 'Available allocations returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminAllocationPaginatedResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: node_id + description: 'The node ID.' + required: true + schema: + $ref: '#/components/schemas/AdminListAvailableNodeAllocationsNodeIdPathParameter' + '/api/admin/nodes/{node_id}/allocations/block': + delete: + summary: 'Delete node allocation IP block' + operationId: adminDeleteNodeAllocationIPBlock + description: 'Deletes every unassigned allocation for an IP address on a node.' + parameters: [] + responses: + '204': + description: 'Unassigned allocations for the IP were deleted.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminDeleteNodeAllocationIPBlockRequest' + parameters: + - + in: path + name: node_id + description: 'The node ID.' + required: true + schema: + $ref: '#/components/schemas/AdminDeleteNodeAllocationIPBlockNodeIdPathParameter' + '/api/admin/nodes/{node_id}/allocations/{allocation_id}': + put: + summary: 'Update node allocation' + operationId: adminUpdateNodeAllocation + description: 'Updates the alias for a single allocation on a node.' + parameters: [] + responses: + '200': + description: 'Allocation updated.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminAllocationResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: false + content: + application/json: + schema: + $ref: '#/components/schemas/AdminUpdateNodeAllocationRequest' + delete: + summary: 'Delete node allocation' + operationId: adminDeleteNodeAllocation + description: 'Deletes a single unassigned allocation from a node.' + parameters: [] + responses: + '204': + description: 'Allocation deleted.' + '400': + description: 'The allocation is currently assigned to a server.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: node_id + description: 'The node ID.' + required: true + schema: + $ref: '#/components/schemas/AdminUpdateNodeAllocationNodeIdPathParameter' + - + in: path + name: allocation_id + description: 'The ID of the allocation.' + required: true + schema: + $ref: '#/components/schemas/AdminUpdateNodeAllocationAllocationIdPathParameter' + /api/admin/locations: + get: + summary: 'List locations' + operationId: adminListLocations + description: 'Returns a paginated list of locations.' + parameters: + - + in: query + name: 'filter[short]' + description: 'Filter locations by short identifier.' + required: false + schema: + $ref: '#/components/schemas/AdminListLocationsFilterShortQueryParameter' + - + in: query + name: 'filter[long]' + description: 'Filter locations by long description.' + required: false + schema: + $ref: '#/components/schemas/AdminListLocationsFilterLongQueryParameter' + - + in: query + name: sort + description: 'Sort locations by ID, short identifier, or creation date. Prefix with a hyphen for descending order.' + required: false + schema: + $ref: '#/components/schemas/AdminListLocationsSortQueryParameter' + - + in: query + name: page + description: 'Page number to return.' + required: false + schema: + $ref: '#/components/schemas/AdminListLocationsPageQueryParameter' + - + in: query + name: per_page + description: 'Results to return per page.' + required: false + schema: + $ref: '#/components/schemas/AdminListLocationsPerPageQueryParameter' + responses: + '200': + description: 'Locations returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminLocationPaginatedResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + post: + summary: 'Create location' + operationId: adminCreateLocation + description: 'Creates a location for grouping nodes and servers.' + parameters: [] + responses: + '201': + description: 'Location created.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminLocationResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminCreateLocationRequest' + '/api/admin/locations/{location_id}': + get: + summary: 'Get location' + operationId: adminGetLocation + description: 'Returns a single location by ID.' + parameters: + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports "nodes" and "servers".' + required: false + schema: + $ref: '#/components/schemas/AdminGetLocationIncludeQueryParameter' + responses: + '200': + description: 'Location returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminLocationResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + put: + summary: 'Update location' + operationId: adminUpdateLocation + description: 'Updates a location short identifier and description.' + parameters: [] + responses: + '200': + description: 'Location updated.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminLocationResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminUpdateLocationRequest' + delete: + summary: 'Delete location' + operationId: adminDeleteLocation + description: 'Deletes a location when no dependent resources prevent removal.' + parameters: [] + responses: + '204': + description: 'Location deleted.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: location_id + description: 'The location ID.' + required: true + schema: + $ref: '#/components/schemas/AdminGetLocationLocationIdPathParameter' + '/api/admin/locations/{location_id}/eligible-nodes': + get: + summary: 'List eligible location nodes' + operationId: adminListEligibleLocationNodes + description: 'Returns nodes assigned to a location that can be selected for location-scoped workflows.' + parameters: [] + responses: + '200': + description: 'Eligible nodes returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminNodeListResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: location_id + description: 'The location ID.' + required: true + schema: + $ref: '#/components/schemas/AdminListEligibleLocationNodesLocationIdPathParameter' + /api/admin/mounts: + get: + summary: 'List mounts' + operationId: adminListMounts + description: 'Returns a paginated list of mount definitions.' + parameters: + - + in: query + name: 'filter[name]' + description: 'Filter mounts by name.' + required: false + schema: + $ref: '#/components/schemas/AdminListMountsFilterNameQueryParameter' + - + in: query + name: sort + description: 'Sort mounts by id or name. Prefix with a hyphen for descending order.' + required: false + schema: + $ref: '#/components/schemas/AdminListMountsSortQueryParameter' + - + in: query + name: page + description: 'Page number to return.' + required: false + schema: + $ref: '#/components/schemas/AdminListMountsPageQueryParameter' + - + in: query + name: per_page + description: 'Results to return per page.' + required: false + schema: + $ref: '#/components/schemas/AdminListMountsPerPageQueryParameter' + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports "eggs", "nodes", and "servers".' + required: false + schema: + $ref: '#/components/schemas/AdminListMountsIncludeQueryParameter' + responses: + '200': + description: 'Mounts returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminMountPaginatedResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + post: + summary: 'Create mount' + operationId: adminCreateMount + description: 'Creates a mount definition and generates its UUID.' + parameters: [] + responses: + '201': + description: 'Mount created.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminMountResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminCreateMountRequest' + '/api/admin/mounts/{mount_id}': + get: + summary: 'Get mount' + operationId: adminGetMount + description: 'Returns a single mount definition by ID.' + parameters: + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports "eggs", "nodes", and "servers".' + required: false + schema: + $ref: '#/components/schemas/AdminGetMountIncludeQueryParameter' + responses: + '200': + description: 'Mount returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminMountResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + put: + summary: 'Update mount' + operationId: adminUpdateMount + description: 'Updates an existing mount definition.' + parameters: [] + responses: + '200': + description: 'Mount updated.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminMountResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminUpdateMountRequest' + delete: + summary: 'Delete mount' + operationId: adminDeleteMount + description: 'Deletes a mount definition.' + parameters: [] + responses: + '204': + description: 'Mount deleted.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: mount_id + description: 'The mount ID.' + required: true + schema: + $ref: '#/components/schemas/AdminGetMountMountIdPathParameter' + '/api/admin/mounts/{mount_id}/eggs': + post: + summary: 'Attach eggs to mount' + operationId: adminAttachEggsToMount + description: 'Attaches one or more eggs to a mount definition without removing existing egg attachments.' + parameters: + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports "eggs", "nodes", and "servers".' + required: false + schema: + $ref: '#/components/schemas/AdminAttachEggsToMountIncludeQueryParameter' + responses: + '200': + description: 'Mount updated.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminMountResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminAttachEggsToMountRequest' + parameters: + - + in: path + name: mount_id + description: 'The mount ID.' + required: true + schema: + $ref: '#/components/schemas/AdminAttachEggsToMountMountIdPathParameter' + '/api/admin/mounts/{mount_id}/eggs/{egg_id}': + delete: + summary: 'Detach egg from mount' + operationId: adminDetachEggFromMount + description: 'Removes a single egg attachment from a mount definition.' + parameters: [] + responses: + '204': + description: 'Egg detached from mount.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: mount_id + description: 'The mount ID.' + required: true + schema: + $ref: '#/components/schemas/AdminDetachEggFromMountMountIdPathParameter' + - + in: path + name: egg_id + description: 'The egg ID.' + required: true + schema: + $ref: '#/components/schemas/AdminDetachEggFromMountEggIdPathParameter' + '/api/admin/mounts/{mount_id}/nodes': + post: + summary: 'Attach nodes to mount' + operationId: adminAttachNodesToMount + description: 'Attaches one or more nodes to a mount definition without removing existing node attachments.' + parameters: + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports "eggs", "nodes", and "servers".' + required: false + schema: + $ref: '#/components/schemas/AdminAttachNodesToMountIncludeQueryParameter' + responses: + '200': + description: 'Mount updated.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminMountResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminAttachNodesToMountRequest' + parameters: + - + in: path + name: mount_id + description: 'The mount ID.' + required: true + schema: + $ref: '#/components/schemas/AdminAttachNodesToMountMountIdPathParameter' + '/api/admin/mounts/{mount_id}/nodes/{node_id}': + delete: + summary: 'Detach node from mount' + operationId: adminDetachNodeFromMount + description: 'Removes a single node attachment from a mount definition.' + parameters: [] + responses: + '204': + description: 'Node detached from mount.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: mount_id + description: 'The mount ID.' + required: true + schema: + $ref: '#/components/schemas/AdminDetachNodeFromMountMountIdPathParameter' + - + in: path + name: node_id + description: 'The node ID.' + required: true + schema: + $ref: '#/components/schemas/AdminDetachNodeFromMountNodeIdPathParameter' + /api/admin/eggs/catalog: + get: + summary: 'List egg catalog' + operationId: adminListEggCatalog + description: 'Returns the cached Pterodactyl egg catalog for searching and filtering. The index is cached for one hour.' + parameters: [] + responses: + '200': + description: 'Catalog entries returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminListEggCatalogResponseBody' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '502': + description: 'The upstream catalog is unavailable or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + /api/admin/eggs/catalog/refresh: + post: + summary: 'Refresh egg catalog' + operationId: adminRefreshEggCatalog + description: 'Clears the cached Pterodactyl catalog so the next listing downloads the current index.' + parameters: [] + responses: + '204': + description: 'Catalog cache cleared.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + /api/admin/eggs/catalog/import: + post: + summary: 'Import catalog egg' + operationId: adminImportCatalogEgg + description: 'Downloads the selected entry from the Pterodactyl catalog and imports its egg definition and variables.' + parameters: [] + responses: + '201': + description: 'Egg imported.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminEggResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The selected catalog entry does not exist.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + '502': + description: 'The upstream catalog or egg definition could not be loaded.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminImportCatalogEggRequest' + '/api/admin/eggs/{egg_id}/variables': + get: + summary: 'List egg variables' + operationId: adminListEggVariables + description: 'Returns variables for an egg in display order.' + parameters: + - + in: query + name: include + description: 'Comma-separated relationships to include. Unknown includes are ignored.' + required: false + schema: + $ref: '#/components/schemas/AdminListEggVariablesIncludeQueryParameter' + responses: + '200': + description: 'Egg variables returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminEggVariableListResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + post: + summary: 'Create egg variable' + operationId: adminCreateEggVariable + description: 'Creates a startup variable for an egg.' + parameters: [] + responses: + '201': + description: 'Egg variable created.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminEggVariableResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminCreateEggVariableRequest' + parameters: + - + in: path + name: egg_id + description: 'The egg ID.' + required: true + schema: + $ref: '#/components/schemas/AdminListEggVariablesEggIdPathParameter' + '/api/admin/eggs/{egg_id}/variables/reorder': + put: + summary: 'Reorder egg variables' + operationId: adminReorderEggVariables + description: 'Updates the display order for variables on an egg.' + parameters: [] + responses: + '200': + description: 'Egg variables reordered.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminEggVariableListResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminReorderEggVariablesRequest' + parameters: + - + in: path + name: egg_id + description: 'The egg ID.' + required: true + schema: + $ref: '#/components/schemas/AdminReorderEggVariablesEggIdPathParameter' + '/api/admin/eggs/{egg_id}/variables/{variable_id}': + put: + summary: 'Update egg variable' + operationId: adminUpdateEggVariable + description: 'Updates a startup variable for an egg.' + parameters: [] + responses: + '200': + description: 'Egg variable updated.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminEggVariableResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminUpdateEggVariableRequest' + delete: + summary: 'Delete egg variable' + operationId: adminDeleteEggVariable + description: 'Deletes a startup variable from an egg.' + parameters: [] + responses: + '204': + description: 'Egg variable deleted.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: egg_id + description: 'The egg ID.' + required: true + schema: + $ref: '#/components/schemas/AdminUpdateEggVariableEggIdPathParameter' + - + in: path + name: variable_id + description: 'The variable ID.' + required: true + schema: + $ref: '#/components/schemas/AdminUpdateEggVariableVariableIdPathParameter' + '/api/admin/eggs/{egg_id}/scripts': + get: + summary: 'Get egg install script' + operationId: adminGetEggInstallScript + description: 'Returns an egg with its install script block.' + parameters: [] + responses: + '200': + description: 'Egg install script returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminEggResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + put: + summary: 'Update egg install script' + operationId: adminUpdateEggInstallScript + description: 'Updates the install script configuration for an egg.' + parameters: [] + responses: + '200': + description: 'Egg install script updated.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminEggResource' + '400': + description: 'The selected copy source is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: false + content: + application/json: + schema: + $ref: '#/components/schemas/AdminUpdateEggInstallScriptRequest' + parameters: + - + in: path + name: egg_id + description: 'The egg ID.' + required: true + schema: + $ref: '#/components/schemas/AdminGetEggInstallScriptEggIdPathParameter' + '/api/admin/eggs/{egg_id}/export': + get: + summary: 'Export egg' + operationId: adminExportEgg + description: 'Downloads an egg share JSON file.' + parameters: [] + responses: + '200': + description: 'Egg share file returned.' + content: + text/plain: + schema: + $ref: '#/components/schemas/AdminExportEggResponseBody' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: egg_id + description: 'The egg ID.' + required: true + schema: + $ref: '#/components/schemas/AdminExportEggEggIdPathParameter' + '/api/admin/eggs/{egg_id}/import': + post: + summary: 'Update egg from import' + operationId: adminUpdateEggFromImport + description: 'Updates an existing egg from an uploaded egg share JSON file.' + parameters: [] + responses: + '200': + description: 'Egg updated from import.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminEggResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + multipart/form-data: + schema: + $ref: '#/components/schemas/AdminUpdateEggFromImportRequest' + parameters: + - + in: path + name: egg_id + description: 'The egg ID.' + required: true + schema: + $ref: '#/components/schemas/AdminUpdateEggFromImportEggIdPathParameter' + '/api/admin/eggs/{egg_id}/tags': + put: + summary: 'Sync egg tags' + operationId: adminSyncEggTags + description: 'Replaces the tags applied to an egg. Values may be tag IDs or new tag names.' + parameters: [] + responses: + '200': + description: 'Tags applied to the egg.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminTagListResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: false + content: + application/json: + schema: + $ref: '#/components/schemas/AdminSyncEggTagsRequest' + parameters: + - + in: path + name: egg_id + description: 'The egg ID.' + required: true + schema: + $ref: '#/components/schemas/AdminSyncEggTagsEggIdPathParameter' + /api/admin/eggs/import: + post: + summary: 'Import egg' + operationId: adminImportEgg + description: 'Creates an egg from an uploaded egg share JSON file.' + parameters: [] + responses: + '201': + description: 'Egg imported.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminEggResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + multipart/form-data: + schema: + $ref: '#/components/schemas/AdminImportEggRequest' + /api/admin/eggs: + get: + summary: 'List eggs' + operationId: adminListEggs + description: 'Returns a paginated list of egg definitions.' + parameters: + - + in: query + name: 'filter[name]' + description: 'Filter eggs by name.' + required: false + schema: + $ref: '#/components/schemas/AdminListEggsFilterNameQueryParameter' + - + in: query + name: sort + description: 'Sort eggs by id or name. Prefix with a hyphen for descending order.' + required: false + schema: + $ref: '#/components/schemas/AdminListEggsSortQueryParameter' + - + in: query + name: page + description: 'Page number to return.' + required: false + schema: + $ref: '#/components/schemas/AdminListEggsPageQueryParameter' + - + in: query + name: per_page + description: 'Results to return per page.' + required: false + schema: + $ref: '#/components/schemas/AdminListEggsPerPageQueryParameter' + - + in: query + name: include + description: 'Comma-separated relationships to include: variables, tags, servers.' + required: false + schema: + $ref: '#/components/schemas/AdminListEggsIncludeQueryParameter' + responses: + '200': + description: 'Eggs returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminEggPaginatedResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + post: + summary: 'Create egg' + operationId: adminCreateEgg + description: 'Creates an egg definition.' + parameters: [] + responses: + '201': + description: 'Egg created.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminEggResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminCreateEggRequest' + '/api/admin/eggs/{egg_id}': + get: + summary: 'Get egg' + operationId: adminGetEgg + description: 'Returns a single egg definition by ID.' + parameters: + - + in: query + name: include + description: 'Comma-separated relationships to include: variables, tags, servers.' + required: false + schema: + $ref: '#/components/schemas/AdminGetEggIncludeQueryParameter' + responses: + '200': + description: 'Egg returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminEggResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + put: + summary: 'Update egg' + operationId: adminUpdateEgg + description: 'Updates an egg definition.' + parameters: [] + responses: + '200': + description: 'Egg updated.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminEggResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminUpdateEggRequest' + delete: + summary: 'Delete egg' + operationId: adminDeleteEgg + description: 'Deletes an egg definition.' + parameters: [] + responses: + '204': + description: 'Egg deleted.' + '400': + description: 'The egg has active servers or child eggs.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: egg_id + description: 'The egg ID.' + required: true + schema: + $ref: '#/components/schemas/AdminGetEggEggIdPathParameter' + /api/admin/tags: + get: + summary: 'List tags' + operationId: adminListTags + description: 'Returns a paginated list of tags.' + parameters: + - + in: query + name: 'filter[name]' + description: 'Filter tags by name.' + required: false + schema: + $ref: '#/components/schemas/AdminListTagsFilterNameQueryParameter' + - + in: query + name: 'filter[slug]' + description: 'Filter tags by slug.' + required: false + schema: + $ref: '#/components/schemas/AdminListTagsFilterSlugQueryParameter' + - + in: query + name: sort + description: 'Sort tags by id, name, or slug. Prefix with a hyphen for descending order.' + required: false + schema: + $ref: '#/components/schemas/AdminListTagsSortQueryParameter' + - + in: query + name: page + description: 'Page number to return.' + required: false + schema: + $ref: '#/components/schemas/AdminListTagsPageQueryParameter' + - + in: query + name: per_page + description: 'Results to return per page.' + required: false + schema: + $ref: '#/components/schemas/AdminListTagsPerPageQueryParameter' + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports "eggs" and "nodes".' + required: false + schema: + $ref: '#/components/schemas/AdminListTagsIncludeQueryParameter' + responses: + '200': + description: 'Tags returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminTagPaginatedResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + post: + summary: 'Create tag' + operationId: adminCreateTag + description: 'Creates a tag.' + parameters: [] + responses: + '201': + description: 'Tag created.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminTagResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminCreateTagRequest' + '/api/admin/tags/{tag_id}': + get: + summary: 'Get tag' + operationId: adminGetTag + description: 'Returns a single tag by ID.' + parameters: + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports "eggs" and "nodes".' + required: false + schema: + $ref: '#/components/schemas/AdminGetTagIncludeQueryParameter' + responses: + '200': + description: 'Tag returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminTagResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + put: + summary: 'Update tag' + operationId: adminUpdateTag + description: 'Updates an existing tag. Built-in game tags cannot be edited.' + parameters: [] + responses: + '200': + description: 'Tag updated.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminTagResource' + '400': + description: 'The tag is a built-in game tag.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminUpdateTagRequest' + delete: + summary: 'Delete tag' + operationId: adminDeleteTag + description: 'Deletes a tag and detaches it from every egg and node.' + parameters: [] + responses: + '204': + description: 'Tag deleted.' + '400': + description: 'The tag is a built-in game tag.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: tag_id + description: 'The ID of the tag.' + required: true + schema: + $ref: '#/components/schemas/AdminGetTagTagIdPathParameter' + /api/admin/settings: + get: + summary: 'Get settings' + operationId: adminGetSettings + description: 'Returns current general, mail, advanced, and metadata settings.' + parameters: [] + responses: + '200': + description: 'Settings returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminSettingsResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + /api/admin/settings/general: + put: + summary: 'Update general settings' + operationId: adminUpdateGeneralSettings + description: 'Updates panel branding, 2FA requirements, and default locale settings.' + parameters: [] + responses: + '204': + description: 'General settings updated.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminUpdateGeneralSettingsRequest' + /api/admin/settings/mail: + put: + summary: 'Update mail settings' + operationId: adminUpdateMailSettings + description: 'Updates SMTP mail settings and restarts queued workers so they reload configuration.' + parameters: [] + responses: + '204': + description: 'Mail settings updated.' + '400': + description: 'The panel is not configured to use SMTP mail.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: false + content: + application/json: + schema: + $ref: '#/components/schemas/AdminUpdateMailSettingsRequest' + /api/admin/settings/mail/test: + post: + summary: 'Send test mail' + operationId: adminSendTestMail + description: 'Sends a test email to the authenticated administrator using the configured mail transport.' + parameters: [] + responses: + '204': + description: 'Test mail queued.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '500': + description: 'The configured mail transport failed to send the message.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + /api/admin/settings/advanced: + put: + summary: 'Update advanced settings' + operationId: adminUpdateAdvancedSettings + description: 'Updates reCAPTCHA, HTTP client timeout, and client allocation feature settings.' + parameters: [] + responses: + '204': + description: 'Advanced settings updated.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminUpdateAdvancedSettingsRequest' + /api/admin/database-hosts: + get: + summary: 'List database hosts' + operationId: adminListDatabaseHosts + description: 'Returns a paginated list of database hosts.' + parameters: + - + in: query + name: page + description: 'Page number to retrieve.' + required: false + schema: + $ref: '#/components/schemas/AdminListDatabaseHostsPageQueryParameter' + - + in: query + name: per_page + description: 'Results to return per page.' + required: false + schema: + $ref: '#/components/schemas/AdminListDatabaseHostsPerPageQueryParameter' + - + in: query + name: 'filter[name]' + description: 'Filter hosts by name.' + required: false + schema: + $ref: '#/components/schemas/AdminListDatabaseHostsFilterNameQueryParameter' + - + in: query + name: 'filter[host]' + description: 'Filter hosts by address or hostname.' + required: false + schema: + $ref: '#/components/schemas/AdminListDatabaseHostsFilterHostQueryParameter' + - + in: query + name: sort + description: 'Sort hosts by ID, name, or creation date. Prefix with a hyphen for descending order.' + required: false + schema: + $ref: '#/components/schemas/AdminListDatabaseHostsSortQueryParameter' + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports node and databases.' + required: false + schema: + $ref: '#/components/schemas/AdminListDatabaseHostsIncludeQueryParameter' + responses: + '200': + description: 'Database hosts returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminDatabaseHostPaginatedResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + post: + summary: 'Create database host' + operationId: adminCreateDatabaseHost + description: 'Creates a database host after validating that the panel can connect to it.' + parameters: [] + responses: + '201': + description: 'Database host created.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminDatabaseHostResource' + '400': + description: 'The panel could not connect to the database host.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminCreateDatabaseHostRequest' + '/api/admin/database-hosts/{databaseHost_id}': + get: + summary: 'Get database host' + operationId: adminGetDatabaseHost + description: 'Returns a single database host by ID.' + parameters: + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports node and databases.' + required: false + schema: + $ref: '#/components/schemas/AdminGetDatabaseHostIncludeQueryParameter' + responses: + '200': + description: 'Database host returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminDatabaseHostResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + put: + summary: 'Update database host' + operationId: adminUpdateDatabaseHost + description: 'Updates a database host after validating that the panel can connect to the supplied host details.' + parameters: [] + responses: + '200': + description: 'Database host updated.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminDatabaseHostResource' + '400': + description: 'The panel could not connect to the database host.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminUpdateDatabaseHostRequest' + delete: + summary: 'Delete database host' + operationId: adminDeleteDatabaseHost + description: 'Deletes a database host when no server databases depend on it.' + parameters: [] + responses: + '204': + description: 'Database host deleted.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: databaseHost_id + description: 'The ID of the databaseHost.' + required: true + schema: + $ref: '#/components/schemas/AdminGetDatabaseHostDatabaseHostIdPathParameter' + '/api/admin/database-hosts/{databaseHost_id}/databases': + get: + summary: 'List database host databases' + operationId: adminListDatabaseHostDatabases + description: 'Returns a paginated list of server databases assigned to a database host.' + parameters: + - + in: query + name: page + description: 'Page number to retrieve.' + required: false + schema: + $ref: '#/components/schemas/AdminListDatabaseHostDatabasesPageQueryParameter' + - + in: query + name: per_page + description: 'Results to return per page.' + required: false + schema: + $ref: '#/components/schemas/AdminListDatabaseHostDatabasesPerPageQueryParameter' + responses: + '200': + description: 'Databases returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminDatabasePaginatedResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: databaseHost_id + description: 'The ID of the databaseHost.' + required: true + schema: + $ref: '#/components/schemas/AdminListDatabaseHostDatabasesDatabaseHostIdPathParameter' + /api/admin/api-keys: + get: + summary: 'List API keys' + operationId: adminListAPIKeys + description: 'Returns a paginated list of application API keys.' + parameters: + - + in: query + name: 'filter[memo]' + description: 'Filter keys by memo.' + required: false + schema: + $ref: '#/components/schemas/AdminListAPIKeysFilterMemoQueryParameter' + - + in: query + name: 'filter[identifier]' + description: 'Filter keys by identifier.' + required: false + schema: + $ref: '#/components/schemas/AdminListAPIKeysFilterIdentifierQueryParameter' + - + in: query + name: sort + description: 'Sort keys by ID, memo, or creation date. Prefix with a hyphen for descending order.' + required: false + schema: + $ref: '#/components/schemas/AdminListAPIKeysSortQueryParameter' + - + in: query + name: page + description: 'Page number to retrieve.' + required: false + schema: + $ref: '#/components/schemas/AdminListAPIKeysPageQueryParameter' + - + in: query + name: per_page + description: 'Results to return per page.' + required: false + schema: + $ref: '#/components/schemas/AdminListAPIKeysPerPageQueryParameter' + responses: + '200': + description: 'API keys returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminApiKeyPaginatedResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + post: + summary: 'Create API key' + operationId: adminCreateAPIKey + description: 'Creates a new application API key and returns the plaintext secret token once.' + parameters: [] + responses: + '201': + description: 'API key created.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminApiKeyResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminCreateAPIKeyRequest' + '/api/admin/api-keys/{identifier}': + get: + summary: 'Get API key' + operationId: adminGetAPIKey + description: 'Returns a single application API key by identifier without exposing its token.' + parameters: [] + responses: + '200': + description: 'API key returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminApiKeyResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + put: + summary: 'Update API key' + operationId: adminUpdateAPIKey + description: 'Updates an application API key memo and resource permissions without regenerating the token.' + parameters: [] + responses: + '200': + description: 'API key updated.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminApiKeyResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Admin API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AdminUpdateAPIKeyRequest' + delete: + summary: 'Delete API key' + operationId: adminDeleteAPIKey + description: 'Deletes an application API key by identifier.' + parameters: [] + responses: + '204': + description: 'API key deleted.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + parameters: + - + in: path + name: identifier + description: 'The server UUID or short UUID.' + required: true + schema: + $ref: '#/components/schemas/AdminGetAPIKeyIdentifierPathParameter' + /api/admin/version: + get: + summary: 'Get version information' + operationId: adminGetVersionInformation + description: 'Returns panel, Wings, and project version metadata.' + parameters: [] + responses: + '200': + description: 'Version information returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/AdminVersionInformationResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Admin API' + /api/application/users: + get: + summary: 'List users' + operationId: applicationListUsers + description: 'Returns a paginated list of panel users visible to the application API key.' + parameters: + - + in: query + name: per_page + description: 'Number of users to return per page, up to 100.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListUsersPerPageQueryParameter' + - + in: query + name: 'filter[email]' + description: 'Filter users by email address.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListUsersFilterEmailQueryParameter' + - + in: query + name: 'filter[uuid]' + description: 'Filter users by UUID.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListUsersFilterUuidQueryParameter' + - + in: query + name: 'filter[username]' + description: 'Filter users by username.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListUsersFilterUsernameQueryParameter' + - + in: query + name: 'filter[external_id]' + description: 'Filter users by external identifier.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListUsersFilterExternalIdQueryParameter' + - + in: query + name: sort + description: 'Sort users by id or uuid. Prefix with "-" for descending order.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListUsersSortQueryParameter' + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports "servers" when the key can read servers.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListUsersIncludeQueryParameter' + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationUserPaginatedResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Application API' + post: + summary: 'Create user' + operationId: applicationCreateUser + description: 'Creates a new panel user and returns the created resource.' + parameters: [] + responses: + '201': + description: 'User created.' + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationUserResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Application API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationCreateUserRequest' + '/api/application/users/{user_id}': + get: + summary: 'Get user' + operationId: applicationGetUser + description: 'Returns a single panel user by internal numeric ID.' + parameters: + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports "servers" when the key can read servers.' + required: false + schema: + $ref: '#/components/schemas/ApplicationGetUserIncludeQueryParameter' + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationUserResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Application API' + patch: + summary: 'Update user' + operationId: applicationUpdateUser + description: 'Updates account details for an existing panel user.' + parameters: [] + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationUserResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Application API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationUpdateUserRequest' + delete: + summary: 'Delete user' + operationId: applicationDeleteUser + description: 'Deletes a panel user by internal numeric ID.' + parameters: [] + responses: + '204': + description: 'User deleted.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Application API' + parameters: + - + in: path + name: user_id + description: 'The user ID.' + required: true + schema: + $ref: '#/components/schemas/ApplicationGetUserUserIdPathParameter' + '/api/application/users/external/{external_id}': + get: + summary: 'Get user by external ID' + operationId: applicationGetUserByExternalID + description: 'Returns a single panel user by its external identifier.' + parameters: [] + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationUserResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Application API' + parameters: + - + in: path + name: external_id + description: 'The external ID.' + required: true + schema: + $ref: '#/components/schemas/ApplicationGetUserByExternalIDExternalIdPathParameter' + /api/application/nodes: + get: + summary: 'List nodes' + operationId: applicationListNodes + description: 'Returns a paginated list of Wings nodes registered on the panel.' + parameters: + - + in: query + name: per_page + description: 'Number of nodes to return per page, up to 100.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListNodesPerPageQueryParameter' + - + in: query + name: 'filter[uuid]' + description: 'Filter nodes by UUID.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListNodesFilterUuidQueryParameter' + - + in: query + name: 'filter[name]' + description: 'Filter nodes by name.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListNodesFilterNameQueryParameter' + - + in: query + name: 'filter[fqdn]' + description: 'Filter nodes by fully qualified domain name.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListNodesFilterFqdnQueryParameter' + - + in: query + name: 'filter[daemon_token_id]' + description: 'Filter nodes by daemon token identifier.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListNodesFilterDaemonTokenIdQueryParameter' + - + in: query + name: sort + description: 'Sort nodes by id, uuid, memory, or disk. Prefix with "-" for descending order.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListNodesSortQueryParameter' + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports "allocations", "location", and "servers" when the key can read those resources.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListNodesIncludeQueryParameter' + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationNodePaginatedResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Application API' + post: + summary: 'Create node' + operationId: applicationCreateNode + description: 'Creates a new Wings node and returns the created resource.' + parameters: [] + responses: + '201': + description: 'Node created.' + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationNodeResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Application API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationCreateNodeRequest' + /api/application/nodes/deployable: + get: + summary: 'List deployable nodes' + operationId: applicationListDeployableNodes + description: 'Returns nodes that can satisfy the requested memory, disk, and optional location deployment constraints.' + parameters: + - + in: query + name: memory + description: 'Memory required for the deployment, in megabytes.' + required: true + schema: + $ref: '#/components/schemas/ApplicationListDeployableNodesMemoryQueryParameter' + - + in: query + name: disk + description: 'Disk required for the deployment, in megabytes.' + required: true + schema: + $ref: '#/components/schemas/ApplicationListDeployableNodesDiskQueryParameter' + - + in: query + name: location_ids + description: 'Restrict results to these location IDs.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListDeployableNodesLocationIdsQueryParameter' + - + in: query + name: page + description: 'Page number to return. When omitted, all viable nodes are returned without pagination metadata.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListDeployableNodesPageQueryParameter' + - + in: query + name: per_page + description: 'Number of nodes to return per page when page is supplied, up to 100.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListDeployableNodesPerPageQueryParameter' + responses: + '200': + description: 'Deployable nodes returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationNodeListResponse' + '400': + description: 'No nodes can satisfy the requested deployment constraints.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Application API' + '/api/application/nodes/{node_id}': + get: + summary: 'Get node' + operationId: applicationGetNode + description: 'Returns a single Wings node by internal numeric ID.' + parameters: + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports "allocations", "location", and "servers" when the key can read those resources.' + required: false + schema: + $ref: '#/components/schemas/ApplicationGetNodeIncludeQueryParameter' + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationNodeResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Application API' + patch: + summary: 'Update node' + operationId: applicationUpdateNode + description: 'Updates an existing Wings node by internal numeric ID.' + parameters: [] + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationNodeResource' + '400': + description: 'The panel saved the node changes but could not persist the configuration to Wings.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Application API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationUpdateNodeRequest' + delete: + summary: 'Delete node' + operationId: applicationDeleteNode + description: 'Deletes a Wings node by internal numeric ID when no servers are attached.' + parameters: [] + responses: + '204': + description: 'Node deleted.' + '400': + description: 'The node has active servers attached.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Application API' + parameters: + - + in: path + name: node_id + description: 'The node ID.' + required: true + schema: + $ref: '#/components/schemas/ApplicationGetNodeNodeIdPathParameter' + '/api/application/nodes/{node_id}/configuration': + get: + summary: 'Get node configuration' + operationId: applicationGetNodeConfiguration + description: 'Returns the Wings configuration payload for a node, including node authentication tokens. Requires write access to nodes.' + parameters: [] + responses: + '200': + description: 'Node configuration.' + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationGetNodeConfigurationResponseBody' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Application API' + parameters: + - + in: path + name: node_id + description: 'The node ID.' + required: true + schema: + $ref: '#/components/schemas/ApplicationGetNodeConfigurationNodeIdPathParameter' + '/api/application/nodes/{node_id}/allocations': + get: + summary: 'List node allocations' + operationId: applicationListNodeAllocations + description: 'Returns a paginated list of allocations belonging to a node.' + parameters: + - + in: query + name: per_page + description: 'Number of allocations to return per page, up to 100.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListNodeAllocationsPerPageQueryParameter' + - + in: query + name: 'filter[ip]' + description: 'Filter allocations by exact IP address.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListNodeAllocationsFilterIpQueryParameter' + - + in: query + name: 'filter[port]' + description: 'Filter allocations by exact port.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListNodeAllocationsFilterPortQueryParameter' + - + in: query + name: 'filter[ip_alias]' + description: 'Filter allocations by IP alias.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListNodeAllocationsFilterIpAliasQueryParameter' + - + in: query + name: 'filter[server_id]' + description: 'Filter allocations by assigned server ID. Empty or non-numeric values return unassigned allocations.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListNodeAllocationsFilterServerIdQueryParameter' + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports "node" and "server" when the key can read those resources.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListNodeAllocationsIncludeQueryParameter' + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationAllocationPaginatedResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Application API' + post: + summary: 'Create node allocations' + operationId: applicationCreateNodeAllocations + description: 'Assigns one or more allocation ports to a node.' + parameters: [] + responses: + '204': + description: 'Allocations created.' + '400': + description: 'The allocation IP, CIDR, or port mapping could not be processed.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Application API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationCreateNodeAllocationsRequest' + parameters: + - + in: path + name: node_id + description: 'The node ID.' + required: true + schema: + $ref: '#/components/schemas/ApplicationListNodeAllocationsNodeIdPathParameter' + '/api/application/nodes/{node_id}/allocations/{allocation_id}': + delete: + summary: 'Delete node allocation' + operationId: applicationDeleteNodeAllocation + description: 'Deletes an allocation from a node when no server is using it.' + parameters: [] + responses: + '204': + description: 'Allocation deleted.' + '400': + description: 'The allocation is currently assigned to a server.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Application API' + parameters: + - + in: path + name: node_id + description: 'The node ID.' + required: true + schema: + $ref: '#/components/schemas/ApplicationDeleteNodeAllocationNodeIdPathParameter' + - + in: path + name: allocation_id + description: 'The ID of the allocation.' + required: true + schema: + $ref: '#/components/schemas/ApplicationDeleteNodeAllocationAllocationIdPathParameter' + /api/application/locations: + get: + summary: 'List locations' + operationId: applicationListLocations + description: 'Returns a paginated list of all locations registered on the panel.' + parameters: + - + in: query + name: per_page + description: 'Number of locations to return per page, up to 100.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListLocationsPerPageQueryParameter' + - + in: query + name: 'filter[short]' + description: 'Filter locations by short identifier.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListLocationsFilterShortQueryParameter' + - + in: query + name: 'filter[long]' + description: 'Filter locations by description.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListLocationsFilterLongQueryParameter' + - + in: query + name: sort + description: 'Sort locations by id. Prefix with "-" for descending order.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListLocationsSortQueryParameter' + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports "nodes" and "servers" when the key can read those resources.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListLocationsIncludeQueryParameter' + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationLocationPaginatedResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Application API' + post: + summary: 'Create location' + operationId: applicationCreateLocation + description: 'Creates a new location and returns the created resource.' + parameters: [] + responses: + '201': + description: 'Location created.' + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationLocationResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Application API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationCreateLocationRequest' + '/api/application/locations/{location_id}': + get: + summary: 'Get location' + operationId: applicationGetLocation + description: 'Returns a single location by internal numeric ID.' + parameters: + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports "nodes" and "servers" when the key can read those resources.' + required: false + schema: + $ref: '#/components/schemas/ApplicationGetLocationIncludeQueryParameter' + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationLocationResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Application API' + patch: + summary: 'Update location' + operationId: applicationUpdateLocation + description: 'Updates an existing location by internal numeric ID.' + parameters: [] + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationLocationResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Application API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationUpdateLocationRequest' + delete: + summary: 'Delete location' + operationId: applicationDeleteLocation + description: 'Deletes a location by internal numeric ID.' + parameters: [] + responses: + '204': + description: 'Location deleted.' + '400': + description: 'The location has active nodes attached.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Application API' + parameters: + - + in: path + name: location_id + description: 'The location ID.' + required: true + schema: + $ref: '#/components/schemas/ApplicationGetLocationLocationIdPathParameter' + /api/application/eggs: + get: + summary: 'List eggs' + operationId: applicationListEggs + description: 'Returns a paginated list of server eggs available on the panel.' + parameters: + - + in: query + name: per_page + description: 'Number of eggs to return per page, up to 100.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListEggsPerPageQueryParameter' + - + in: query + name: 'filter[name]' + description: 'Filter eggs by name.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListEggsFilterNameQueryParameter' + - + in: query + name: 'filter[tag]' + description: 'Filter eggs by tag slug. Separate several slugs with commas to return eggs that carry any of them.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListEggsFilterTagQueryParameter' + - + in: query + name: sort + description: 'Sort eggs by id or name. Prefix with "-" for descending order.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListEggsSortQueryParameter' + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports "servers", "config", "script", "variables", and "tags" when the key can read those resources.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListEggsIncludeQueryParameter' + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationEggPaginatedResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Application API' + '/api/application/eggs/{egg_id}': + get: + summary: 'Get egg' + operationId: applicationGetEgg + description: 'Returns a single egg by internal numeric ID.' + parameters: + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports "servers", "config", "script", "variables", and "tags" when the key can read those resources.' + required: false + schema: + $ref: '#/components/schemas/ApplicationGetEggIncludeQueryParameter' + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationEggResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Application API' + parameters: + - + in: path + name: egg_id + description: 'The egg ID.' + required: true + schema: + $ref: '#/components/schemas/ApplicationGetEggEggIdPathParameter' + /api/application/tags: + get: + summary: 'List tags' + operationId: applicationListTags + description: 'Returns a paginated list of the tags that group eggs.' + parameters: + - + in: query + name: per_page + description: 'Number of tags to return per page, up to 100.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListTagsPerPageQueryParameter' + - + in: query + name: 'filter[name]' + description: 'Filter tags by name.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListTagsFilterNameQueryParameter' + - + in: query + name: 'filter[slug]' + description: 'Filter tags by slug.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListTagsFilterSlugQueryParameter' + - + in: query + name: sort + description: 'Sort tags by id, name, or slug. Prefix with "-" for descending order.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListTagsSortQueryParameter' + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports "eggs" and "nodes" when the key can read those resources.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListTagsIncludeQueryParameter' + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationTagPaginatedResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Application API' + '/api/application/tags/{tag_id}': + get: + summary: 'Get tag' + operationId: applicationGetTag + description: 'Returns a single tag by internal numeric ID.' + parameters: + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports "eggs" and "nodes" when the key can read those resources.' + required: false + schema: + $ref: '#/components/schemas/ApplicationGetTagIncludeQueryParameter' + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationTagResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Application API' + parameters: + - + in: path + name: tag_id + description: 'The ID of the tag.' + required: true + schema: + $ref: '#/components/schemas/ApplicationGetTagTagIdPathParameter' + /api/application/servers: + get: + summary: 'List servers' + operationId: applicationListServers + description: 'Returns a paginated list of servers visible to the application API key.' + parameters: + - + in: query + name: per_page + description: 'Number of servers to return per page, up to 100.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListServersPerPageQueryParameter' + - + in: query + name: 'filter[uuid]' + description: 'Filter servers by UUID.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListServersFilterUuidQueryParameter' + - + in: query + name: 'filter[uuidShort]' + description: 'Filter servers by short UUID identifier.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListServersFilterUuidShortQueryParameter' + - + in: query + name: 'filter[name]' + description: 'Filter servers by name.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListServersFilterNameQueryParameter' + - + in: query + name: 'filter[description]' + description: 'Filter servers by description.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListServersFilterDescriptionQueryParameter' + - + in: query + name: 'filter[image]' + description: 'Filter servers by Docker image.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListServersFilterImageQueryParameter' + - + in: query + name: 'filter[external_id]' + description: 'Filter servers by external identifier.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListServersFilterExternalIdQueryParameter' + - + in: query + name: search + description: 'Search term accepted by the list request. Must not exceed 100 characters.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListServersSearchQueryParameter' + - + in: query + name: sort + description: 'Sort servers by id or uuid. Prefix with "-" for descending order.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListServersSortQueryParameter' + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports "allocations", "user", "subusers", "egg", "variables", "location", "node", "databases", and "transfer" when the key can read those resources.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListServersIncludeQueryParameter' + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationServerPaginatedResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Application API' + post: + summary: 'Create server' + operationId: applicationCreateServer + description: 'Creates a new server using either explicit allocations or automatic deployment constraints.' + parameters: [] + responses: + '201': + description: 'Server created.' + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationServerResource' + '400': + description: 'Automatic deployment could not find a viable node or allocation.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Application API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationCreateServerRequest' + '/api/application/servers/{server_id}': + get: + summary: 'Get server' + operationId: applicationGetServer + description: 'Returns a single server by internal numeric ID.' + parameters: + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports "allocations", "user", "subusers", "egg", "variables", "location", "node", "databases", and "transfer" when the key can read those resources.' + required: false + schema: + $ref: '#/components/schemas/ApplicationGetServerIncludeQueryParameter' + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationServerResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Application API' + delete: + summary: 'Delete server' + operationId: applicationDeleteServerForServersServerId + description: 'Deletes a server. The force route bypasses recoverable Wings or database host deletion failures.' + parameters: [] + responses: + '204': + description: 'Server deleted.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Application API' + parameters: + - + in: path + name: server_id + description: 'The server ID.' + required: true + schema: + $ref: '#/components/schemas/ApplicationGetServerServerIdPathParameter' + '/api/application/servers/external/{external_id}': + get: + summary: 'Get server by external ID' + operationId: applicationGetServerByExternalID + description: 'Returns a single server by its external identifier.' + parameters: [] + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationServerResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Application API' + parameters: + - + in: path + name: external_id + description: 'The external ID.' + required: true + schema: + $ref: '#/components/schemas/ApplicationGetServerByExternalIDExternalIdPathParameter' + '/api/application/servers/{server_id}/details': + patch: + summary: 'Update server details' + operationId: applicationUpdateServerDetails + description: 'Updates ownership and display details for a server.' + parameters: [] + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationServerResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Application API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationUpdateServerDetailsRequest' + parameters: + - + in: path + name: server_id + description: 'The server ID.' + required: true + schema: + $ref: '#/components/schemas/ApplicationUpdateServerDetailsServerIdPathParameter' + '/api/application/servers/{server_id}/build': + patch: + summary: 'Update server build' + operationId: applicationUpdateServerBuild + description: 'Updates resource limits, feature limits, and allocations for a server.' + parameters: [] + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationServerResource' + '400': + description: 'The requested allocation change is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Application API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationUpdateServerBuildRequest' + parameters: + - + in: path + name: server_id + description: 'The server ID.' + required: true + schema: + $ref: '#/components/schemas/ApplicationUpdateServerBuildServerIdPathParameter' + '/api/application/servers/{server_id}/startup': + patch: + summary: 'Update server startup' + operationId: applicationUpdateServerStartup + description: 'Updates startup command, image, egg, and environment variables for a server.' + parameters: [] + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationServerResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + '504': + description: 'Wings could not be reached while syncing startup changes.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Application API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationUpdateServerStartupRequest' + parameters: + - + in: path + name: server_id + description: 'The server ID.' + required: true + schema: + $ref: '#/components/schemas/ApplicationUpdateServerStartupServerIdPathParameter' + '/api/application/servers/{server_id}/suspend': + post: + summary: 'Suspend server' + operationId: applicationSuspendServer + description: 'Marks a server as suspended and syncs the state to Wings.' + parameters: [] + responses: + '204': + description: 'Server suspended.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '409': + description: 'The server is currently being transferred.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '504': + description: 'Wings could not be reached while syncing suspension state.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Application API' + parameters: + - + in: path + name: server_id + description: 'The server ID.' + required: true + schema: + $ref: '#/components/schemas/ApplicationSuspendServerServerIdPathParameter' + '/api/application/servers/{server_id}/unsuspend': + post: + summary: 'Unsuspend server' + operationId: applicationUnsuspendServer + description: 'Clears a server suspension and syncs the state to Wings.' + parameters: [] + responses: + '204': + description: 'Server unsuspended.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '409': + description: 'The server is currently being transferred.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '504': + description: 'Wings could not be reached while syncing suspension state.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Application API' + parameters: + - + in: path + name: server_id + description: 'The server ID.' + required: true + schema: + $ref: '#/components/schemas/ApplicationUnsuspendServerServerIdPathParameter' + '/api/application/servers/{server_id}/reinstall': + post: + summary: 'Reinstall server' + operationId: applicationReinstallServer + description: 'Marks a server for reinstall and asks Wings to reinstall it.' + parameters: [] + responses: + '204': + description: 'Server marked for reinstall.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '504': + description: 'Wings could not be reached while starting reinstall.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Application API' + parameters: + - + in: path + name: server_id + description: 'The server ID.' + required: true + schema: + $ref: '#/components/schemas/ApplicationReinstallServerServerIdPathParameter' + '/api/application/servers/{server_id}/{force}': + delete: + summary: 'Delete server' + operationId: applicationDeleteServerForServersServerIdForce + description: 'Deletes a server. The force route bypasses recoverable Wings or database host deletion failures.' + parameters: [] + responses: + '204': + description: 'Server deleted.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Application API' + parameters: + - + in: path + name: server_id + description: 'The server ID.' + required: true + schema: + $ref: '#/components/schemas/ApplicationDeleteServerServerIdPathParameter' + - + in: path + name: force + description: 'Optional parameter. Whether to force the delete operation.' + required: true + schema: + $ref: '#/components/schemas/ApplicationDeleteServerForcePathParameter' + '/api/application/servers/{server_id}/databases': + get: + summary: 'List server databases' + operationId: applicationListServerDatabases + description: 'Returns all databases attached to a server.' + parameters: + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports "password" and "host" when the key can read database hosts.' + required: false + schema: + $ref: '#/components/schemas/ApplicationListServerDatabasesIncludeQueryParameter' + responses: + '200': + description: 'Server databases returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationServerDatabaseListResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Application API' + post: + summary: 'Create server database' + operationId: applicationCreateServerDatabase + description: 'Creates a database for a server on a configured database host.' + parameters: [] + responses: + '201': + description: 'Database created.' + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationServerDatabaseResource' + '400': + description: 'The server has reached its configured database limit.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Application API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationCreateServerDatabaseRequest' + parameters: + - + in: path + name: server_id + description: 'The server ID.' + required: true + schema: + $ref: '#/components/schemas/ApplicationListServerDatabasesServerIdPathParameter' + '/api/application/servers/{server_id}/databases/{database_id}': + get: + summary: 'Get server database' + operationId: applicationGetServerDatabase + description: 'Returns a single database attached to a server.' + parameters: + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports "password" and "host" when the key can read database hosts.' + required: false + schema: + $ref: '#/components/schemas/ApplicationGetServerDatabaseIncludeQueryParameter' + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ApplicationServerDatabaseResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Application API' + delete: + summary: 'Delete server database' + operationId: applicationDeleteServerDatabase + description: 'Deletes a database attached to a server.' + parameters: [] + responses: + '204': + description: 'Database deleted.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Application API' + parameters: + - + in: path + name: server_id + description: 'The server ID.' + required: true + schema: + $ref: '#/components/schemas/ApplicationGetServerDatabaseServerIdPathParameter' + - + in: path + name: database_id + description: 'The database ID.' + required: true + schema: + $ref: '#/components/schemas/ApplicationGetServerDatabaseDatabaseIdPathParameter' + '/api/application/servers/{server_id}/databases/{database_id}/reset-password': + post: + summary: 'Reset server database password' + operationId: applicationResetServerDatabasePassword + description: 'Rotates the password for a database attached to a server.' + parameters: [] + responses: + '204': + description: 'Database password reset.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Application API' + parameters: + - + in: path + name: server_id + description: 'The server ID.' + required: true + schema: + $ref: '#/components/schemas/ApplicationResetServerDatabasePasswordServerIdPathParameter' + - + in: path + name: database_id + description: 'The database ID.' + required: true + schema: + $ref: '#/components/schemas/ApplicationResetServerDatabasePasswordDatabaseIdPathParameter' + /auth/login: + post: + summary: Login + operationId: authLogin + description: 'Authenticates a browser session. Returns a complete login payload, or a two-factor checkpoint token when the account requires a second factor.' + parameters: [] + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/AuthLoginResponse' + '400': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - Authentication + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AuthLoginRequest' + security: [] + /auth/login/checkpoint: + post: + summary: 'Complete login checkpoint' + operationId: authCompleteLoginCheckpoint + description: 'Completes a two-factor login checkpoint using either a TOTP code or a recovery token.' + parameters: [] + responses: + '200': + description: 'Login completed and a browser session was created.' + content: + application/json: + schema: + $ref: '#/components/schemas/AuthLoginCompleteResponse' + '400': + description: 'The checkpoint token, TOTP code, or recovery token is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - Authentication + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AuthCompleteLoginCheckpointRequest' + security: [] + /auth/password: + post: + summary: 'Request password reset email' + operationId: authRequestPasswordResetEmail + description: 'Sends a password reset email when the account exists. The response is intentionally the same when no matching account is found.' + parameters: [] + responses: + '200': + description: 'Password reset email accepted.' + content: + application/json: + schema: + $ref: '#/components/schemas/AuthPasswordResetEmailResponse' + '400': + description: 'The reCAPTCHA token is invalid or missing.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - Authentication + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AuthRequestPasswordResetEmailRequest' + security: [] + /auth/password/reset: + post: + summary: 'Reset password' + operationId: authResetPassword + description: 'Resets an account password using a password reset token. The response tells the frontend whether the user must return to the login form.' + parameters: [] + responses: + '200': + description: 'Password reset completed.' + content: + application/json: + schema: + $ref: '#/components/schemas/AuthResetPasswordResponse' + '400': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - Authentication + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AuthResetPasswordRequest' + security: [] + /auth/logout: + post: + summary: Logout + operationId: authLogout + description: 'Destroys the current browser session and regenerates the CSRF token.' + parameters: [] + responses: + '204': + description: 'The browser session was destroyed.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - Authentication + security: + - + panelSession: [] + /api/client: + get: + summary: 'List client servers' + operationId: clientListClientServers + description: 'Returns a paginated list of servers the authenticated user can access as an owner, subuser, or administrator.' + parameters: + - + in: query + name: page + description: 'Page number to return.' + required: false + schema: + $ref: '#/components/schemas/ClientListClientServersPageQueryParameter' + - + in: query + name: per_page + description: 'Number of servers to return per page. The maximum is 100.' + required: false + schema: + $ref: '#/components/schemas/ClientListClientServersPerPageQueryParameter' + - + in: query + name: type + description: 'Scope of servers to return. "owner" returns owned servers, "admin" returns admin-accessible servers excluding owned or subuser servers, and "admin-all" returns all servers for root administrators.' + required: false + schema: + $ref: '#/components/schemas/ClientListClientServersTypeQueryParameter' + - + in: query + name: 'filter[uuid]' + description: 'Filter servers by UUID.' + required: false + schema: + $ref: '#/components/schemas/ClientListClientServersFilterUuidQueryParameter' + - + in: query + name: 'filter[name]' + description: 'Filter servers by name.' + required: false + schema: + $ref: '#/components/schemas/ClientListClientServersFilterNameQueryParameter' + - + in: query + name: 'filter[description]' + description: 'Filter servers by description.' + required: false + schema: + $ref: '#/components/schemas/ClientListClientServersFilterDescriptionQueryParameter' + - + in: query + name: 'filter[external_id]' + description: 'Filter servers by external identifier.' + required: false + schema: + $ref: '#/components/schemas/ClientListClientServersFilterExternalIdQueryParameter' + - + in: query + name: 'filter[*]' + description: 'Search across server name, UUID, short UUID, external identifier, or allocation address and port.' + required: false + schema: + $ref: '#/components/schemas/ClientListClientServersFilterWildcardQueryParameter' + responses: + '200': + description: 'Accessible servers returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientServerPaginatedResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Client API' + /api/client/permissions: + get: + summary: 'List server permissions' + operationId: clientListServerPermissions + description: 'Returns the permission keys that can be granted to server subusers, including those registered by enabled extensions under `ext.`.' + parameters: [] + responses: + '200': + description: 'System permission definitions returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientSystemPermissionsResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + '/api/client/extension-progress/{extension}/{job}': + get: + summary: 'Get extension job progress' + operationId: clientGetExtensionJobProgress + description: 'Returns the latest user-scoped progress snapshot, including after reconnect. Expired, disabled, and inaccessible jobs return 404.' + parameters: [] + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientGetExtensionJobProgressResponseBody' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + parameters: + - + in: path + name: extension + description: 'The extension identifier.' + required: true + schema: + $ref: '#/components/schemas/ClientGetExtensionJobProgressExtensionPathParameter' + - + in: path + name: job + description: 'The progress job UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientGetExtensionJobProgressJobPathParameter' + /api/client/account: + get: + summary: 'Get account' + operationId: clientGetAccount + description: 'Returns profile details for the authenticated user.' + parameters: [] + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientUserResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + /api/client/account/two-factor: + get: + summary: 'Get two-factor setup' + operationId: clientGetTwoFactorSetup + description: 'Creates or returns the current two-factor setup payload for the authenticated user.' + parameters: [] + responses: + '200': + description: 'Two-factor setup data returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientTwoFactorSetupResponse' + '400': + description: 'Two-factor authentication is already enabled.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + post: + summary: 'Enable two-factor authentication' + operationId: clientEnableTwoFactorAuthentication + description: 'Enables two-factor authentication for the authenticated user and returns one-time recovery tokens.' + parameters: [] + responses: + '200': + description: 'Two-factor authentication enabled. Store these recovery tokens now; they are not shown again.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientRecoveryTokensResource' + '400': + description: 'The password or TOTP code is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Client API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ClientEnableTwoFactorAuthenticationRequest' + /api/client/account/two-factor/disable: + post: + summary: 'Disable two-factor authentication' + operationId: clientDisableTwoFactorAuthentication + description: 'Disables two-factor authentication for the authenticated user after verifying their password.' + parameters: [] + responses: + '204': + description: 'Two-factor authentication disabled.' + '400': + description: 'The password is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Client API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ClientDisableTwoFactorAuthenticationRequest' + /api/client/account/email: + put: + summary: 'Update account email' + operationId: clientUpdateAccountEmail + description: "Updates the authenticated user's email address after verifying their current password." + parameters: [] + responses: + '204': + description: 'Email address updated.' + '400': + description: 'The current password is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + '429': + description: 'The account has changed email too many times in the current throttle window.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ClientUpdateAccountEmailRequest' + /api/client/account/password: + put: + summary: 'Update account password' + operationId: clientUpdateAccountPassword + description: "Updates the authenticated user's password and revokes other active sessions where supported." + parameters: [] + responses: + '204': + description: 'Password updated.' + '400': + description: 'The current password is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Client API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ClientUpdateAccountPasswordRequest' + /api/client/account/activity: + get: + summary: 'List account activity' + operationId: clientListAccountActivity + description: 'Returns a paginated list of activity log entries for the authenticated user account.' + parameters: + - + in: query + name: page + description: 'Page number to retrieve.' + required: false + schema: + $ref: '#/components/schemas/ClientListAccountActivityPageQueryParameter' + - + in: query + name: per_page + description: 'Number of activity log entries to return per page. The maximum is 100.' + required: false + schema: + $ref: '#/components/schemas/ClientListAccountActivityPerPageQueryParameter' + - + in: query + name: 'filter[event]' + description: 'Filter activity by event name.' + required: false + schema: + $ref: '#/components/schemas/ClientListAccountActivityFilterEventQueryParameter' + - + in: query + name: 'filter[user]' + description: 'Filter activity by the username or email of the user that performed it.' + required: false + schema: + $ref: '#/components/schemas/ClientListAccountActivityFilterUserQueryParameter' + - + in: query + name: 'filter[user_id]' + description: 'Filter activity to a single user by ID. Preferred over filter[user] when the exact user is known.' + required: false + schema: + $ref: '#/components/schemas/ClientListAccountActivityFilterUserIdQueryParameter' + - + in: query + name: 'filter[event_name]' + description: 'Filter activity to one exact event name. Preferred over filter[event], which matches substrings.' + required: false + schema: + $ref: '#/components/schemas/ClientListAccountActivityFilterEventNameQueryParameter' + - + in: query + name: sort + description: 'Sort activity by timestamp. Prefix with "-" for descending order.' + required: false + schema: + $ref: '#/components/schemas/ClientListAccountActivitySortQueryParameter' + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports actor.' + required: false + schema: + $ref: '#/components/schemas/ClientListAccountActivityIncludeQueryParameter' + responses: + '200': + description: 'Activity logs returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientActivityLogPaginatedResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Client API' + /api/client/account/activity/filters: + get: + summary: 'List account activity filter options' + operationId: clientListAccountActivityFilterOptions + description: 'Returns the distinct events and users present in the account activity log.' + parameters: [] + responses: + '200': + description: 'Filter options returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientListAccountActivityFilterOptionsResponseBody' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + /api/client/account/api-keys: + get: + summary: 'List account API keys' + operationId: clientListAccountAPIKeys + description: 'Returns all client API keys owned by the authenticated user.' + parameters: [] + responses: + '200': + description: 'API keys returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientApiKeyListResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + post: + summary: 'Create account API key' + operationId: clientCreateAccountAPIKey + description: 'Creates a client API key for the authenticated user and returns the secret token once.' + parameters: [] + responses: + '200': + description: 'API key created.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientApiKeyResource' + '400': + description: 'The account already has the maximum number of API keys.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Client API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ClientCreateAccountAPIKeyRequest' + '/api/client/account/api-keys/{identifier}': + delete: + summary: 'Delete account API key' + operationId: clientDeleteAccountAPIKey + description: 'Deletes one client API key owned by the authenticated user.' + parameters: [] + responses: + '204': + description: 'API key deleted.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + parameters: + - + in: path + name: identifier + description: 'The server UUID or short UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientDeleteAccountAPIKeyIdentifierPathParameter' + /api/client/account/ssh-keys: + get: + summary: 'List SSH keys' + operationId: clientListSSHKeys + description: 'Returns all SSH public keys configured for the authenticated user.' + parameters: [] + responses: + '200': + description: 'SSH keys returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientSshKeyListResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + post: + summary: 'Create SSH key' + operationId: clientCreateSSHKey + description: 'Adds an SSH public key to the authenticated user account.' + parameters: [] + responses: + '200': + description: 'SSH key created.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientSshKeyResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Client API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ClientCreateSSHKeyRequest' + /api/client/account/ssh-keys/remove: + post: + summary: 'Delete SSH key' + operationId: clientDeleteSSHKey + description: 'Deletes an SSH key from the authenticated user account by fingerprint. Missing keys are treated as already deleted.' + parameters: [] + responses: + '204': + description: 'SSH key deleted or already absent.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Client API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ClientDeleteSSHKeyRequest' + '/api/client/servers/{server_uuid}': + get: + summary: 'Get server' + operationId: clientGetServer + description: 'Returns details for one server the authenticated user can access.' + parameters: [] + responses: + '200': + description: 'Server details returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientServerResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientGetServerServerUuidPathParameter' + '/api/client/servers/{server_uuid}/websocket': + get: + summary: 'Get websocket credentials' + operationId: clientGetWebsocketCredentials + description: 'Returns a short-lived Wings websocket token and socket URL for the server.' + parameters: [] + responses: + '200': + description: 'Websocket credentials returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientGetWebsocketCredentialsResponseBody' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientGetWebsocketCredentialsServerUuidPathParameter' + '/api/client/servers/{server_uuid}/resources': + get: + summary: 'Get server resources' + operationId: clientGetServerResources + description: 'Returns the latest cached resource utilization reported by Wings for the server.' + parameters: [] + responses: + '200': + description: 'Resource utilization returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientStatsResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '502': + description: 'Wings could not be reached for resource utilization.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientGetServerResourcesServerUuidPathParameter' + '/api/client/servers/{server_uuid}/logs': + get: + summary: 'Get server logs' + operationId: clientGetServerLogs + description: 'Returns the most recent console output lines Wings holds for the server, oldest first.' + parameters: + - + in: query + name: lines + description: 'Number of lines to return. Defaults to the maximum of 100.' + required: false + schema: + $ref: '#/components/schemas/ClientGetServerLogsLinesQueryParameter' + responses: + '200': + description: 'Console output returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientServerLogsResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + '502': + description: 'Wings could not read the console output.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientGetServerLogsServerUuidPathParameter' + '/api/client/servers/{server_uuid}/extension-progress/{extension}/{job}': + get: + summary: 'Get server extension job progress' + operationId: clientGetServerExtensionJobProgress + description: 'Returns the latest server-scoped snapshot to its creator or users holding the operation permission. Expired, disabled, and inaccessible jobs return 404.' + parameters: [] + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientGetServerExtensionJobProgressResponseBody' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientGetServerExtensionJobProgressServerUuidPathParameter' + - + in: path + name: extension + description: 'The extension identifier.' + required: true + schema: + $ref: '#/components/schemas/ClientGetServerExtensionJobProgressExtensionPathParameter' + - + in: path + name: job + description: 'The progress job UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientGetServerExtensionJobProgressJobPathParameter' + '/api/client/servers/{server_uuid}/activity': + get: + summary: 'List server activity' + operationId: clientListServerActivity + description: 'Returns a paginated list of activity log entries for the server.' + parameters: + - + in: query + name: page + description: 'Page number to retrieve.' + required: false + schema: + $ref: '#/components/schemas/ClientListServerActivityPageQueryParameter' + - + in: query + name: per_page + description: 'Number of activity log entries to return per page. The maximum is 100.' + required: false + schema: + $ref: '#/components/schemas/ClientListServerActivityPerPageQueryParameter' + - + in: query + name: 'filter[event]' + description: 'Filter activity by event name.' + required: false + schema: + $ref: '#/components/schemas/ClientListServerActivityFilterEventQueryParameter' + - + in: query + name: 'filter[user]' + description: 'Filter activity by the username or email of the user that performed it.' + required: false + schema: + $ref: '#/components/schemas/ClientListServerActivityFilterUserQueryParameter' + - + in: query + name: 'filter[user_id]' + description: 'Filter activity to a single user by ID. Preferred over filter[user] when the exact user is known.' + required: false + schema: + $ref: '#/components/schemas/ClientListServerActivityFilterUserIdQueryParameter' + - + in: query + name: 'filter[event_name]' + description: 'Filter activity to one exact event name. Preferred over filter[event], which matches substrings.' + required: false + schema: + $ref: '#/components/schemas/ClientListServerActivityFilterEventNameQueryParameter' + - + in: query + name: sort + description: 'Sort activity by timestamp. Prefix with "-" for descending order.' + required: false + schema: + $ref: '#/components/schemas/ClientListServerActivitySortQueryParameter' + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports actor.' + required: false + schema: + $ref: '#/components/schemas/ClientListServerActivityIncludeQueryParameter' + responses: + '200': + description: 'Server activity logs returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientActivityLogPaginatedResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Client API' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientListServerActivityServerUuidPathParameter' + '/api/client/servers/{server_uuid}/activity/filters': + get: + summary: 'List server activity filter options' + operationId: clientListServerActivityFilterOptions + description: 'Returns the distinct events and users present in the server activity log.' + parameters: [] + responses: + '200': + description: 'Filter options returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientListServerActivityFilterOptionsResponseBody' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientListServerActivityFilterOptionsServerUuidPathParameter' + '/api/client/servers/{server_uuid}/command': + post: + summary: 'Send server command' + operationId: clientSendServerCommand + description: 'Sends a console command to the running server through Wings.' + parameters: [] + responses: + '204': + description: 'Command accepted by Wings.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + '502': + description: 'The server is not online or Wings rejected the command.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ClientSendServerCommandRequest' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientSendServerCommandServerUuidPathParameter' + '/api/client/servers/{server_uuid}/power': + post: + summary: 'Send power action' + operationId: clientSendPowerAction + description: 'Sends a power signal to the server through Wings.' + parameters: [] + responses: + '204': + description: 'Power signal accepted by Wings.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Client API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ClientSendPowerActionRequest' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientSendPowerActionServerUuidPathParameter' + '/api/client/servers/{server_uuid}/databases': + get: + summary: 'List server databases' + operationId: clientListServerDatabases + description: 'Returns databases attached to a server visible to the authenticated user.' + parameters: + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports "password" when the user can view database passwords.' + required: false + schema: + $ref: '#/components/schemas/ClientListServerDatabasesIncludeQueryParameter' + responses: + '200': + description: 'Server databases returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientServerDatabaseListResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + post: + summary: 'Create server database' + operationId: clientCreateServerDatabase + description: 'Creates a database for a server on an automatically selected database host.' + parameters: + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports "password" when the user can view database passwords.' + required: false + schema: + $ref: '#/components/schemas/ClientCreateServerDatabaseIncludeQueryParameter' + responses: + '200': + description: 'Database created.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientServerDatabaseResource' + '400': + description: 'The server has reached its configured database limit or client database creation is disabled.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Client API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ClientCreateServerDatabaseRequest' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientListServerDatabasesServerUuidPathParameter' + '/api/client/servers/{server_uuid}/databases/{database_id}/rotate-password': + post: + summary: 'Rotate server database password' + operationId: clientRotateServerDatabasePassword + description: 'Rotates the password for a database attached to a server and returns the updated database.' + parameters: + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports "password" when the user can view database passwords.' + required: false + schema: + $ref: '#/components/schemas/ClientRotateServerDatabasePasswordIncludeQueryParameter' + responses: + '200': + description: 'Database password rotated.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientServerDatabaseResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientRotateServerDatabasePasswordServerUuidPathParameter' + - + in: path + name: database_id + description: 'The database ID.' + required: true + schema: + $ref: '#/components/schemas/ClientRotateServerDatabasePasswordDatabaseIdPathParameter' + '/api/client/servers/{server_uuid}/databases/{database_id}': + delete: + summary: 'Delete server database' + operationId: clientDeleteServerDatabase + description: 'Deletes a database attached to a server.' + parameters: [] + responses: + '204': + description: 'Database deleted.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientDeleteServerDatabaseServerUuidPathParameter' + - + in: path + name: database_id + description: 'The database ID.' + required: true + schema: + $ref: '#/components/schemas/ClientDeleteServerDatabaseDatabaseIdPathParameter' + '/api/client/servers/{server_uuid}/files/list': + get: + summary: 'List files' + operationId: clientListFiles + description: 'Returns files and folders in a server directory.' + parameters: + - + in: query + name: directory + description: 'Directory to list. Defaults to the server root.' + required: false + schema: + $ref: '#/components/schemas/ClientListFilesDirectoryQueryParameter' + responses: + '200': + description: 'Directory contents returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientFileObjectListResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + '502': + description: 'Wings could not list the directory.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientListFilesServerUuidPathParameter' + '/api/client/servers/{server_uuid}/files/contents': + get: + summary: 'Get file contents' + operationId: clientGetFileContents + description: 'Returns raw text contents for a server file.' + parameters: + - + in: query + name: file + description: 'Path to the file to read.' + required: true + schema: + $ref: '#/components/schemas/ClientGetFileContentsFileQueryParameter' + responses: + '200': + description: 'File contents returned as text/plain.' + content: + text/plain: + schema: + $ref: '#/components/schemas/ClientGetFileContentsResponseBody' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + '502': + description: 'Wings could not read the file.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientGetFileContentsServerUuidPathParameter' + '/api/client/servers/{server_uuid}/files/download': + get: + summary: 'Get file download URL' + operationId: clientGetFileDownloadURL + description: 'Returns a short-lived signed URL for downloading a server file directly from Wings.' + parameters: + - + in: query + name: file + description: 'Path to the file to download.' + required: true + schema: + $ref: '#/components/schemas/ClientGetFileDownloadURLFileQueryParameter' + responses: + '200': + description: 'Signed download URL returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientSignedUrlResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + '502': + description: 'Wings could not create the download URL.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientGetFileDownloadURLServerUuidPathParameter' + '/api/client/servers/{server_uuid}/files/rename': + put: + summary: 'Rename files' + operationId: clientRenameFiles + description: 'Renames one or more files or folders in a server directory.' + parameters: [] + responses: + '204': + description: 'Files renamed.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + '502': + description: 'Wings could not rename the files.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + requestBody: + required: false + content: + application/json: + schema: + $ref: '#/components/schemas/ClientRenameFilesRequest' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientRenameFilesServerUuidPathParameter' + '/api/client/servers/{server_uuid}/files/copy': + post: + summary: 'Copy file' + operationId: clientCopyFile + description: 'Creates a copy of a file on the server.' + parameters: [] + responses: + '204': + description: 'File copied.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + '502': + description: 'Wings could not copy the file.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ClientCopyFileRequest' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientCopyFileServerUuidPathParameter' + '/api/client/servers/{server_uuid}/files/write': + post: + summary: 'Write file contents' + operationId: clientWriteFileContents + description: 'Writes the raw request body to a server file. This endpoint does not expect a JSON wrapper for the file contents.' + parameters: + - + in: query + name: file + description: 'Path to the file to write.' + required: true + schema: + $ref: '#/components/schemas/ClientWriteFileContentsFileQueryParameter' + responses: + '204': + description: 'File contents written.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + '502': + description: 'Wings could not write the file.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + requestBody: + required: true + content: + text/plain: + schema: + $ref: '#/components/schemas/ClientWriteFileContentsRequest' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientWriteFileContentsServerUuidPathParameter' + '/api/client/servers/{server_uuid}/files/compress': + post: + summary: 'Compress files' + operationId: clientCompressFiles + description: 'Creates an archive from one or more files or folders in a server directory.' + parameters: [] + responses: + '200': + description: 'Archive created.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientFileObjectResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + '502': + description: 'Wings could not create the archive.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + requestBody: + required: false + content: + application/json: + schema: + $ref: '#/components/schemas/ClientCompressFilesRequest' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientCompressFilesServerUuidPathParameter' + '/api/client/servers/{server_uuid}/files/decompress': + post: + summary: 'Decompress file' + operationId: clientDecompressFile + description: 'Extracts an archive in a server directory.' + parameters: [] + responses: + '204': + description: 'Archive extracted.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + '502': + description: 'Wings could not extract the archive.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ClientDecompressFileRequest' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientDecompressFileServerUuidPathParameter' + '/api/client/servers/{server_uuid}/files/delete': + post: + summary: 'Delete files' + operationId: clientDeleteFiles + description: 'Deletes one or more files or folders from a server directory.' + parameters: [] + responses: + '204': + description: 'Files deleted.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + '502': + description: 'Wings could not delete the files.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + requestBody: + required: false + content: + application/json: + schema: + $ref: '#/components/schemas/ClientDeleteFilesRequest' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientDeleteFilesServerUuidPathParameter' + '/api/client/servers/{server_uuid}/files/create-folder': + post: + summary: 'Create folder' + operationId: clientCreateFolder + description: 'Creates a folder in a server directory.' + parameters: [] + responses: + '204': + description: 'Folder created.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + '502': + description: 'Wings could not create the folder.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ClientCreateFolderRequest' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientCreateFolderServerUuidPathParameter' + '/api/client/servers/{server_uuid}/files/chmod': + post: + summary: 'Change file permissions' + operationId: clientChangeFilePermissions + description: 'Updates POSIX mode bits for one or more files or folders in a server directory.' + parameters: [] + responses: + '204': + description: 'File permissions updated.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + '502': + description: 'Wings could not update file permissions.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ClientChangeFilePermissionsRequest' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientChangeFilePermissionsServerUuidPathParameter' + '/api/client/servers/{server_uuid}/files/pull': + post: + summary: 'Pull remote file' + operationId: clientPullRemoteFile + description: 'Requests that Wings download a remote file into a server directory.' + parameters: [] + responses: + '204': + description: 'Remote file pull queued or completed.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + '502': + description: 'Wings could not pull the remote file.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ClientPullRemoteFileRequest' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientPullRemoteFileServerUuidPathParameter' + '/api/client/servers/{server_uuid}/files/upload': + get: + summary: 'Get file upload URL' + operationId: clientGetFileUploadURL + description: 'Returns a short-lived signed URL for uploading a file directly to Wings.' + parameters: [] + responses: + '200': + description: 'Signed upload URL returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientSignedUrlResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientGetFileUploadURLServerUuidPathParameter' + '/api/client/servers/{server_uuid}/schedules': + get: + summary: 'List server schedules' + operationId: clientListServerSchedules + description: 'Returns all schedules configured for the server, including their tasks.' + parameters: + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports tasks.' + required: false + schema: + $ref: '#/components/schemas/ClientListServerSchedulesIncludeQueryParameter' + responses: + '200': + description: 'Server schedules returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientServerScheduleListResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + post: + summary: 'Create server schedule' + operationId: clientCreateServerSchedule + description: 'Creates a schedule for the server.' + parameters: [] + responses: + '200': + description: 'Schedule created.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientServerScheduleResource' + '400': + description: 'The cron expression is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Client API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ClientCreateServerScheduleRequest' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientListServerSchedulesServerUuidPathParameter' + '/api/client/servers/{server_uuid}/schedules/{schedule_id}': + get: + summary: 'Get server schedule' + operationId: clientGetServerSchedule + description: 'Returns one schedule configured for the server, including its tasks.' + parameters: + - + in: query + name: include + description: 'Comma-separated relationships to include. Supports tasks.' + required: false + schema: + $ref: '#/components/schemas/ClientGetServerScheduleIncludeQueryParameter' + responses: + '200': + description: 'Server schedule returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientServerScheduleResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + post: + summary: 'Update server schedule' + operationId: clientUpdateServerSchedule + description: 'Updates a schedule for the server and recalculates its next run time.' + parameters: [] + responses: + '200': + description: 'Schedule updated.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientServerScheduleResource' + '400': + description: 'The cron expression is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Client API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ClientUpdateServerScheduleRequest' + delete: + summary: 'Delete server schedule' + operationId: clientDeleteServerSchedule + description: 'Deletes a schedule and its tasks from the server.' + parameters: [] + responses: + '204': + description: 'Schedule deleted.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientGetServerScheduleServerUuidPathParameter' + - + in: path + name: schedule_id + description: 'The schedule ID.' + required: true + schema: + $ref: '#/components/schemas/ClientGetServerScheduleScheduleIdPathParameter' + '/api/client/servers/{server_uuid}/schedules/{schedule_id}/execute': + post: + summary: 'Execute server schedule' + operationId: clientExecuteServerSchedule + description: 'Queues a schedule to run immediately regardless of its active state.' + parameters: [] + responses: + '202': + description: 'Schedule execution queued.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientExecuteServerScheduleServerUuidPathParameter' + - + in: path + name: schedule_id + description: 'The schedule ID.' + required: true + schema: + $ref: '#/components/schemas/ClientExecuteServerScheduleScheduleIdPathParameter' + '/api/client/servers/{server_uuid}/schedules/{schedule_id}/tasks': + post: + summary: 'Create schedule task' + operationId: clientCreateScheduleTask + description: 'Creates a task in a server schedule.' + parameters: [] + responses: + '200': + description: 'Schedule task created.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientScheduleTaskResource' + '400': + description: 'The schedule has reached its configured task limit.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Client API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ClientCreateScheduleTaskRequest' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientCreateScheduleTaskServerUuidPathParameter' + - + in: path + name: schedule_id + description: 'The schedule ID.' + required: true + schema: + $ref: '#/components/schemas/ClientCreateScheduleTaskScheduleIdPathParameter' + '/api/client/servers/{server_uuid}/schedules/{schedule_id}/tasks/{task_id}': + post: + summary: 'Update schedule task' + operationId: clientUpdateScheduleTask + description: 'Updates a task in a server schedule, including its sequence position.' + parameters: [] + responses: + '200': + description: 'Schedule task updated.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientScheduleTaskResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Client API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ClientUpdateScheduleTaskRequest' + delete: + summary: 'Delete schedule task' + operationId: clientDeleteScheduleTask + description: 'Deletes a task from a server schedule and compacts subsequent sequence IDs.' + parameters: [] + responses: + '204': + description: 'Schedule task deleted.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientUpdateScheduleTaskServerUuidPathParameter' + - + in: path + name: schedule_id + description: 'The schedule ID.' + required: true + schema: + $ref: '#/components/schemas/ClientUpdateScheduleTaskScheduleIdPathParameter' + - + in: path + name: task_id + description: 'The task ID.' + required: true + schema: + $ref: '#/components/schemas/ClientUpdateScheduleTaskTaskIdPathParameter' + '/api/client/servers/{server_uuid}/network/allocations': + get: + summary: 'List server allocations' + operationId: clientListServerAllocations + description: 'Returns all network allocations assigned to the server.' + parameters: [] + responses: + '200': + description: 'Server allocations returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientAllocationListResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + post: + summary: 'Create server allocation' + operationId: clientCreateServerAllocation + description: 'Assigns an available allocation to the server.' + parameters: [] + responses: + '200': + description: 'Allocation assigned.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientAllocationResource' + '400': + description: 'The server has reached its configured allocation limit or no allocation is available.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientListServerAllocationsServerUuidPathParameter' + '/api/client/servers/{server_uuid}/network/allocations/{allocation_id}': + post: + summary: 'Update allocation notes' + operationId: clientUpdateAllocationNotes + description: 'Updates notes attached to a server allocation.' + parameters: [] + responses: + '200': + description: 'Allocation notes updated.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientAllocationResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Client API' + requestBody: + required: false + content: + application/json: + schema: + $ref: '#/components/schemas/ClientUpdateAllocationNotesRequest' + delete: + summary: 'Delete server allocation' + operationId: clientDeleteServerAllocation + description: 'Removes a non-primary allocation from the server and returns it to the available pool.' + parameters: [] + responses: + '204': + description: 'Allocation removed.' + '400': + description: 'The allocation cannot be removed because it is primary or the server has no allocation limit.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientUpdateAllocationNotesServerUuidPathParameter' + - + in: path + name: allocation_id + description: 'The ID of the allocation.' + required: true + schema: + $ref: '#/components/schemas/ClientUpdateAllocationNotesAllocationIdPathParameter' + '/api/client/servers/{server_uuid}/network/allocations/{allocation_id}/primary': + post: + summary: 'Set primary allocation' + operationId: clientSetPrimaryAllocation + description: 'Sets the primary network allocation for the server.' + parameters: [] + responses: + '200': + description: 'Primary allocation updated.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientAllocationResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientSetPrimaryAllocationServerUuidPathParameter' + - + in: path + name: allocation_id + description: 'The ID of the allocation.' + required: true + schema: + $ref: '#/components/schemas/ClientSetPrimaryAllocationAllocationIdPathParameter' + '/api/client/servers/{server_uuid}/users': + get: + summary: 'List server subusers' + operationId: clientListServerSubusers + description: 'Returns subusers assigned to the server.' + parameters: [] + responses: + '200': + description: 'Server subusers returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientServerSubuserListResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + post: + summary: 'Create server subuser' + operationId: clientCreateServerSubuser + description: 'Assigns an existing or new user as a subuser on the server.' + parameters: [] + responses: + '200': + description: 'Server subuser created.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientServerSubuserResource' + '400': + description: 'The user is already assigned to the server or is the server owner.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Client API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ClientCreateServerSubuserRequest' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientListServerSubusersServerUuidPathParameter' + '/api/client/servers/{server_uuid}/users/{user}': + get: + summary: 'Get server subuser' + operationId: clientGetServerSubuser + description: 'Returns one subuser assignment for the server.' + parameters: [] + responses: + '200': + description: 'Server subuser returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientServerSubuserResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + post: + summary: 'Update server subuser' + operationId: clientUpdateServerSubuser + description: 'Updates permissions for a server subuser and revokes their SFTP access tokens.' + parameters: [] + responses: + '200': + description: 'Server subuser updated.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientServerSubuserResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Client API' + requestBody: + required: false + content: + application/json: + schema: + $ref: '#/components/schemas/ClientUpdateServerSubuserRequest' + delete: + summary: 'Delete server subuser' + operationId: clientDeleteServerSubuser + description: 'Removes a subuser assignment from the server and revokes SFTP access tokens.' + parameters: [] + responses: + '204': + description: 'Server subuser removed.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientGetServerSubuserServerUuidPathParameter' + - + in: path + name: user + description: 'The user UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientGetServerSubuserUserPathParameter' + '/api/client/servers/{server_uuid}/backups': + get: + summary: 'List server backups' + operationId: clientListServerBackups + description: 'Returns a paginated list of backups for the server.' + parameters: + - + in: query + name: page + description: 'The page number to return.' + required: false + schema: + $ref: '#/components/schemas/ClientListServerBackupsPageQueryParameter' + - + in: query + name: per_page + description: 'Number of backups to return per page. The maximum is 50.' + required: false + schema: + $ref: '#/components/schemas/ClientListServerBackupsPerPageQueryParameter' + responses: + '200': + description: 'Server backups returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientBackupPaginatedResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Client API' + post: + summary: 'Create server backup' + operationId: clientCreateServerBackup + description: 'Starts a new backup for the server.' + parameters: [] + responses: + '200': + description: 'Backup started.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientBackupResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Client API' + requestBody: + required: false + content: + application/json: + schema: + $ref: '#/components/schemas/ClientCreateServerBackupRequest' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientListServerBackupsServerUuidPathParameter' + '/api/client/servers/{server_uuid}/backups/{backup_uuid}': + get: + summary: 'Get server backup' + operationId: clientGetServerBackup + description: 'Returns information about one server backup.' + parameters: [] + responses: + '200': + description: 'Server backup returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientBackupResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + delete: + summary: 'Delete server backup' + operationId: clientDeleteServerBackup + description: 'Deletes a backup record and its stored archive.' + parameters: [] + responses: + '204': + description: 'Backup deleted.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientGetServerBackupServerUuidPathParameter' + - + in: path + name: backup_uuid + description: 'The backup UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientGetServerBackupBackupUuidPathParameter' + '/api/client/servers/{server_uuid}/backups/{backup_uuid}/download': + get: + summary: 'Get backup download URL' + operationId: clientGetBackupDownloadURL + description: 'Returns a signed URL for downloading a server backup.' + parameters: [] + responses: + '200': + description: 'Signed backup download URL returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientSignedUrlResource' + '400': + description: 'The backup cannot be downloaded from its storage driver.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientGetBackupDownloadURLServerUuidPathParameter' + - + in: path + name: backup_uuid + description: 'The backup UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientGetBackupDownloadURLBackupUuidPathParameter' + '/api/client/servers/{server_uuid}/backups/{backup_uuid}/lock': + post: + summary: 'Toggle backup lock' + operationId: clientToggleBackupLock + description: 'Toggles whether a backup is locked against deletion.' + parameters: [] + responses: + '200': + description: 'Backup lock state toggled.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientBackupResource' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientToggleBackupLockServerUuidPathParameter' + - + in: path + name: backup_uuid + description: 'The backup UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientToggleBackupLockBackupUuidPathParameter' + '/api/client/servers/{server_uuid}/backups/{backup_uuid}/restore': + post: + summary: 'Restore server backup' + operationId: clientRestoreServerBackup + description: 'Restores a backup over the server files.' + parameters: [] + responses: + '204': + description: 'Backup restore started.' + '400': + description: 'The server or backup is not in a restorable state.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Client API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ClientRestoreServerBackupRequest' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientRestoreServerBackupServerUuidPathParameter' + - + in: path + name: backup_uuid + description: 'The backup UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientRestoreServerBackupBackupUuidPathParameter' + '/api/client/servers/{server_uuid}/startup': + get: + summary: 'Get startup configuration' + operationId: clientGetStartupConfiguration + description: 'Returns the rendered startup command, available Docker images, raw startup command, and user-visible variables for the server.' + parameters: [] + responses: + '200': + description: 'Startup configuration returned.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientEggVariableListResponse' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientGetStartupConfigurationServerUuidPathParameter' + '/api/client/servers/{server_uuid}/startup/variable': + put: + summary: 'Update startup variable' + operationId: clientUpdateStartupVariable + description: 'Updates one editable startup variable for the server and returns the updated rendered startup command.' + parameters: [] + responses: + '200': + description: 'Startup variable updated.' + content: + application/json: + schema: + $ref: '#/components/schemas/ClientEggVariableResource' + '400': + description: 'The variable does not exist, is hidden, or is read-only.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Client API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ClientUpdateStartupVariableRequest' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientUpdateStartupVariableServerUuidPathParameter' + '/api/client/servers/{server_uuid}/settings/rename': + post: + summary: 'Rename server' + operationId: clientRenameServer + description: 'Updates the server name and optionally its description.' + parameters: [] + responses: + '204': + description: 'Server renamed.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Client API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ClientRenameServerRequest' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientRenameServerServerUuidPathParameter' + '/api/client/servers/{server_uuid}/settings/reinstall': + post: + summary: 'Reinstall server' + operationId: clientReinstallServer + description: 'Queues a reinstall of the server on Wings.' + parameters: [] + responses: + '202': + description: 'Server reinstall queued.' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + tags: + - 'Client API' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientReinstallServerServerUuidPathParameter' + '/api/client/servers/{server_uuid}/settings/docker-image': + put: + summary: 'Set server Docker image' + operationId: clientSetServerDockerImage + description: 'Updates the server Docker image to one of the images allowed by the server egg.' + parameters: [] + responses: + '204': + description: 'Docker image updated.' + '400': + description: 'The server image was manually set by an administrator and cannot be changed through this endpoint.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '401': + description: 'Authentication credentials were missing or invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '403': + description: 'The API key does not have permission to perform this action.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '404': + description: 'The requested resource could not be found.' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: 'The submitted data is invalid.' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationErrorEnvelope' + tags: + - 'Client API' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ClientSetServerDockerImageRequest' + parameters: + - + in: path + name: server_uuid + description: 'The server UUID.' + required: true + schema: + $ref: '#/components/schemas/ClientSetServerDockerImageServerUuidPathParameter' + /sanctum/csrf-cookie: + get: + summary: 'Get CSRF cookie' + operationId: authGetCsrfCookie + description: 'Initializes the Laravel Sanctum CSRF cookie required before browser-session authentication requests.' + parameters: [] + responses: + '204': + description: 'The CSRF cookie was queued on the response.' + tags: + - Endpoints + security: []