2026-10-05 18:10:18 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace Pterodactyl\Contracts\Servers;
|
|
|
|
|
|
|
|
|
|
use Pterodactyl\Models\Server;
|
|
|
|
|
use Throwable;
|
|
|
|
|
|
|
|
|
|
interface UpdatesServerDetails
|
|
|
|
|
{
|
|
|
|
|
/**
|
2026-10-11 23:50:53 -04:00
|
|
|
* The input is validated here, and every detail is replaced: an external id left out is
|
|
|
|
|
* cleared and a description left out becomes empty. A new owner takes the server's SFTP
|
|
|
|
|
* access from the previous one. Extension field values go under `extensions` as
|
2026-10-11 09:04:02 -04:00
|
|
|
* ValidatedExtensionValues.
|
|
|
|
|
*
|
2026-10-11 19:54:55 -04:00
|
|
|
* @param array<string, mixed> $input name and owner_id, and optionally external_id and description
|
2026-10-05 18:10:18 -04:00
|
|
|
*
|
|
|
|
|
* @throws Throwable
|
|
|
|
|
*/
|
2026-10-11 09:04:02 -04:00
|
|
|
public function update(Server $server, array $input): Server;
|
2026-10-05 18:10:18 -04:00
|
|
|
}
|