TEASEDocs
API ReferenceSmart Links

Edit a destination of a policy smart link

Edits one applied destination: switch it in or out of routing ('active'), replace its URL, or relabel it. Scoped to a destination that belongs to this smart link. 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

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

PATCH
/api/admin/smartlinks/{smartlink_id}/inventory/{link_id}
curl -X PATCH "https://example.com/api/admin/smartlinks/0/inventory/0" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": 0,  "arm": "paid",  "country": "string",  "url": "http://example.com",  "active": true,  "name": "string"}
{  "detail": {    "code": "string",    "message": "string"  }}
{  "detail": {    "code": "string",    "message": "string"  }}