API referenceSections

Set the panel's public address after install; empty clears it

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

PUT /api/v1/tenants/{tid}/panel-address

Set the panel's public address after install; empty clears it (ADR 0133)

https://host[:port] without a path (PUBLIC_URL_INVALID), not loopback (PUBLIC_URL_LOOPBACK); refused when the service was started with -public-url (PUBLIC_URL_FIXED). Takes effect at once: enrollment tokens, sign-in links and emails use it. Audited as panel.public_url.

Authentication: API key (Authorization: Bearer …) or session cookie __Host-panel_session.

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Request body

required

Content type: application/json

object
  • no other properties
  • public_url string required
Example
{
  "public_url": "string"
}

Responses

200 The address now

Content type: application/json

  • public_url string required

    Empty when none is set

  • source string required
    Allowed values: "flag" "setting" "none"
Example
{
  "public_url": "string",
  "source": "flag"
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required