Update application anti fraud settings
POST
/api/v2/client/applications/{application_id}/anti-fraud-settings
const url = 'https://app.affisemmp.com/api/v2/client/applications/1/anti-fraud-settings';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"social_traffic":false,"emulators":false,"ctit_sec":1,"session_count":22,"session_sec":7,"proxy":false,"24metrics_enabled":true,"24metrics_level":null}'};
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/anti-fraud-settings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "social_traffic": false, "emulators": false, "ctit_sec": 1, "session_count": 22, "session_sec": 7, "proxy": false, "24metrics_enabled": true, "24metrics_level": null }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” application_id
required
integer
The ID of the application.
Example
1Request Body
Section titled “Request Body ” Media type application/json
object
social_traffic
boolean
Example
false emulators
boolean
Example
false ctit_sec
Must be at least 1. Must not be greater than 999.
integer
Example
1 session_count
Must be at least 1. Must not be greater than 999.
integer
Example
22 session_sec
Must be at least 1. Must not be greater than 999.
integer
Example
7 proxy
boolean
Example
false 24metrics_enabled
boolean
Example
true 24metrics_level
string
Example
nullResponses
Section titled “ Responses ” Media type application/json
object
message
string
Example
{ "message": "Application successfully updated"}