API Reference
Update a link
PUT
/
links
/
{id}
Copy
curl --request PUT \
--url https://itlinks.to/v1/links/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"data": {
"name": "<string>",
"slug": "ExampleSlug",
"tags": [
"<string>"
],
"rules": [
{
"name": "<string>",
"active_from": "2023-11-07T05:31:56Z",
"active_to": "2023-11-07T05:31:56Z",
"locations": [
{
"type": "country",
"id": "ISO 3166-1 alpha-3 country code, or one of: ['\''Africa'\'', '\''Antarctica'\'', '\''Asia'\'', '\''Australia'\'', '\''Europe'\'', '\''North America'\'', '\''Oceania'\'', '\''South America'\'']"
}
],
"device_types": [
"Desktop"
],
"oses": [
"Mac OS"
],
"week_days": [
"MONDAY"
],
"day_time_ranges": [
{
"time_from": "22:00",
"time_to": "23:00"
}
],
"url_ratios": [
{
"name": "<string>",
"meta_title": "<string>",
"meta_description": "<string>",
"meta_media_url": "<string>",
"url": "<string>",
"mobile_app_os_id": 2,
"scripts": [
2
],
"ratio": 123
}
]
}
]
}
}'
Copy
{
"meta": {}
}
Authorizations
Path Parameters
Required range:
x >= 1
Body
application/json
Response
200
application/json
Link updated successfully.
The response is of type object
.
Copy
curl --request PUT \
--url https://itlinks.to/v1/links/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"data": {
"name": "<string>",
"slug": "ExampleSlug",
"tags": [
"<string>"
],
"rules": [
{
"name": "<string>",
"active_from": "2023-11-07T05:31:56Z",
"active_to": "2023-11-07T05:31:56Z",
"locations": [
{
"type": "country",
"id": "ISO 3166-1 alpha-3 country code, or one of: ['\''Africa'\'', '\''Antarctica'\'', '\''Asia'\'', '\''Australia'\'', '\''Europe'\'', '\''North America'\'', '\''Oceania'\'', '\''South America'\'']"
}
],
"device_types": [
"Desktop"
],
"oses": [
"Mac OS"
],
"week_days": [
"MONDAY"
],
"day_time_ranges": [
{
"time_from": "22:00",
"time_to": "23:00"
}
],
"url_ratios": [
{
"name": "<string>",
"meta_title": "<string>",
"meta_description": "<string>",
"meta_media_url": "<string>",
"url": "<string>",
"mobile_app_os_id": 2,
"scripts": [
2
],
"ratio": 123
}
]
}
]
}
}'
Copy
{
"meta": {}
}
Assistant
Responses are generated using AI and may contain mistakes.