Change the main site for the link

URL for a request


Method

GET

Incoming Parameters

Parameter Type Required Description
api_token string Yes API token for access
id int Yes Link ID
url string Yes Valid link with http or https

Return values

The server returns a response in JSON format. The list of parameters depends on the server response code:

Request example


    curl 'https://firelinks.cc/api/out/link/url?api_token=W9DtD7JtyHI7nPj8eEWul2pVkcobE62IHaHi3n8ClQdogBGZe6n70fIgTH3u'

Response example 200


{
    "success": true,
    "data": {
        "url": "URL updated"
    }
}

Response example 422


{
    "success": false,
    "errors": "Validation errors",
    "data": {
        "url": "URL is empty"
    }
}