Update URL details
PUT
/url/{id}
URL
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
id
string
required
Body Params application/json
url
string
optional
tags
array[string]
optional
utmSource
string
optional
utmMedium
string
optional
utmCampaign
string
optional
utmTerm
string
optional
utmContent
string
optional
Example
{
"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
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
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
🟢200URL updated successfully
application/json
Body
ok
boolean
optional
Example:
true
response
object
optional
message
string
optional
Example:
Operation successful
data
object
optional
Example
{
"ok": true,
"response": {
"message": "Operation successful",
"data": {}
}
}
🟠400Validation Error
🟠401Unauthorized
🔴500Internal Server Error
Modified at 2024-06-17 11:46:02