Update application settings
const url = 'https://app.affisemmp.com/api/v2/client/applications/1/settings';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"conversion_postbacks":[{"conversion_type":"w","postback_urls":["q"],"events_mapping":"example","click_filter":[{"param":"b","values":{}}],"geo_filter":{"countries":["bn"],"exclude":true},"cost":7,"send_organic":false}],"cross_postback_url":"http://www.bailey.biz/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html","default_postback_url":"https://www.runte.com/ab-provident-perspiciatis-quo-omnis-nostrum-aut-adipisci","rejected_postback_url":"https://cronin.com/incidunt-iure-odit-et-et-modi-ipsum.html","send_organic":false,"cross_postback_for_all_conversions":false,"secure_code":"pscqldzsnrwtujwv","fingerprint_available":24,"device_id_available":3601,"impression_fingerprint_available":15,"impression_device_id_available":21,"re_attribution":false,"client_url":"http://gaylord.org/","settings":null,"storages_links":[{"store":"google","link":"n"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.affisemmp.com/api/v2/client/applications/1/settings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "conversion_postbacks": [ { "conversion_type": "w", "postback_urls": [ "q" ], "events_mapping": "example", "click_filter": [ { "param": "b", "values": {} } ], "geo_filter": { "countries": [ "bn" ], "exclude": true }, "cost": 7, "send_organic": false } ], "cross_postback_url": "http://www.bailey.biz/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html", "default_postback_url": "https://www.runte.com/ab-provident-perspiciatis-quo-omnis-nostrum-aut-adipisci", "rejected_postback_url": "https://cronin.com/incidunt-iure-odit-et-et-modi-ipsum.html", "send_organic": false, "cross_postback_for_all_conversions": false, "secure_code": "pscqldzsnrwtujwv", "fingerprint_available": 24, "device_id_available": 3601, "impression_fingerprint_available": 15, "impression_device_id_available": 21, "re_attribution": false, "client_url": "http://gaylord.org/", "settings": null, "storages_links": [ { "store": "google", "link": "n" } ] }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The ID of the application.
Example
1Request Body required
Section titled “Request Body required ”object
object
Must not be greater than 255 characters.
Example
wMust not be greater than 4000 characters.
Example
[ "q"]object
Must not be greater than 256 characters.
Example
bMust have at least 1 items.
object
Example
{}object
The code of an existing record in the countries table. Must be 2 characters.
Example
[ "bn"]Example
trueMust not be greater than 99999.99.
Example
7Example
falseMust not be greater than 4000 characters.
Example
http://www.bailey.biz/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.htmlMust not be greater than 4000 characters.
Example
https://www.runte.com/ab-provident-perspiciatis-quo-omnis-nostrum-aut-adipisciMust not be greater than 4000 characters.
Example
https://cronin.com/incidunt-iure-odit-et-et-modi-ipsum.htmlExample
falseExample
falseMust be at least 2 characters. Must not be greater than 20 characters.
Example
pscqldzsnrwtujwvMust be at least 3600. Must not be greater than 2592000.
Example
24Must be between 3600 and 2592000.
Example
3601Must be at least 3600. Must not be greater than 2592000.
Example
15Must be at least 3600. Must not be greater than 2592000.
Example
21Example
falseMust be a valid URL.
Example
http://gaylord.org/object
object
Must not be greater than 256 characters.
Example
zExample
[ "architecto"]Must not be greater than 64 characters.
Example
[ "p"]Example
trueobject
Example
nullobject
Example
nullExample
nullobject
Example
telegramMust not be greater than 4000 characters.
Example
nResponses
Section titled “ Responses ”object
Example
{ "message": "Application successfully updated"}