PUT
/
links
/
{id}
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

Authorization
string
header
required

Path Parameters

id
number
required
Required range: x >= 1

Body

application/json
data
object
required

Response

200
application/json
Link updated successfully.
meta
object