Authorization: Bearer <token>. Get it with the sign-in call (POST /api/customer-users/partner-login).metadata and tags. The one exception is customAlias: leave it out and the code stays as it is.destinationUrl, customAlias, expiresAtUtc and maxClicks follow the same rules as in the create call.customAlias changes the code. The old short address stops working at once. A code that is already taken answers 409.isActive to false to switch the link off without deleting it; the short address then answers 410.campaignImpressions and contactImpressions replace the impression counts of the campaign and the contact named in the same request.curl --location --request PUT 'https://link-shortener-api.veloconnect.me/api/links/3f2b8c1e-5d47-4a9b-9c0e-7a1d2e3f4b5c' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"destinationUrl": "https://shop.example.com/winter-sale?utm_source=sms",
"isActive": true,
"expiresAtUtc": "2027-01-31T20:00:00Z",
"maxClicks": 5000,
"campaignId": "b7d4e2a1-93c6-4f08-8a5e-1d2c3b4a5f60",
"metadata": {
"source": "sms",
"segment": "returning-customers"
},
"tags": [
"winter",
"sms"
],
"campaignImpressions": 15000
}'{
"id": "3f2b8c1e-5d47-4a9b-9c0e-7a1d2e3f4b5c",
"code": "autumn-sale",
"destinationUrl": "https://shop.example.com/winter-sale?utm_source=sms",
"isCustomAlias": true,
"isActive": true,
"expiresAtUtc": "2027-01-31T20:00:00+00:00",
"maxClicks": 5000,
"campaignId": "b7d4e2a1-93c6-4f08-8a5e-1d2c3b4a5f60",
"contactId": null,
"metadata": {
"source": "sms",
"segment": "returning-customers"
},
"tags": [
"winter",
"sms"
],
"createdAtUtc": "2026-10-08T09:30:00+00:00",
"updatedAtUtc": "2026-10-08T11:05:00+00:00"
}