Servers

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_urlstringrequired
  • internal_urlstringrequired
  • streaming_domainstring

    The address the panel's own server streams on. The panel's own address does not change.

  • capabilitiesstring[]
  • max_streamsinteger
  • rotateboolean

    Make new credentials for the panel's own streaming server, instead of reusing the current ones.

    Default: false

Response

200 OK

  • instance_idstringrequired
  • api_tokenstringrequired

    The server's own credential, sent as Authorization: Token <token>.

  • webhook_bearerstringrequired

    The secret the panel signs its calls to the server with.

  • panel_urlstring (uri)required
  • heartbeat_intervalintegerrequired

    Seconds 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.

What each error means