Endpoint
Authentication
Requires authentication via API token in theAuthorization header.
Path Parameters
The ID of the URL to update
Request Body
All fields are optional. Only include the fields you want to update.New destination URL. Must be a valid HTTP/HTTPS URL.
New vanity string. Set to
null or empty string to remove the vanity. Must be unique if provided.Maximum number of views. Set to
null to remove the limit. Must be at least 0.New password for the URL. Set to
null or empty string to remove password protection.Whether the URL should be active and redirect users.
Response
Returns the updated URL object. Passwords are never included in the response.Unique identifier for the shortened URL
Random code for the URL
Custom vanity string, if set
The destination URL
Number of times this URL has been accessed
Maximum number of views before the URL is disabled
Whether the URL is currently active
ISO 8601 timestamp of when the URL was created
ISO 8601 timestamp of when the URL was last updated
ID of the user who created this URL
Example Request
Update destination
Set vanity URL
Remove vanity
Set password
Remove password
Set max views
Disable URL
Update multiple properties
Example Response
200 OK
400 Bad Request - Invalid password
400 Bad Request - Vanity exists
404 Not Found
Notes
- You can only update URLs you own
- Passwords are hashed before storage
- Setting password to
nullor empty string removes password protection - Setting vanity to
nullremoves the custom vanity (the URL will use the random code) - Vanity strings must be unique across all URLs
- The
destinationfield must be a valid HTTP/HTTPS URL - The
codefield cannot be changed - it’s permanently assigned when the URL is created - View counts are not affected by updates and continue to increment normally