Pular para o conteúdo

PATCH /v1/short-links/{id}

PATCH
/v1/short-links/{id}
curl --request PATCH \
--url https://seu-endereco-da-api/v1/short-links/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "destinationUrl": "https://example.com", "label": "example", "active": true, "expiresAt": "example", "rotationMode": "roundrobin", "forwardParams": true, "password": "example", "destinations": [ { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "url": "https://example.com", "label": "example", "weight": 1, "clickLimit": 1 } ] }'

Permissão que a Chave de acesso precisa: Gerenciar links curtos (short-links:manage).

id
required
string
Media typeapplication/json
object
destinationUrl
string format: uri
label
string
<= 120 characters
active
boolean
expiresAt
string
rotationMode
string
nullable
Allowed values: roundrobin random weight clicks
forwardParams
boolean
password
string
nullable >= 4 characters <= 72 characters
destinations
Array<object>
<= 20 items
object
id
string format: uuid
url
required
string format: uri
label
string
<= 120 characters
weight
number
>= 1 <= 1000
clickLimit
number
>= 1