getHttpClient()->post('/api/transfer', [ 'json' => [ 'server_id' => $server->uuid, 'url' => $server->node->getConnectionAddress() . sprintf('/api/servers/%s/archive', $server->uuid), 'token' => 'Bearer ' . $token->toString(), 'server' => [ 'uuid' => $server->uuid, 'start_on_completion' => false, ], ], ]); } catch (GuzzleException $exception) { throw new DaemonConnectionException($exception); } } }