Update shortened URL.
POST/generate/shortenedurl/put
Update shortened URL.
Request
Header Parameters
ipaas string
- application/json
Bodyrequired
identifierstringrequired
The shortened URL identifier that was returned by /add
.
Example:
to4w5vyb
destinationstringrequired
The new destination URL which the shortened URL will point to.
Example:
https://example.com
Responses
- 200
- 400
Success
- application/json
- Schema
- Example (auto)
Schema
newDestinationstringrequired
The new destination URL which was provided in the request body.
Example:
https://example.com
identifierstringrequired
The shortened URL identifier. Nothing is changed about this.
Example:
to4w5vyb
{
"newDestination": "https://example.com",
"identifier": "to4w5vyb"
}
Bad Request
- application/json
- Schema
- Example (auto)
Schema
statusnumber
errorMessagestring
{
"status": 0,
"errorMessage": "string"
}