TEASEDocs
API ReferenceLandings

Update a button

Update a draft button's label, url, icon, text, hidden flag, conditions, or A/B variants. Only provided fields change; changing the text re-renders the SVG label. Requires a write-scoped key.

Authorization

bearerAuth
AuthorizationBearer <token>

Your al_live_<prefix>_<secret> API key. Mint and manage keys in the dashboard.

In: header

Path Parameters

domain*string

The domain hostname.

tier*string

The segment id.

button_id*string

The button id.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

PATCH
/api/admin/buttons/{domain}/{tier}/{button_id}
curl -X PATCH "https://example.com/api/admin/buttons/string/string/string" \  -H "Content-Type: application/json" \  -d '{    "text_value": "Start your trial",    "url": "https://onlyfans.com/creator/trial2"  }'
{  "button_id": "b_9f8e7d6c",  "domain": "links.creator.com",  "tier": "s_1a2b3c4d",  "position": 0,  "label": "Start your trial",  "url": "https://onlyfans.com/creator/trial2",  "icon": "of.svg",  "text_filename": "label_42_e5f6a7b8.svg",  "text_value": "Start your trial",  "hidden": false,  "match": null,  "variants": null}
{  "detail": {    "code": "invalid_request",    "message": "Invalid value for field."  }}
{  "detail": "auth required"}
{  "detail": {    "code": "button_not_found",    "message": "Кнопка не найдена"  }}