This endpoint updates details of a shortened URL by its ID.
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
The ID of the shortened URL
Body Params application/json
The new URL to be shortened
Updated tags associated with the URL
Updated UTM source parameter
Updated UTM medium parameter
Updated UTM campaign parameter
Updated UTM term parameter
Updated UTM content parameter
{
"url": "http://showy-paddock.net",
"tags": [
"dolores"
],
"utmSource": "sint culpa Duis voluptate Excepteur",
"utmMedium": "irure nostrud esse",
"utmCampaign": "pariatur",
"utmTerm": "esse",
"utmContent": "Libero nam minus ducimus. Fugit facilis excepturi accusamus. Veritatis corrupti qui occaecati."
}
Request samples
curl --location --request PUT 'https://api.l2s.is/url/' \
--header 'Content-Type: application/json' \
--data-raw '{
"url": "http://showy-paddock.net",
"tags": [
"dolores"
],
"utmSource": "sint culpa Duis voluptate Excepteur",
"utmMedium": "irure nostrud esse",
"utmCampaign": "pariatur",
"utmTerm": "esse",
"utmContent": "Libero nam minus ducimus. Fugit facilis excepturi accusamus. Veritatis corrupti qui occaecati."
}'
Responses
application/json Example:Operation successful
{
"ok": true,
"response": {
"message": "Operation successful",
"data": {}
}
}
Modified at 2024-06-17 11:46:02