Update Single or Multiple Links in Foxly

Update Single or Multiple Links in Foxly

API Endpoint:

PUT /v1/update

Request Body:

curl --location --request PUT 'https://apiv2.foxlyme.com/api/user/v1/update?
url_shortner_id=string&domain_id=string' \
--header 'api-key: API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "custom_code": "eew3",
    "password": "",
    "expire_on": "",
    "expiration_link": "",
    "clicks": "",
    "note": "",
    "status": 1,
    "utm": {
        "utm_source": "",
        "utm_medium": "",
        "utm_campaign": ""
    },
    "long_url":""
}'

Query Parameters:

  • domainName (query) – String

  • url_shortner_id (query) – String

  • Other parameters as specified in the request body

Response Body:

{
    "error": false,
    "message": "string",
    "data": {
        "short_url": "string",
        "short_code": "string",
        "url_shortner_id": "string",
        "updated_at": "date",
        "long_url": "string"
    }
}

Update specific fields of rotated links with three redirection modes: random, sequential, and weightage.

API Endpoint:

PUT /v1/rotate_update

Request Body:

curl --location --request PUT 'https://apiv2.foxlyme.com/api/user/v1/rotate_update?
url_shortner_id=string&domain_id=string' \
--header 'api-key: API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "custom_code": "",
    "password": "",
    "expire_on": "",
    "expiration_link": "",
    "clicks": "",
    "note": "",
    "status": 1,
    "utm": {
        "utm_source": "",
        "utm_medium": "",
        "utm_campaign": ""
    },
    "rotating_urls": [ "https://www.foxlyme.com/" ],
    "redirection_mode": ""
}'

Query Parameters:

  • domainName (query) – String

  • url_shortner_id (query) – String

  • Other parameters as specified in the request body

Response Body:

{
    "error": false,
    "message": "string",
    "data": {
        "short_url": "string",
        "short_code": "string",
        "url_shortner_id": "string",
        "updated_at": "date"
    }
}