curl --request PUT \
--url https://itlinks.to/v1/links/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"data": {
"name": "<string>",
"slug": "ExampleSlug",
"rules": [
{
"url_ratios": [
{
"url": "<string>",
"ratio": 123,
"name": "<string>",
"meta_title": "<string>",
"meta_description": "<string>",
"meta_media_url": "<string>",
"mobile_app_os_id": 2,
"scripts": [
2
]
}
],
"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"
}
]
}
],
"tags": [
"<string>"
]
}
}
EOF{
"meta": {}
}curl --request PUT \
--url https://itlinks.to/v1/links/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"data": {
"name": "<string>",
"slug": "ExampleSlug",
"rules": [
{
"url_ratios": [
{
"url": "<string>",
"ratio": 123,
"name": "<string>",
"meta_title": "<string>",
"meta_description": "<string>",
"meta_media_url": "<string>",
"mobile_app_os_id": 2,
"scripts": [
2
]
}
],
"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"
}
]
}
],
"tags": [
"<string>"
]
}
}
EOF{
"meta": {}
}The unique identifier of the link to update.
x >= 1Show child attributes
The name of the link to be updated.
320A URL-friendly identifier for the link.
320"ExampleSlug"
A list of rules associated with the link.
Show child attributes
A list of URL ratios defining how different URLs should be distributed.
Show child attributes
The actual URL.
The ratio in which this URL should be used.
The name of the URL ratio.
320The meta title for the URL.
320The meta description for the URL.
The media URL for the meta tag.
The OS ID of the mobile app, if applicable.
x >= 1A list of script IDs associated with the link.
x >= 1The name of the rule.
320The 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.
Show child attributes
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.
320Link updated successfully.