Editing Postback URL by the program change status¶
Parameters¶
HTTP method |
Access rights |
URL | Parameters |
Note |
---|---|---|---|---|
POST | manage_opt_codes | https://api.admitad.com/opt_codes/offer/update/{id}/ |
Parameter request list |
|
* Returns the result in the JSON format.
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/offer/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": 1,
"generated_url": "http://test.com/?offer_id=[[[offer_id]]]&offer_name=[[[offer_name]]]",
"id": 21,
"method": 1,
"status": [],
"user_url": "http://test.com/",
"website": {
"id": 33,
"name": "AdRiver"
},
}