Editing Postback URL by action

Parameters

HTTP method

Access rights

URL

Parameters

Note

POST manage_opt_codes https://api.admitad.com/opt_codes/action/update/{id}/ Request parameters list.
  • * Returns the result in the JSON format.

The list of link parameters

Example of use

Example of a request with utility ``curl``:

curl -L -H 'Authorization: Bearer access_token' -X POST https://api.admitad.com/opt_codes/action/update/24/ -d 'campaign=6&desc_mode=1&method=1&action_type=1'

Example of the response from the API server in the JSON format:

{
    "campaign": {
        "id": 6,
        "name": "AdvCamp"
    },
    "desc_mode": 0,
    "event": 0,
    "generated_url": "http://test.com/?offer_id=[[[offer_id]]]&offer_name=[[[offer_name]]]&website_name=[[[website_name]]]&website_id=[[[website_id]]]&subid=[[[subid]]]&payment_sum=[[[payment_sum]]]&currency=[[[currency]]]&order_id=[[[order_id]]]&order_sum=[[[order_sum]]]&click_time=[[[click_time]]]&time=[[[time]]]&conversion_time=[[[conversion_time]]]&type=[[[type]]]&action_ip=[[[action_ip]]]&user_agent=[[[user_agent]]]",
    "id": 22,
    "method": 1,
    "status": [],
    "user_url": "http://test.com/",
    "website": {
        "id": 33,
        "name": "AdRiver"
    },
}

Description of API server response fields