Update a link
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
}
]
}
]
}
}'
{
"meta": {}
}
Authorizations
Path Parameters
x >= 1
Body
The name of the link to be updated.
320
A URL-friendly identifier for the link.
320
"ExampleSlug"
A list of rules associated with the link.
A list of URL ratios defining how different URLs should be distributed.
The actual URL.
The ratio in which this URL should be used.
The name of the URL ratio.
320
The meta title for the URL.
320
The meta description for the URL.
The media URL for the meta tag.
The OS ID of the mobile app, if applicable.
x >= 1
A list of script IDs associated with the link.
The name of the rule.
320
The starting date from which the rule is active.
The ending date until which the rule is active.
A list of locations where the rule applies.
The type of location targeted by the rule.
country
, continent
The specific location targeted by the rule.
"ISO 3166-1 alpha-3 country code, or one of: ['Africa', 'Antarctica', 'Asia', 'Australia', 'Europe', 'North America', 'Oceania', 'South America']"
The types of devices targeted by the rule.
Desktop
, Mobile
, Tablet
, iPod
, SmartTV
, Console
, Wearable
, Embedded
, Curl
, Bot
The operating systems targeted by the rule.
Mac OS
, iOS
, Android
, Windows
, Windows Mobile OS
The days of the week when the rule is active.
MONDAY
, TUESDAY
, WEDNESDAY
, THURSDAY
, FRIDAY
, SATURDAY
, SUNDAY
A list of tags for categorizing the link.
Response
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
}
]
}
]
}
}'
{
"meta": {}
}