Update public_host (super_admin only)
PUT
/system/public-host
const url = 'https://your-server.example/api/system/public-host';const options = { method: 'PUT', headers: {cookie: 'session=<session>', 'Content-Type': 'application/json'}, body: '{"public_host":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://your-server.example/api/system/public-host \ --header 'Content-Type: application/json' \ --cookie session=<session> \ --data '{ "public_host": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
public_host
string
Example generated
{ "public_host": "example"}Responses
Section titled “Responses”Updated.
Media typeapplication/json
object
public_host
string
Example generated
{ "public_host": "example"}Invalid hostname or IP.
Requires super_admin.