Update application partner
POST
/api/v2/client/applications/{application_id}/partners/{partner_id}
const url = 'https://app.affisemmp.com/api/v2/client/applications/1/partners/1';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"conversion_postbacks":[{"conversion_type":"l","postback_urls":["v"],"events_mapping":"example","click_filter":[{"param":"q","values":{}}],"geo_filter":{"countries":["bn"],"exclude":false},"cost":7,"send_organic":false}],"link_settings":{},"postback_url":"https://www.gulgowski.com/nihil-accusantium-harum-mollitia-modi-deserunt","rejected_postback_url":"http://www.dubuque.net/quo-omnis-nostrum-aut-adipisci","tracking_url_params":"p","impressions_url_params":"w","storages_links":[{"store":"google","link":"z"}],"storages_links_apply_for_all":true}'};
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/partners/1 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "conversion_postbacks": [ { "conversion_type": "l", "postback_urls": [ "v" ], "events_mapping": "example", "click_filter": [ { "param": "q", "values": {} } ], "geo_filter": { "countries": [ "bn" ], "exclude": false }, "cost": 7, "send_organic": false } ], "link_settings": {}, "postback_url": "https://www.gulgowski.com/nihil-accusantium-harum-mollitia-modi-deserunt", "rejected_postback_url": "http://www.dubuque.net/quo-omnis-nostrum-aut-adipisci", "tracking_url_params": "p", "impressions_url_params": "w", "storages_links": [ { "store": "google", "link": "z" } ], "storages_links_apply_for_all": true }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” application_id
required
integer
The ID of the application.
Example
1 partner_id
required
integer
The ID of the partner.
Example
1Request Body
Section titled “Request Body ” Media type application/json
object
conversion_postbacks
Array<object>
object
conversion_type
required
Must not be greater than 255 characters.
string
Example
l postback_urls
Must not be greater than 4000 characters.
Array<string>
Example
[ "v"] events_mapping
string
click_filter
Array<object>
object
param
required
Must not be greater than 256 characters.
string
Example
q values
required
Must have at least 1 items.
object
Example
{} geo_filter
object
countries
The code of an existing record in the countries table. Must be 2 characters.
Array<string>
Example
[ "bn"] exclude
boolean
Example
false cost
required
Must not be greater than 99999.99.
number
Example
7 send_organic
boolean
Example
false link_settings
object
traffic_source
required
The name of an existing record in the traffic_sources table.
string
Example
architecto fingerprint_available
required
Must be between 3600 and 2592000.
integer
Example
3601 device_id_available
required
Must be between 3600 and 2592000.
integer
Example
3600 impression_fingerprint_available
Must be between 3600 and 2592000.
integer
Example
3601 impression_device_id_available
Must be between 3600 and 2592000.
integer
Example
3600 re_attribution
required
boolean
Example
trueExample
{} postback_url
Must not be greater than 4000 characters.
string
Example
https://www.gulgowski.com/nihil-accusantium-harum-mollitia-modi-deserunt rejected_postback_url
Must not be greater than 4000 characters.
string
Example
http://www.dubuque.net/quo-omnis-nostrum-aut-adipisci tracking_url_params
Must not be greater than 4000 characters.
string
Example
p impressions_url_params
Must not be greater than 4000 characters.
string
Example
w storages_links
Array<object>
object
store
required
string
Example
custom link
required
Must not be greater than 4000 characters.
string
Example
z storages_links_apply_for_all
boolean
Example
trueResponses
Section titled “ Responses ” Media type application/json
object
message
string
Example
{ "message": "Application partner's settings has been successfully updated."}