Add a button to the customers' menu or overview
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
POST
/api/v1/tenants/{tid}/custom-buttonsAdd a button to the customers' menu or overview
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Request body
required
Content type: application/json
labelstring required- max length 40
iconstring requiredOne of the icons the list endpoint returns
urlstring requiredhttps only
pass_tenantboolean optionalAdd tenant_id=<customer> to the link
placestring requiredAllowed values:"nav""dashboard"positioninteger optional- minimum 0
- maximum 999
Example
{
"label": "string",
"icon": "string",
"url": "string",
"pass_tenant": true,
"place": "nav",
"position": 0
}Responses
201 Added
Content type: application/json
idstring requiredlabelstring requirediconstring requiredurlstring requiredpass_tenantboolean requiredplacestring requiredpositioninteger requiredcreated_atstring (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
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required