Skip to main content
PUT
/
api
/
link
/
{short_id}
Update Link
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 Link

PUT /api/link/{short_id} Update the destination URL for an existing short link.

Request

Headers:

X-Email: [[email protected]](mailto:[email protected])
X-Password: your\_password
X-Api-Key: your\_api\_key

Body:
{
  "url": "https://new-destination.com"
}

Success Response

{
  "success": true,
  "message": "Link updated",
  "short_id": "abc123",
  "new_url": "https://new-destination.com"
}

Error Responses

  • 400 – Missing required headers or missing url in body
  • 403 – Authentication failed
  • 404 – Link not found

Headers

X-Email
string
required
X-Password
string
required
X-Api-Key
string
required

Path Parameters

short_id
string
required

Body

application/json
url
string
required
Example:

"https://new-destination.com"

Response

Link updated successfully

success
boolean
message
string
short_id
string
new_url
string