Let the panel's own server stream
POST
/instances/promote-panel/manage Delete and money: deletes, credits, servers or panel settings. Scopes
Makes the panel's own server a streaming server too, and returns the credentials its streaming software signs in with. The installer that adds streaming to the panel's server calls it; calling it again returns the same credentials unless rotate is true. Panel operators only.
Body
public_urlstringrequiredinternal_urlstringrequiredstreaming_domainstringThe address the panel's own server streams on. The panel's own address does not change.
capabilitiesstring[]max_streamsintegerrotatebooleanMake new credentials for the panel's own streaming server, instead of reusing the current ones.
Default:
false
Response
200 OK
instance_idstringrequiredapi_tokenstringrequiredThe server's own credential, sent as
Authorization: Token <token>.webhook_bearerstringrequiredThe secret the panel signs its calls to the server with.
panel_urlstring (uri)requiredheartbeat_intervalintegerrequiredSeconds between heartbeats the node should target.
Errors
- 400 Something sent is not valid. Each field that is wrong is named with what is wrong.
- 401 No credential, or one that is wrong, expired or revoked.
- 403 The account, or the key's or app's scopes, may not do this.
- 429 Slow down: wait the seconds in the Retry-After header, then try again.