cURL
curl --request PUT \ --url https://api.krumb.fun/api/link/{short_id} \ --header 'Content-Type: application/json' \ --header 'X-Api-Key: <x-api-key>' \ --header 'X-Email: <x-email>' \ --header 'X-Password: <x-password>' \ --data ' { "url": "https://new-destination.com" } '
{ "success": true, "message": "<string>", "short_id": "<string>", "new_url": "<string>" }
Update the destination URL for an existing short link.
PUT /api/link/{short_id}
X-Email: [[email protected]](mailto:[email protected]) X-Password: your\_password X-Api-Key: your\_api\_key
{ "url": "https://new-destination.com" }
{ "success": true, "message": "Link updated", "short_id": "abc123", "new_url": "https://new-destination.com" }
400
url
403
404
"https://new-destination.com"
Link updated successfully