{"openapi":"3.1.0","info":{"title":"Pterodactyl Wings API","version":"1.0.0"},"paths":{"/api/backups/{backup}":{"delete":{"operationId":"delete_api_backups_backup","parameters":[{"name":"backup","in":"path","description":"The backup uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["adapter"],"properties":{"adapter":{"$ref":"#/components/schemas/BackupAdapter"},"foreground":{"type":"boolean"},"server":{"type":["string","null"],"format":"uuid"}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/backups/{backup}/export":{"post":{"operationId":"post_api_backups_backup_export","parameters":[{"name":"backup","in":"path","description":"The backup uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["adapter","server","path"],"properties":{"adapter":{"$ref":"#/components/schemas/BackupAdapter"},"server":{"type":"string","format":"uuid"},"path":{"type":"string"},"archive_format":{"$ref":"#/components/schemas/StreamableArchiveFormat"},"foreground":{"type":"boolean"}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectoryEntry"}}}},"202":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["identifier"],"properties":{"identifier":{"type":"string","format":"uuid"}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/backups/{backup}/query":{"get":{"operationId":"get_api_backups_backup_query","parameters":[{"name":"backup","in":"path","description":"The backup uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"adapter","in":"query","description":"The backup adapter to use","required":true,"schema":{"$ref":"#/components/schemas/BackupAdapter"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"archive_format":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/ArchiveFormat"}]},"size":{"type":["integer","null"],"format":"int64","minimum":0}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/deauthorize-user":{"post":{"operationId":"post_api_deauthorize-user","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["servers","user"],"properties":{"servers":{"type":"array","items":{"type":"string","format":"uuid"},"uniqueItems":true},"user":{"type":"string","format":"uuid"}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}}}}},"/api/ports/used":{"get":{"operationId":"get_api_ports_used","parameters":[{"name":"ip","in":"query","description":"The allocation ips to check, repeated once per ip","required":true,"schema":{"type":"array","items":{"type":"string"}},"example":"127.0.0.1"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["used"],"properties":{"used":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/UsedPort"}},"propertyNames":{"type":"string"}}}}}}},"400":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}}}}},"/api/servers":{"get":{"operationId":"get_api_servers","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Server"}}}}}}},"post":{"operationId":"post_api_servers","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["uuid"],"properties":{"uuid":{"type":"string","format":"uuid"},"start_on_completion":{"type":"boolean"},"skip_scripts":{"type":"boolean"}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/power":{"post":{"operationId":"post_api_servers_power","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["servers","action"],"properties":{"servers":{"type":"array","items":{"type":"string","format":"uuid"},"uniqueItems":true},"action":{"$ref":"#/components/schemas/ServerPowerAction"},"wait_seconds":{"type":["integer","null"],"format":"int64","minimum":0}}}}},"required":true},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["affected"],"properties":{"affected":{"type":"integer","minimum":0}}}}}}}}},"/api/servers/utilization":{"get":{"operationId":"get_api_servers_utilization","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ResourceUsage"},"propertyNames":{"type":"string","format":"uuid"}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}":{"get":{"operationId":"get_api_servers_server","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Server"}}}}}},"delete":{"operationId":"delete_api_servers_server","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/servers/{server}/backup":{"post":{"operationId":"post_api_servers_server_backup","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["adapter","uuid","ignore"],"properties":{"adapter":{"$ref":"#/components/schemas/BackupAdapter"},"uuid":{"type":"string","format":"uuid"},"ignore":{"$ref":"#/components/schemas/CompactString"}}}}},"required":true},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/backup/{backup}":{"delete":{"operationId":"delete_api_servers_server_backup_backup","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"backup","in":"path","description":"The backup uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/backup/{backup}/restore":{"post":{"operationId":"post_api_servers_server_backup_backup_restore","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"backup","in":"path","description":"The backup uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["adapter","truncate_directory"],"properties":{"adapter":{"$ref":"#/components/schemas/BackupAdapter"},"truncate_directory":{"type":"boolean"},"download_url":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CompactString"}]}}}}},"required":true},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/commands":{"post":{"operationId":"post_api_servers_server_commands","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["commands"],"properties":{"commands":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/chmod":{"post":{"operationId":"post_api_servers_server_files_chmod","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["files"],"properties":{"root":{"$ref":"#/components/schemas/CompactString"},"files":{"type":"array","items":{"type":"object","required":["file","mode"],"properties":{"file":{"$ref":"#/components/schemas/CompactString"},"mode":{"$ref":"#/components/schemas/CompactString"},"recursive":{"type":"boolean"}}}}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["updated"],"properties":{"updated":{"type":"integer","minimum":0}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/compress":{"post":{"operationId":"post_api_servers_server_files_compress","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["files"],"properties":{"format":{"$ref":"#/components/schemas/ArchiveFormat"},"name":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CompactString"}]},"root":{"$ref":"#/components/schemas/CompactString"},"files":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}},"foreground":{"type":"boolean"}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectoryEntry"}}}},"202":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["identifier"],"properties":{"identifier":{"type":"string","format":"uuid"}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/contents":{"get":{"operationId":"get_api_servers_server_files_contents","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"file","in":"query","description":"The file to view contents of","required":true,"schema":{"type":"string"}},{"name":"download","in":"query","description":"Whether to add 'download headers' to the file","required":true,"schema":{"type":"boolean"}},{"name":"max_size","in":"query","description":"The maximum size of the file to return. If the file is larger than this, an error will be returned.","required":false,"schema":{"type":"integer","format":"int64","minimum":0}}],"responses":{"200":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"413":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/copy":{"post":{"operationId":"post_api_servers_server_files_copy","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["path"],"properties":{"path":{"$ref":"#/components/schemas/CompactString"},"name":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CompactString"}]},"foreground":{"type":"boolean"}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectoryEntry"}}}},"202":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["identifier"],"properties":{"identifier":{"type":"string","format":"uuid"}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/copy-many":{"post":{"operationId":"post_api_servers_server_files_copy-many","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["files"],"properties":{"root":{"$ref":"#/components/schemas/CompactString"},"files":{"type":"array","items":{"type":"object","required":["from","to"],"properties":{"from":{"$ref":"#/components/schemas/CompactString"},"to":{"$ref":"#/components/schemas/CompactString"}}}},"foreground":{"type":"boolean"}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["copied"],"properties":{"copied":{"type":"integer","minimum":0}}}}}},"202":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["identifier"],"properties":{"identifier":{"type":"string","format":"uuid"}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/copy-remote":{"post":{"operationId":"post_api_servers_server_files_copy-remote","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["url","token","files","destination_server","destination_path"],"properties":{"url":{"type":"string"},"token":{"type":"string"},"archive_format":{"$ref":"#/components/schemas/TransferArchiveFormat"},"compression_level":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CompressionLevel"}]},"root":{"$ref":"#/components/schemas/CompactString"},"files":{"type":"array","items":{"$ref":"#/components/schemas/CopyFile"}},"destination_server":{"type":"string","format":"uuid"},"destination_path":{"$ref":"#/components/schemas/CompactString"},"foreground":{"type":"boolean"}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["identifier"],"properties":{"identifier":{"type":"string","format":"uuid"}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/create-directory":{"post":{"operationId":"post_api_servers_server_files_create-directory","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["root","name"],"properties":{"root":{"$ref":"#/components/schemas/CompactString"},"name":{"$ref":"#/components/schemas/CompactString"}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/decompress":{"post":{"operationId":"post_api_servers_server_files_decompress","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["file"],"properties":{"root":{"$ref":"#/components/schemas/CompactString"},"file":{"$ref":"#/components/schemas/CompactString"},"foreground":{"type":"boolean"}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["identifier"],"properties":{"identifier":{"type":"string","format":"uuid"}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/delete":{"post":{"operationId":"post_api_servers_server_files_delete","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["files"],"properties":{"root":{"$ref":"#/components/schemas/CompactString"},"files":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["deleted"],"properties":{"deleted":{"type":"integer","minimum":0}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/fingerprints":{"get":{"operationId":"get_api_servers_server_files_fingerprints","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"algorithm","in":"query","description":"The algorithm to use for the fingerprint","required":true,"schema":{"$ref":"#/components/schemas/Algorithm"}},{"name":"files","in":"query","description":"The list of files to fingerprint","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["fingerprints"],"properties":{"fingerprints":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/CompactString"},"propertyNames":{"type":"string"}}}}}}}}}},"/api/servers/{server}/files/largest-directories":{"get":{"operationId":"get_api_servers_server_files_largest-directories","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"directory","in":"query","description":"The directory to analyze","required":true,"schema":{"type":"string"}},{"name":"ignored","in":"query","description":"Additional ignored files","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DirectoryEntry"}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/list":{"get":{"operationId":"get_api_servers_server_files_list","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"directory","in":"query","description":"The directory to list files from","required":true,"schema":{"type":"string"}},{"name":"ignored","in":"query","description":"Additional ignored files","required":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"per_page","in":"query","description":"The number of entries to return per page","required":true,"schema":{"type":"integer","minimum":0}},{"name":"page","in":"query","description":"The page number to return","required":true,"schema":{"type":"integer","minimum":0}},{"name":"sort","in":"query","description":"The sorting mode to use","required":true,"schema":{"$ref":"#/components/schemas/DirectorySortingMode"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["total","filesystem_primary","filesystem_writable","filesystem_fast","entries"],"properties":{"total":{"type":"integer","minimum":0},"filesystem_primary":{"type":"boolean"},"filesystem_writable":{"type":"boolean"},"filesystem_fast":{"type":"boolean"},"entries":{"type":"array","items":{"$ref":"#/components/schemas/DirectoryEntry"}}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/list-directory":{"get":{"operationId":"get_api_servers_server_files_list-directory","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"directory","in":"query","description":"The directory to list files from","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DirectoryEntry"}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"deprecated":true}},"/api/servers/{server}/files/operations":{"get":{"operationId":"get_api_servers_server_files_operations","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["operations"],"properties":{"operations":{"type":"array","items":{"$ref":"#/components/schemas/FilesystemOperation"}}}}}}}}}},"/api/servers/{server}/files/operations/{operation}":{"delete":{"operationId":"delete_api_servers_server_files_operations_operation","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"operation","in":"path","description":"The operation uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/pull":{"get":{"operationId":"get_api_servers_server_files_pull","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["downloads"],"properties":{"downloads":{"type":"array","items":{"$ref":"#/components/schemas/Download"}}}}}}}},"deprecated":true},"post":{"operationId":"post_api_servers_server_files_pull","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"root":{"$ref":"#/components/schemas/CompactString"},"url":{"$ref":"#/components/schemas/CompactString"},"file_name":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CompactString"}]},"use_header":{"type":"boolean"},"foreground":{"type":"boolean"}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["identifier"],"properties":{"identifier":{"type":"string","format":"uuid"}}}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/pull/query":{"post":{"operationId":"post_api_servers_server_files_pull_query","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"$ref":"#/components/schemas/CompactString"}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["final_url","headers"],"properties":{"file_name":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CompactString"}]},"file_size":{"type":["integer","null"],"format":"int64","minimum":0},"final_url":{"$ref":"#/components/schemas/CompactString"},"headers":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/CompactString"},"propertyNames":{"type":"string"}}}}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/pull/{pull}":{"delete":{"operationId":"delete_api_servers_server_files_pull_pull","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"pull","in":"path","description":"The pull uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"deprecated":true}},"/api/servers/{server}/files/rename":{"put":{"operationId":"put_api_servers_server_files_rename","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["files"],"properties":{"root":{"$ref":"#/components/schemas/CompactString"},"files":{"type":"array","items":{"type":"object","required":["from","to"],"properties":{"from":{"$ref":"#/components/schemas/CompactString"},"to":{"$ref":"#/components/schemas/CompactString"}}}}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["renamed"],"properties":{"renamed":{"type":"integer","minimum":0}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/revisions":{"get":{"operationId":"get_api_servers_server_files_revisions","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"file","in":"query","description":"The file path to list revisions for","required":true,"schema":{"type":"string"},"example":"/path/to/file.txt"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["revisions"],"properties":{"revisions":{"type":"array","items":{"$ref":"#/components/schemas/RevisionInfo"}}}}}}}}}},"/api/servers/{server}/files/revisions/{revision}":{"get":{"operationId":"get_api_servers_server_files_revisions_revision","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"revision","in":"path","description":"The revision id","required":true,"schema":{"type":"integer","format":"int64"},"example":"1"}],"responses":{"200":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/search":{"post":{"operationId":"post_api_servers_server_files_search","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["per_page"],"properties":{"root":{"$ref":"#/components/schemas/CompactString"},"path_filter":{"oneOf":[{"type":"null"},{"type":"object","required":["include"],"properties":{"include":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}},"exclude":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}},"case_insensitive":{"type":"boolean"}}}]},"size_filter":{"oneOf":[{"type":"null"},{"type":"object","required":["max"],"properties":{"min":{"type":"integer","format":"int64","minimum":0},"max":{"type":"integer","format":"int64","minimum":0}}}]},"content_filter":{"oneOf":[{"type":"null"},{"type":"object","required":["query","max_search_size"],"properties":{"query":{"$ref":"#/components/schemas/CompactString"},"max_search_size":{"type":"integer","format":"int64","minimum":0},"include_unmatched":{"type":"boolean"},"case_insensitive":{"type":"boolean"}}}]},"per_page":{"type":"integer","minimum":0}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["results"],"properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/DirectoryEntry"}}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/write":{"post":{"operationId":"post_api_servers_server_files_write","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"file","in":"query","description":"The file to view contents of","required":true,"schema":{"type":"string"}},{"name":"user","in":"query","description":"The user uuid of the editor. This is used for diff tracking.","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"text/plain":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"revision_id":{"type":["integer","null"],"format":"int64"}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/install/abort":{"post":{"operationId":"post_api_servers_server_install_abort","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/logs":{"get":{"operationId":"get_api_servers_server_logs","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"lines","in":"query","description":"The number of lines to tail from the log","required":false,"schema":{"type":"integer","minimum":0},"example":"100"}],"responses":{"200":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/api/servers/{server}/logs/install":{"get":{"operationId":"get_api_servers_server_logs_install","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"lines","in":"query","description":"The number of lines to tail from the log","required":false,"schema":{"type":"integer","minimum":0},"example":"100"}],"responses":{"200":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/power":{"post":{"operationId":"post_api_servers_server_power","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["action"],"properties":{"action":{"$ref":"#/components/schemas/ServerPowerAction"},"wait_seconds":{"type":["integer","null"],"format":"int64","minimum":0}}}}},"required":true},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/servers/{server}/reinstall":{"post":{"operationId":"post_api_servers_server_reinstall","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"truncate_directory":{"type":"boolean"},"installation_script":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/InstallationScript"}]}}}}},"required":true},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/schedules/{schedule}":{"get":{"operationId":"get_api_servers_server_schedules_schedule","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"schedule","in":"path","description":"The schedule uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["status"],"properties":{"status":{"$ref":"#/components/schemas/ScheduleStatus"}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/schedules/{schedule}/abort":{"post":{"operationId":"post_api_servers_server_schedules_schedule_abort","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"schedule","in":"path","description":"The schedule uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/schedules/{schedule}/trigger":{"post":{"operationId":"post_api_servers_server_schedules_schedule_trigger","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"schedule","in":"path","description":"The schedule uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"skip_condition":{"type":"boolean"}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/script":{"post":{"operationId":"post_api_servers_server_script","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstallationScript"}}},"required":true},"responses":{"200":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/api/servers/{server}/sync":{"post":{"operationId":"post_api_servers_server_sync","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["server"],"properties":{"server":{}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/servers/{server}/transfer":{"post":{"operationId":"post_api_servers_server_transfer","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["url","token"],"properties":{"url":{"type":"string"},"token":{"type":"string"},"archive_format":{"$ref":"#/components/schemas/TransferArchiveFormat"},"compression_level":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CompressionLevel"}]},"backups":{"type":"array","items":{"type":"string","format":"uuid"}},"delete_backups":{"type":"boolean"},"multiplex_streams":{"type":"integer","minimum":0}}}}},"required":true},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"delete":{"operationId":"delete_api_servers_server_transfer","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/utilization":{"get":{"operationId":"get_api_servers_server_utilization","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["utilization"],"properties":{"utilization":{"$ref":"#/components/schemas/ResourceUsage"}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/version":{"get":{"operationId":"get_api_servers_server_version","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"game","in":"query","description":"The game logic to use for the sha256 hash","required":true,"schema":{"$ref":"#/components/schemas/Game"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["hash"],"properties":{"hash":{"$ref":"#/components/schemas/CompactString"}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/ws/broadcast":{"post":{"operationId":"post_api_servers_server_ws_broadcast","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["users","permissions","message"],"properties":{"users":{"type":"array","items":{"type":"string","format":"uuid"},"uniqueItems":true},"permissions":{"type":"array","items":{"type":"string"}},"message":{"$ref":"#/components/schemas/WebsocketMessage"}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/servers/{server}/ws/deny":{"post":{"operationId":"post_api_servers_server_ws_deny","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["jtis"],"properties":{"jtis":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/servers/{server}/ws/permissions":{"post":{"operationId":"post_api_servers_server_ws_permissions","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["user_permissions"],"properties":{"user_permissions":{"type":"array","items":{"type":"object","required":["user","permissions"],"properties":{"user":{"type":"string","format":"uuid"},"permissions":{"type":"array","items":{"type":"string"}},"ignored_files":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}}}}}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/system":{"get":{"operationId":"get_api_system","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["architecture","cpu_count","kernel_version","os","version"],"properties":{"architecture":{"type":"string"},"cpu_count":{"type":"integer","minimum":0},"kernel_version":{"type":"string"},"os":{"type":"string"},"version":{"type":"string"}}}}}}}}},"/api/system/config":{"get":{"operationId":"get_api_system_config","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"debug":{"type":"boolean"},"app_name":{"type":"string"},"uuid":{"type":"string","format":"uuid"},"token_id":{"type":"string"},"token":{"type":"string"},"api":{"type":"object","properties":{"host":{"type":"string","default":"0.0.0.0"},"port":{"type":"integer","format":"int32","default":8080,"minimum":0},"ssl":{"oneOf":[{"type":"object","properties":{"enabled":{"type":"boolean","default":false},"cert":{"type":"string","default":""},"key":{"type":"string","default":""}}}],"default":{"enabled":false,"cert":"","key":""}},"redirects":{"type":"object","default":{},"additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}},"disable_openapi_docs":{"type":"boolean","default":false},"disable_remote_download":{"type":"boolean","default":false},"server_remote_download_limit":{"type":"integer","default":3,"minimum":0},"remote_download_blocked_cidrs":{"type":"array","items":{"type":"string"},"default":["127.0.0.0/8","10.0.0.0/8","172.16.0.0/12","192.168.0.0/16","169.254.0.0/16","::1","fe80::/10","fc00::/7"]},"disable_directory_size":{"type":"boolean","default":false},"directory_entry_limit":{"type":"integer","default":10000,"minimum":0},"send_offline_server_logs":{"type":"boolean","default":false},"file_search_threads":{"type":"integer","default":4,"minimum":0},"file_copy_threads":{"type":"integer","default":4,"minimum":0},"file_decompression_threads":{"type":"integer","default":2,"minimum":0},"file_compression_threads":{"type":"integer","default":2,"minimum":0},"upload_limit":{"oneOf":[{"$ref":"#/components/schemas/MiB"}],"default":100},"max_jwt_uses":{"type":"integer","default":5,"minimum":0},"trusted_proxies":{"type":"array","items":{"type":"string"},"default":[]}}},"system":{"type":"object","properties":{"root_directory":{"type":"string","default":"/var/lib/pterodactyl"},"log_directory":{"type":"string","default":"/var/log/pterodactyl"},"vmount_directory":{"type":"string","default":"/var/lib/pterodactyl/vmounts"},"data":{"type":"string","default":"/var/lib/pterodactyl/volumes"},"archive_directory":{"type":"string","default":"/var/lib/pterodactyl/archives"},"backup_directory":{"type":"string","default":"/var/lib/pterodactyl/backups"},"tmp_directory":{"type":"string","default":"/tmp/pterodactyl"},"username":{"oneOf":[{"$ref":"#/components/schemas/CompactString"}],"default":"pterodactyl"},"timezone":{"oneOf":[{"$ref":"#/components/schemas/CompactString"}],"default":"Europe/Paris"},"user":{"oneOf":[{"type":"object","properties":{"rootless":{"oneOf":[{"type":"object","properties":{"enabled":{"type":"boolean","default":false},"container_uid":{"type":"integer","format":"int32","default":0,"minimum":0},"container_gid":{"type":"integer","format":"int32","default":0,"minimum":0}}}],"default":{"enabled":false,"container_uid":0,"container_gid":0}},"uid":{"type":"integer","format":"int32","default":0,"minimum":0},"gid":{"type":"integer","format":"int32","default":0,"minimum":0}}}],"default":{"rootless":{"enabled":false,"container_uid":0,"container_gid":0},"uid":0,"gid":0}},"passwd":{"oneOf":[{"type":"object","properties":{"enabled":{"type":"boolean","default":false},"directory":{"type":"string","default":"/run/wings/etc"}}}],"default":{"enabled":false,"directory":"/run/wings/etc"}},"machine_id":{"oneOf":[{"type":"object","properties":{"enabled":{"type":"boolean","default":true}}}],"default":{"enabled":true}},"disk_check_concurrency":{"type":"integer","default":2,"minimum":0},"disk_check_interval":{"type":"integer","format":"int64","default":150,"minimum":0},"full_disk_check_every":{"type":"integer","format":"int64","default":4,"minimum":0},"disk_check_use_inotify":{"type":"boolean","default":true},"disk_limiter_mode":{"oneOf":[{"$ref":"#/components/schemas/DiskLimiterMode"}],"default":"none"},"activity_send_interval":{"type":"integer","format":"int64","default":60,"minimum":0},"activity_send_count":{"type":"integer","default":100,"minimum":0},"check_permissions_on_boot":{"type":"boolean","default":true},"check_permissions_on_boot_threads":{"type":"integer","default":4,"minimum":0},"websocket_log_count":{"type":"integer","default":150,"minimum":0},"sftp":{"oneOf":[{"type":"object","properties":{"enabled":{"type":"boolean","default":true},"bind_address":{"type":"string","default":"0.0.0.0"},"bind_port":{"type":"integer","format":"int32","default":2022,"minimum":0},"read_only":{"type":"boolean","default":false},"key_algorithm":{"type":"string","default":"ssh-ed25519"},"disable_password_auth":{"type":"boolean","default":false},"directory_entry_limit":{"type":"integer","format":"int64","default":20000,"minimum":0},"directory_entry_send_amount":{"type":"integer","default":500,"minimum":0},"limits":{"oneOf":[{"type":"object","properties":{"authentication_password_attempts":{"type":"integer","default":3,"minimum":0},"authentication_pubkey_attempts":{"type":"integer","default":20,"minimum":0},"authentication_cooldown":{"type":"integer","format":"int64","default":60,"minimum":0},"max_connections_per_user":{"type":"integer","default":10,"minimum":0},"max_channels_per_connection":{"type":"integer","default":10,"minimum":0},"max_handles_per_channel":{"type":"integer","default":32,"minimum":0},"max_handles_total":{"type":"integer","default":1024,"minimum":0}}}],"default":{"authentication_password_attempts":3,"authentication_pubkey_attempts":20,"authentication_cooldown":60,"max_connections_per_user":10,"max_channels_per_connection":10,"max_handles_per_channel":32,"max_handles_total":1024}},"shell":{"oneOf":[{"type":"object","properties":{"enabled":{"type":"boolean","default":true},"cli":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","default":".wings"}}}],"default":{"name":".wings"}}}}],"default":{"enabled":true,"cli":{"name":".wings"}}},"activity":{"oneOf":[{"type":"object","properties":{"log_logins":{"type":"boolean","default":false},"log_file_reads":{"type":"boolean","default":false}}}],"default":{"log_logins":false,"log_file_reads":false}}}}],"default":{"enabled":true,"bind_address":"0.0.0.0","bind_port":2022,"read_only":false,"key_algorithm":"ssh-ed25519","disable_password_auth":false,"directory_entry_limit":20000,"directory_entry_send_amount":500,"limits":{"authentication_password_attempts":3,"authentication_pubkey_attempts":20,"authentication_cooldown":60,"max_connections_per_user":10,"max_channels_per_connection":10,"max_handles_per_channel":32,"max_handles_total":1024},"shell":{"enabled":true,"cli":{"name":".wings"}},"activity":{"log_logins":false,"log_file_reads":false}}},"crash_detection":{"oneOf":[{"type":"object","properties":{"enabled":{"type":"boolean","default":true},"detect_clean_exit_as_crash":{"type":"boolean","default":true},"timeout":{"type":"integer","format":"int64","default":60,"minimum":0}}}],"default":{"enabled":true,"detect_clean_exit_as_crash":true,"timeout":60}},"file_history":{"oneOf":[{"type":"object","properties":{"enabled":{"type":"boolean","default":true},"zstd_level":{"type":"integer","format":"int32","default":19},"anchor_interval":{"type":"integer","format":"int64","default":4,"minimum":0},"keep_chains":{"type":"integer","format":"int64","default":5,"minimum":0},"file_size_cap":{"type":"integer","format":"int64","default":1048576,"minimum":0},"per_file_disk_budget":{"type":"integer","format":"int64","default":5242880,"minimum":0},"per_server_disk_budget":{"type":"integer","format":"int64","default":209715200,"minimum":0},"maintenance_interval":{"type":"integer","format":"int64","default":3600,"minimum":0}}}],"default":{"enabled":true,"zstd_level":19,"anchor_interval":4,"keep_chains":5,"file_size_cap":1048576,"per_file_disk_budget":5242880,"per_server_disk_budget":209715200,"maintenance_interval":3600}},"file_collaboration":{"oneOf":[{"type":"object","properties":{"enabled":{"type":"boolean","default":true},"file_size_cap":{"type":"integer","format":"int64","default":1048576,"minimum":0},"max_sessions_per_server":{"type":"integer","format":"int64","default":16,"minimum":0},"max_sessions_per_connection":{"type":"integer","format":"int64","default":8,"minimum":0},"session_grace_period":{"type":"integer","format":"int64","default":120,"minimum":0}}}],"default":{"enabled":true,"file_size_cap":1048576,"max_sessions_per_server":16,"max_sessions_per_connection":8,"session_grace_period":120}},"backups":{"oneOf":[{"type":"object","properties":{"write_limit":{"oneOf":[{"$ref":"#/components/schemas/MiB"}],"default":0},"read_limit":{"oneOf":[{"$ref":"#/components/schemas/MiB"}],"default":0},"compression_level":{"oneOf":[{"$ref":"#/components/schemas/CompressionLevel"}],"default":"best_speed"},"mounting":{"oneOf":[{"type":"object","properties":{"enabled":{"type":"boolean","default":true},"path":{"type":"string","default":".backups"}}}],"default":{"enabled":true,"path":".backups"}},"wings":{"oneOf":[{"type":"object","properties":{"create_threads":{"type":"integer","default":4,"minimum":0},"restore_threads":{"type":"integer","default":4,"minimum":0},"archive_format":{"oneOf":[{"$ref":"#/components/schemas/ArchiveFormat"}],"default":"tar_gz"}}}],"default":{"create_threads":4,"restore_threads":4,"archive_format":"tar_gz"}},"s3":{"oneOf":[{"type":"object","properties":{"create_threads":{"type":"integer","default":4,"minimum":0},"part_upload_timeout":{"type":"integer","format":"int64","default":7200,"minimum":0},"retry_limit":{"type":"integer","format":"int64","default":10,"minimum":0}}}],"default":{"create_threads":4,"part_upload_timeout":7200,"retry_limit":10}},"ddup_bak":{"oneOf":[{"type":"object","properties":{"create_threads":{"type":"integer","default":4,"minimum":0},"compression_format":{"oneOf":[{"$ref":"#/components/schemas/SystemBackupsDdupBakCompressionFormat"}],"default":"deflate"}}}],"default":{"create_threads":4,"compression_format":"deflate"}},"restic":{"oneOf":[{"type":"object","properties":{"repository":{"type":"string","default":"/var/lib/pterodactyl/backups/restic"},"password_file":{"type":"string","default":"/var/lib/pterodactyl/backups/restic_password"},"retry_lock_seconds":{"type":"integer","format":"int64","default":60,"minimum":0},"environment":{"type":"object","default":{},"additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}}}}],"default":{"repository":"/var/lib/pterodactyl/backups/restic","password_file":"/var/lib/pterodactyl/backups/restic_password","retry_lock_seconds":60,"environment":{}}},"btrfs":{"oneOf":[{"type":"object","properties":{"restore_threads":{"type":"integer","default":4,"minimum":0},"create_read_only":{"type":"boolean","default":true}}}],"default":{"restore_threads":4,"create_read_only":true}},"zfs":{"oneOf":[{"type":"object","properties":{"restore_threads":{"type":"integer","default":4,"minimum":0}}}],"default":{"restore_threads":4}},"pbs":{"oneOf":[{"type":"object","properties":{"create_threads":{"type":"integer","default":4,"minimum":0},"download_concurrency":{"type":"integer","default":4,"minimum":0}}}],"default":{"create_threads":4,"download_concurrency":4}}}}],"default":{"write_limit":0,"read_limit":0,"compression_level":"best_speed","mounting":{"enabled":true,"path":".backups"},"wings":{"create_threads":4,"restore_threads":4,"archive_format":"tar_gz"},"s3":{"create_threads":4,"part_upload_timeout":7200,"retry_limit":10},"ddup_bak":{"create_threads":4,"compression_format":"deflate"},"restic":{"repository":"/var/lib/pterodactyl/backups/restic","password_file":"/var/lib/pterodactyl/backups/restic_password","retry_lock_seconds":60,"environment":{}},"btrfs":{"restore_threads":4,"create_read_only":true},"zfs":{"restore_threads":4},"pbs":{"create_threads":4,"download_concurrency":4}}},"transfers":{"oneOf":[{"type":"object","properties":{"download_limit":{"oneOf":[{"$ref":"#/components/schemas/MiB"}],"default":0}}}],"default":{"download_limit":0}}}},"docker":{"type":"object","properties":{"socket":{"type":"string","default":"/var/run/docker.sock"},"server_name_in_container_name":{"type":"boolean","default":false},"delete_container_on_stop":{"type":"boolean","default":true},"network":{"oneOf":[{"type":"object","properties":{"interface":{"type":"string","default":"172.18.0.1"},"disable_interface_binding":{"type":"boolean","default":false},"dns":{"type":"array","items":{"type":"string"},"default":["1.1.1.1","1.0.0.1"]},"dns_options":{"type":"array","items":{"type":"string"},"default":["ndots:0","timeout:2","attempts:3","single-request-reopen"]},"name":{"type":"string","default":"pterodactyl_nw"},"ispn":{"type":"boolean","default":false},"driver":{"type":"string","default":"bridge"},"mode":{"type":"string","default":"pterodactyl_nw"},"is_internal":{"type":"boolean","default":false},"enable_icc":{"type":"boolean","default":true},"network_mtu":{"type":"integer","format":"int64","default":1500,"minimum":0},"interfaces":{"oneOf":[{"type":"object","properties":{"v4":{"oneOf":[{"type":"object","properties":{"subnet":{"type":"string","default":"172.18.0.0/16"},"gateway":{"type":"string","default":"172.18.0.1"}}}],"default":{"subnet":"172.18.0.0/16","gateway":"172.18.0.1"}},"v6":{"oneOf":[{"type":"object","properties":{"subnet":{"type":"string","default":"fdba:17c8:6c94::/64"},"gateway":{"type":"string","default":"fdba:17c8:6c94::1011"}}}],"default":{"subnet":"fdba:17c8:6c94::/64","gateway":"fdba:17c8:6c94::1011"}}}}],"default":{"v4":{"subnet":"172.18.0.0/16","gateway":"172.18.0.1"},"v6":{"subnet":"fdba:17c8:6c94::/64","gateway":"fdba:17c8:6c94::1011"}}}}}],"default":{"interface":"172.18.0.1","disable_interface_binding":false,"dns":["1.1.1.1","1.0.0.1"],"dns_options":["ndots:0","timeout:2","attempts:3","single-request-reopen"],"name":"pterodactyl_nw","ispn":false,"driver":"bridge","mode":"pterodactyl_nw","is_internal":false,"enable_icc":true,"network_mtu":1500,"interfaces":{"v4":{"subnet":"172.18.0.0/16","gateway":"172.18.0.1"},"v6":{"subnet":"fdba:17c8:6c94::/64","gateway":"fdba:17c8:6c94::1011"}}}},"domainname":{"type":"string","default":""},"registries":{"type":"object","default":{},"additionalProperties":{"type":"object","required":["username","password"],"properties":{"username":{"type":"string"},"password":{"type":"string"}}},"propertyNames":{"type":"string"}},"registry_image_fetch_cache":{"oneOf":[{"type":"object","properties":{"enabled":{"type":"boolean","default":true},"duration":{"type":"integer","format":"int64","default":300,"minimum":0}}}],"default":{"enabled":true,"duration":300}},"tmpfs_size":{"type":"integer","format":"int64","default":100,"minimum":0},"container_pid_limit":{"type":"integer","format":"int64","default":5120,"minimum":0},"container_apply_seccomp":{"type":"boolean","default":true},"installer_limits":{"oneOf":[{"type":"object","properties":{"timeout":{"type":"integer","format":"int64","default":1800,"minimum":0},"memory":{"oneOf":[{"$ref":"#/components/schemas/MiB"}],"default":1024},"cpu":{"type":"integer","format":"int64","description":"%","default":100,"minimum":0}}}],"default":{"timeout":1800,"memory":1024,"cpu":100}},"overhead":{"oneOf":[{"type":"object","properties":{"override":{"type":"boolean","default":false},"default_multiplier":{"type":"number","format":"double","default":1.05},"multipliers":{"type":"object","description":"Memory Limit MiB -> Multiplier","default":{},"additionalProperties":{"type":"number","format":"double"},"propertyNames":{"type":"integer","format":"int64","description":"Represents a size in Mebibytes (MiB). The inner value is the number of MiB (not bytes!!).","minimum":0}}}}],"default":{"override":false,"default_multiplier":1.05,"multipliers":{}}},"userns_mode":{"type":"string","default":""},"log_config":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","default":"local"},"config":{"type":"object","default":{"compress":"false","max-file":"1","max-size":"5m","mode":"non-blocking"},"additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}}}}],"default":{"type":"local","config":{"compress":"false","max-file":"1","max-size":"5m","mode":"non-blocking"}}}}},"throttles":{"type":"object","properties":{"enabled":{"type":"boolean","default":true},"lines":{"type":"integer","format":"int64","default":2000,"minimum":0},"line_reset_interval":{"type":"integer","format":"int64","description":"ms","default":100,"minimum":0}}},"remote":{"type":"string"},"remote_headers":{"type":"object","additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}},"remote_query":{"type":"object","properties":{"timeout":{"type":"integer","format":"int64","default":30,"minimum":0},"boot_servers_per_page":{"type":"integer","format":"int64","default":50,"minimum":0},"retry_limit":{"type":"integer","format":"int64","default":10,"minimum":0}}},"allowed_mounts":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}},"allowed_origins":{"type":"array","items":{"type":"string"}},"allow_cors_private_network":{"type":"boolean"},"ignore_panel_config_updates":{"type":"boolean"},"ignore_panel_wings_upgrades":{"type":"boolean"}}}}}}}}},"/api/system/logs":{"get":{"operationId":"get_api_system_logs","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["log_files"],"properties":{"log_files":{"type":"array","items":{"type":"object","required":["name","compression_type","size","last_modified"],"properties":{"name":{"$ref":"#/components/schemas/CompactString"},"compression_type":{"$ref":"#/components/schemas/CompressionType"},"size":{"type":"integer","format":"int64","minimum":0},"last_modified":{"type":"string","format":"date-time"}}}}}}}}}}}},"/api/system/logs/{file}":{"get":{"operationId":"get_api_system_logs_file","parameters":[{"name":"file","in":"path","description":"The log file name","required":true,"schema":{"type":"string"},"example":"wings.log"},{"name":"lines","in":"query","description":"The number of lines to tail from the log file","required":false,"schema":{"type":"integer","minimum":0},"example":"100"}],"responses":{"200":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/system/overview":{"get":{"operationId":"get_api_system_overview","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["version","local_time","container_type","cpu","memory","servers","architecture","kernel_version"],"properties":{"version":{"type":"string"},"local_time":{"type":"string","format":"date-time"},"container_type":{"$ref":"#/components/schemas/AppContainerType"},"cpu":{"type":"object","required":["name","brand","vendor_id","frequency_mhz","cpu_count"],"properties":{"name":{"type":"string"},"brand":{"type":"string"},"vendor_id":{"type":"string"},"frequency_mhz":{"type":"integer","format":"int64","minimum":0},"cpu_count":{"type":"integer","minimum":0}}},"memory":{"type":"object","required":["total_bytes","free_bytes","used_bytes","used_bytes_process"],"properties":{"total_bytes":{"type":"integer","format":"int64","minimum":0},"free_bytes":{"type":"integer","format":"int64","minimum":0},"used_bytes":{"type":"integer","format":"int64","minimum":0},"used_bytes_process":{"type":"integer","format":"int64","minimum":0}}},"servers":{"type":"object","required":["total","online","offline"],"properties":{"total":{"type":"integer","minimum":0},"online":{"type":"integer","minimum":0},"offline":{"type":"integer","minimum":0}}},"architecture":{"type":"string"},"kernel_version":{"type":"string"}}}}}}}}},"/api/system/restic/prune":{"get":{"operationId":"get_api_system_restic_prune","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["result"],"properties":{"result":{"$ref":"#/components/schemas/ResticTaskResult"}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"post":{"operationId":"post_api_system_restic_prune","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"configuration":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/ResticBackupConfiguration"}]},"dry_run":{"type":"boolean"},"foreground":{"type":"boolean"}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["result"],"properties":{"result":{"$ref":"#/components/schemas/ResticTaskResult"}}}}}},"202":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/system/restic/stats":{"get":{"operationId":"get_api_system_restic_stats","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["result"],"properties":{"result":{"$ref":"#/components/schemas/ResticTaskResult"}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"post":{"operationId":"post_api_system_restic_stats","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"configuration":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/ResticBackupConfiguration"}]},"mode":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CompactString"}]},"foreground":{"type":"boolean"}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["result"],"properties":{"result":{"$ref":"#/components/schemas/ResticTaskResult"}}}}}},"202":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/system/restic/unlock":{"get":{"operationId":"get_api_system_restic_unlock","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["result"],"properties":{"result":{"$ref":"#/components/schemas/ResticTaskResult"}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"post":{"operationId":"post_api_system_restic_unlock","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"configuration":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/ResticBackupConfiguration"}]},"remove_all":{"type":"boolean"},"foreground":{"type":"boolean"}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["result"],"properties":{"result":{"$ref":"#/components/schemas/ResticTaskResult"}}}}}},"202":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/system/stats":{"get":{"operationId":"get_api_system_stats","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["stats"],"properties":{"stats":{"$ref":"#/components/schemas/SystemStats"}}}}}}}}},"/api/system/upgrade":{"post":{"operationId":"post_api_system_upgrade","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["url","headers","sha256","restart_command","restart_command_args"],"properties":{"url":{"$ref":"#/components/schemas/CompactString"},"headers":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/CompactString"},"propertyNames":{"type":"string"}},"sha256":{"$ref":"#/components/schemas/CompactString"},"restart_command":{"$ref":"#/components/schemas/CompactString"},"restart_command_args":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}}}}}},"required":true},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["applied"],"properties":{"applied":{"type":"boolean"}}}}}},"409":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}}}}},"/api/transfers":{"get":{"operationId":"get_api_transfers","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/TransferProgress"},"propertyNames":{"type":"string","format":"uuid"}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"post":{"operationId":"post_api_transfers","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/transfers/capabilities":{"get":{"operationId":"get_api_transfers_capabilities","responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferCapabilities"}}}}}}},"/api/transfers/files":{"post":{"operationId":"post_api_transfers_files","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/transfers/query":{"get":{"operationId":"get_api_transfers_query","responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferCapabilities"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/transfers/{server}":{"delete":{"operationId":"delete_api_transfers_server","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/update":{"post":{"operationId":"post_api_update","requestBody":{"content":{"application/json":{"schema":{}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["applied"],"properties":{"applied":{"type":"boolean"}}}}}}}}},"/download/backup":{"get":{"operationId":"get_download_backup","parameters":[{"name":"token","in":"query","description":"The JWT token to use for authentication","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"401":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"404":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"417":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/download/directory":{"get":{"operationId":"get_download_directory","parameters":[{"name":"token","in":"query","description":"The JWT token to use for authentication","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"401":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"404":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"417":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/download/file":{"get":{"operationId":"get_download_file","parameters":[{"name":"token","in":"query","description":"The JWT token to use for authentication","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"401":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"404":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"417":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/download/files":{"get":{"operationId":"get_download_files","parameters":[{"name":"token","in":"query","description":"The JWT token to use for authentication","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"401":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"404":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"417":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/upload/file":{"post":{"operationId":"post_upload_file","parameters":[{"name":"token","in":"query","description":"The JWT token to use for authentication","required":true,"schema":{"type":"string"}},{"name":"directory","in":"query","description":"The directory to upload the file to","required":true,"schema":{"type":"string"}},{"name":"continuation_token","in":"query","description":"Continuation token from a previous slice; presence selects the continuation flow","required":false,"schema":{"type":"string"}},{"name":"wants_continue","in":"query","description":"field index that indicates the client wants a continuation token for the next slice; presence selects the continuation flow","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"text/plain":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"continuation_token":{"type":["string","null"]}}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}}},"components":{"schemas":{"ApiError":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}},"AppContainerType":{"type":"string","enum":["official","unknown","none"]},"ArchiveFormat":{"type":"string","enum":["tar","tar_gz","tar_xz","tar_lzip","tar_bz2","tar_lz4","tar_zstd","zip","seven_zip"]},"BackupAdapter":{"type":"string","enum":["wings","s3","ddup-bak","btrfs","zfs","restic","proxmox-backup-server","kopia"]},"CompactString":{"type":"string"},"CompressionLevel":{"type":"string","enum":["best_speed","good_speed","good_compression","best_compression"]},"CompressionType":{"type":"string","enum":["none","gz","xz","lzip","bz2","lz4","zstd"]},"CopyFile":{"type":"object","required":["from","to"],"properties":{"from":{"$ref":"#/components/schemas/CompactString"},"to":{"$ref":"#/components/schemas/CompactString"}}},"DirectoryEntry":{"type":"object","required":["name","mode","mode_bits","size","size_physical","editable","inner_editable","directory","file","symlink","mime","created","modified"],"properties":{"name":{"$ref":"#/components/schemas/CompactString"},"mode":{"$ref":"#/components/schemas/CompactString"},"mode_bits":{"$ref":"#/components/schemas/CompactString"},"size":{"type":"integer","format":"int64","minimum":0},"size_physical":{"type":"integer","format":"int64","minimum":0},"editable":{"type":"boolean"},"inner_editable":{"type":"boolean"},"directory":{"type":"boolean"},"file":{"type":"boolean"},"symlink":{"type":"boolean"},"mime":{"type":"string"},"created":{"type":"string","format":"date-time"},"modified":{"type":"string","format":"date-time"}}},"DiskLimiterMode":{"type":"string","enum":["none","btrfs_subvolume","zfs_dataset","xfs_quota","fuse_quota"]},"Download":{"type":"object","required":["identifier","destination","progress","total"],"properties":{"identifier":{"type":"string","format":"uuid"},"destination":{"type":"string"},"progress":{"type":"integer","format":"int64","minimum":0},"total":{"type":"integer","format":"int64","minimum":0}}},"FilesystemOperation":{"oneOf":[{"type":"object","required":["path","files","destination_path","start_time","bytes_processed","bytes_total","files_processed","type"],"properties":{"path":{"type":"string"},"files":{"type":"array","items":{"type":"string"}},"destination_path":{"type":"string"},"start_time":{"type":"string","format":"date-time"},"bytes_processed":{"type":"integer","format":"int64","minimum":0},"bytes_total":{"type":"integer","format":"int64","minimum":0},"files_processed":{"type":"integer","format":"int64","minimum":0},"type":{"type":"string","enum":["compress"]}}},{"type":"object","required":["path","destination_path","start_time","bytes_processed","bytes_total","type"],"properties":{"path":{"type":"string"},"destination_path":{"type":"string"},"start_time":{"type":"string","format":"date-time"},"bytes_processed":{"type":"integer","format":"int64","minimum":0},"bytes_total":{"type":"integer","format":"int64","minimum":0},"type":{"type":"string","enum":["decompress"]}}},{"type":"object","required":["destination_path","start_time","bytes_processed","bytes_total","type"],"properties":{"destination_path":{"type":"string"},"start_time":{"type":"string","format":"date-time"},"bytes_processed":{"type":"integer","format":"int64","minimum":0},"bytes_total":{"type":"integer","format":"int64","minimum":0},"type":{"type":"string","enum":["pull"]}}},{"type":"object","required":["path","destination_path","start_time","bytes_processed","bytes_total","files_processed","type"],"properties":{"path":{"type":"string"},"destination_path":{"type":"string"},"start_time":{"type":"string","format":"date-time"},"bytes_processed":{"type":"integer","format":"int64","minimum":0},"bytes_total":{"type":"integer","format":"int64","minimum":0},"files_processed":{"type":"integer","format":"int64","minimum":0},"type":{"type":"string","enum":["copy"]}}},{"type":"object","required":["path","files","start_time","bytes_processed","bytes_total","files_processed","type"],"properties":{"path":{"type":"string"},"files":{"type":"array","items":{"$ref":"#/components/schemas/CopyFile"}},"start_time":{"type":"string","format":"date-time"},"bytes_processed":{"type":"integer","format":"int64","minimum":0},"bytes_total":{"type":"integer","format":"int64","minimum":0},"files_processed":{"type":"integer","format":"int64","minimum":0},"type":{"type":"string","enum":["copy_many"]}}},{"type":"object","required":["server","path","files","destination_server","destination_path","start_time","bytes_processed","bytes_total","files_processed","type"],"properties":{"server":{"type":"string","format":"uuid"},"path":{"type":"string"},"files":{"type":"array","items":{"type":"string"}},"destination_server":{"type":"string","format":"uuid"},"destination_path":{"type":"string"},"start_time":{"type":"string","format":"date-time"},"bytes_processed":{"type":"integer","format":"int64","minimum":0},"bytes_total":{"type":"integer","format":"int64","minimum":0},"files_processed":{"type":"integer","format":"int64","minimum":0},"type":{"type":"string","enum":["copy_remote"]}}},{"type":"object","required":["backup","destination_path","start_time","bytes_processed","bytes_total","type"],"properties":{"backup":{"type":"string","format":"uuid"},"destination_path":{"type":"string"},"start_time":{"type":"string","format":"date-time"},"bytes_processed":{"type":"integer","format":"int64","minimum":0},"bytes_total":{"type":"integer","format":"int64","minimum":0},"type":{"type":"string","enum":["export_backup"]}}}]},"InstallationScript":{"type":"object","required":["container_image","entrypoint","script"],"properties":{"container_image":{"$ref":"#/components/schemas/CompactString"},"entrypoint":{"$ref":"#/components/schemas/CompactString"},"script":{"type":"string"},"environment":{"type":"object","additionalProperties":{},"propertyNames":{"type":"string"}}}},"MiB":{"type":"integer","format":"int64","description":"Represents a size in Mebibytes (MiB). The inner value is the number of MiB (not bytes!!).","minimum":0},"Mount":{"type":"object","required":["target","source","read_only"],"properties":{"target":{"$ref":"#/components/schemas/CompactString"},"source":{"$ref":"#/components/schemas/CompactString"},"read_only":{"type":"boolean"}}},"ResourceUsage":{"type":"object","required":["memory_bytes","memory_limit_bytes","disk_bytes","state","network","cpu_absolute","cpu_limit_absolute","uptime"],"properties":{"memory_bytes":{"type":"integer","format":"int64","minimum":0},"memory_limit_bytes":{"type":"integer","format":"int64","minimum":0},"disk_bytes":{"type":"integer","format":"int64","minimum":0},"state":{"$ref":"#/components/schemas/ServerState"},"network":{"type":"object","required":["rx_bytes","rx_packets","tx_bytes","tx_packets"],"properties":{"rx_bytes":{"type":"integer","format":"int64","minimum":0},"rx_packets":{"type":"integer","format":"int64","minimum":0},"tx_bytes":{"type":"integer","format":"int64","minimum":0},"tx_packets":{"type":"integer","format":"int64","minimum":0}}},"cpu_absolute":{"type":"number","format":"double"},"cpu_limit_absolute":{"type":"integer","format":"int32","minimum":0},"uptime":{"type":"integer","format":"int64","minimum":0}}},"ResticBackupConfiguration":{"type":"object","required":["repository","retry_lock_seconds","environment"],"properties":{"repository":{"type":"string"},"password_file":{"type":["string","null"]},"retry_lock_seconds":{"type":"integer","format":"int64","minimum":0},"environment":{"type":"object","additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}}}},"ResticTaskResult":{"type":"object","required":["started","finished","duration_ms","successful","data","stderr"],"properties":{"started":{"type":"string","format":"date-time"},"finished":{"type":"string","format":"date-time"},"duration_ms":{"type":"integer","minimum":0},"successful":{"type":"boolean"},"data":{},"stderr":{"$ref":"#/components/schemas/CompactString"}}},"RevisionInfo":{"type":"object","required":["id","size","stored_size","is_snapshot","created"],"properties":{"id":{"type":"integer","format":"int64"},"size":{"type":"integer","format":"int64","minimum":0},"stored_size":{"type":"integer","format":"int64","minimum":0},"user":{"type":["string","null"],"format":"uuid"},"is_snapshot":{"type":"boolean"},"created":{"type":"string","format":"date-time"}}},"Schedule":{"type":"object","required":["uuid","triggers","condition","actions"],"properties":{"uuid":{"type":"string","format":"uuid"},"triggers":{},"condition":{},"actions":{"type":"array","items":{}}}},"ScheduleStatus":{"type":"object","required":["running","errors"],"properties":{"running":{"type":"boolean"},"errors":{"type":"object","additionalProperties":{"type":"string"},"propertyNames":{"type":"string","format":"uuid"}},"step":{"type":["string","null"],"format":"uuid"}}},"Server":{"type":"object","required":["state","is_suspended","utilization","configuration"],"properties":{"state":{"$ref":"#/components/schemas/ServerState"},"is_suspended":{"type":"boolean"},"utilization":{"$ref":"#/components/schemas/ResourceUsage"},"configuration":{"$ref":"#/components/schemas/ServerConfiguration"}}},"ServerAutoStartBehavior":{"type":"string","enum":["always","unless_stopped","never"]},"ServerConfiguration":{"type":"object","required":["uuid","meta","suspended","invocation","skip_egg_scripts","environment","allocations","build","mounts","egg","container"],"properties":{"uuid":{"type":"string","format":"uuid"},"start_on_completion":{"type":["boolean","null"]},"meta":{"type":"object","required":["name","description"],"properties":{"name":{"$ref":"#/components/schemas/CompactString"},"description":{"$ref":"#/components/schemas/CompactString"}}},"suspended":{"type":"boolean"},"invocation":{"$ref":"#/components/schemas/CompactString"},"skip_egg_scripts":{"type":"boolean"},"entrypoint":{"type":["array","null"],"items":{"type":"string"}},"environment":{"type":"object","additionalProperties":{},"propertyNames":{"type":"string"}},"labels":{"type":"object","additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}},"backups":{"type":"array","items":{"type":"string","format":"uuid"}},"schedules":{"type":"array","items":{"$ref":"#/components/schemas/Schedule"}},"allocations":{"type":"object","required":["force_outgoing_ip"],"properties":{"force_outgoing_ip":{"type":"boolean"},"default":{"oneOf":[{"type":"null"},{"type":"object","required":["ip","port"],"properties":{"ip":{"$ref":"#/components/schemas/CompactString"},"port":{"type":"integer","format":"int32","minimum":0}}}]},"mappings":{"type":"object","additionalProperties":{"type":"array","items":{"type":"integer","format":"int32","minimum":0}},"propertyNames":{"type":"string"}}}},"build":{"type":"object","required":["memory_limit","swap","cpu_limit","disk_space","oom_disabled"],"properties":{"memory_limit":{"type":"integer","format":"int64"},"overhead_memory":{"type":"integer","format":"int64"},"swap":{"type":"integer","format":"int64"},"io_weight":{"type":["integer","null"],"format":"int32","minimum":0},"cpu_limit":{"type":"integer","format":"int64"},"disk_space":{"type":"integer","format":"int64","minimum":0},"threads":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CompactString"}]},"oom_disabled":{"type":"boolean"}}},"mounts":{"type":"array","items":{"$ref":"#/components/schemas/Mount"}},"egg":{"type":"object","required":["id"],"properties":{"id":{"type":"string","format":"uuid"},"file_denylist":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}}}},"container":{"type":"object","required":["image"],"properties":{"image":{"$ref":"#/components/schemas/CompactString"},"timezone":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CompactString"}]},"hugepages_passthrough_enabled":{"type":"boolean"},"kvm_passthrough_enabled":{"type":"boolean"},"seccomp":{"type":"object","properties":{"remove_allowed":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}}}}}},"auto_kill":{"type":"object","properties":{"enabled":{"type":"boolean"},"seconds":{"type":"integer","format":"int64","minimum":0}}},"auto_start_behavior":{"$ref":"#/components/schemas/ServerAutoStartBehavior"}}},"ServerPowerAction":{"type":"string","enum":["start","stop","restart","kill"]},"ServerState":{"type":"string","enum":["offline","starting","stopping","running"]},"StreamableArchiveFormat":{"type":"string","enum":["tar","tar_gz","tar_xz","tar_lzip","tar_bz2","tar_lz4","tar_zstd","itaf","itaf_gz","itaf_xz","itaf_lzip","itaf_bz2","itaf_lz4","itaf_zstd","zip"]},"SystemBackupsDdupBakCompressionFormat":{"type":"string","enum":["none","deflate","gzip","brotli"]},"SystemStats":{"type":"object","required":["cpu","network","memory","disk"],"properties":{"cpu":{"type":"object","required":["used","threads","model"],"properties":{"used":{"type":"number","format":"float"},"threads":{"type":"integer","minimum":0},"model":{"type":"string"}}},"network":{"type":"object","required":["received","received_packets","receiving_rate","received_packets_rate","sent","sent_packets","sending_rate","sending_packets_rate"],"properties":{"received":{"type":"integer","format":"int64","minimum":0},"received_packets":{"type":"integer","format":"int64","minimum":0},"receiving_rate":{"type":"number","format":"double"},"received_packets_rate":{"type":"number","format":"double"},"sent":{"type":"integer","format":"int64","minimum":0},"sent_packets":{"type":"integer","format":"int64","minimum":0},"sending_rate":{"type":"number","format":"double"},"sending_packets_rate":{"type":"number","format":"double"}}},"memory":{"type":"object","required":["used","used_process","total"],"properties":{"used":{"type":"integer","format":"int64","minimum":0},"used_process":{"type":"integer","format":"int64","minimum":0},"total":{"type":"integer","format":"int64","minimum":0}}},"disk":{"type":"object","required":["used","total","read","reading_rate","written","writing_rate"],"properties":{"used":{"type":"integer","format":"int64","minimum":0},"total":{"type":"integer","format":"int64","minimum":0},"read":{"type":"integer","format":"int64","minimum":0},"reading_rate":{"type":"number","format":"double"},"written":{"type":"integer","format":"int64","minimum":0},"writing_rate":{"type":"number","format":"double"}}}}},"TransferArchiveFormat":{"type":"string","enum":["tar","tar_gz","tar_xz","tar_lzip","tar_bz2","tar_lz4","tar_zstd","itaf","itaf_gz","itaf_xz","itaf_lzip","itaf_bz2","itaf_lz4","itaf_zstd"]},"TransferCapabilities":{"type":"object","required":["wings_archive_format","wings_archive_compression_level","disk_limiter_mode"],"properties":{"wings_archive_format":{"$ref":"#/components/schemas/ArchiveFormat"},"wings_archive_compression_level":{"$ref":"#/components/schemas/CompressionLevel"},"disk_limiter_mode":{"$ref":"#/components/schemas/DiskLimiterMode"}}},"TransferProgress":{"type":"object","required":["archive_bytes_processed","network_bytes_processed","bytes_total","files_processed"],"properties":{"archive_bytes_processed":{"type":"integer","format":"int64","minimum":0},"network_bytes_processed":{"type":"integer","format":"int64","minimum":0},"bytes_total":{"type":"integer","format":"int64","minimum":0},"files_processed":{"type":"integer","format":"int64","minimum":0}}},"UsedPort":{"type":"object","required":["port"],"properties":{"port":{"type":"integer","format":"int32","minimum":0},"server":{"type":["string","null"],"format":"uuid"}}},"WebsocketEvent":{"type":"string","enum":["auth success","token expiring","token expired","auth","configure socket","set state","send logs","send command","send stats","send status","daemon error","jwt error","ping","pong","stats","status","pending restart","custom event","console output","install output","image pull progress","image pull completed","install started","install completed","daemon message","backup started","backup progress","backup completed","backup deleted","backup restore started","backup restore progress","backup restore completed","transfer logs","transfer status","transfer progress","schedule started","schedule step status","schedule step error","schedule completed","operation progress","operation error","operation completed","file collab subscribe","file collab unsubscribe","file collab update","file collab awareness","file collab save","file collab sync","file collab participants","file collab saved","file collab error"]},"WebsocketMessage":{"type":"object","required":["event","args"],"properties":{"event":{"$ref":"#/components/schemas/WebsocketEvent"},"args":{"type":"array","items":{"type":"string"}}}}},"securitySchemes":{"api_key":{"type":"apiKey","in":"header","name":"Authorization"}}}}