API referenceSections

Change a button

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

PUT /api/v1/tenants/{tid}/custom-buttons/{bid}

Change a button

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
bidpathstringrequired
X-CSRF-Tokenheaderstringoptional

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

Request body

required

Content type: application/json

  • label string required
    • max length 40
  • icon string required

    One of the icons the list endpoint returns

  • url string required

    https only

  • pass_tenant boolean optional

    Add tenant_id=<customer> to the link

  • place string required
    Allowed values: "nav" "dashboard"
  • position integer optional
    • minimum 0
    • maximum 999
Example
{
  "label": "string",
  "icon": "string",
  "url": "string",
  "pass_tenant": true,
  "place": "nav",
  "position": 0
}

Responses

200 Saved

Content type: application/json

  • id string required
  • label string required
  • icon string required
  • url string required
  • pass_tenant boolean required
  • place string required
  • position integer required
  • created_at string (date-time) optional
Example
{
  "id": "string",
  "label": "string",
  "icon": "string",
  "url": "string",
  "pass_tenant": true,
  "place": "string",
  "position": 0,
  "created_at": "2026-01-01T00:00:00Z"
}

default Error

Content type: application/json

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