Update application facebook settings
POST
/api/v2/client/applications/{application_id}/fb-settings
const url = 'https://app.affisemmp.com/api/v2/client/applications/1/fb-settings';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"decryption_key":"b","fb_app_id":"n","fb_meta_pixel_id":"g","fb_access_token":"z","fb_pixel_access_token":"m","fbc_api_enabled":false,"fbc_api_events":["example"],"fbc_api_events_mapping":[["example"]],"fb_marketing_events_mapping":[{"affise_event":"architecto","adapty_subs_event":"architecto","apphud_subs_event":"architecto","revenuecat_subs_event":"architecto","paddle_subs_event":"architecto","facebook_marketing_event":"MOBILE_APP_INSTALL"}],"fb_pixel_events_mapping":[{"affise_event":"architecto","adapty_subs_event":"architecto","apphud_subs_event":"architecto","revenuecat_subs_event":"architecto","paddle_subs_event":"architecto","facebook_pixel_event":"mobile_app_install"}],"fbc_api_value":"i","fbc_api_send_organic":false,"use_pixel_api":true,"fb_send_organic":false,"fb_send_googleads":true,"market_is_active":true,"pixel_is_active":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/fb-settings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "decryption_key": "b", "fb_app_id": "n", "fb_meta_pixel_id": "g", "fb_access_token": "z", "fb_pixel_access_token": "m", "fbc_api_enabled": false, "fbc_api_events": [ "example" ], "fbc_api_events_mapping": [ [ "example" ] ], "fb_marketing_events_mapping": [ { "affise_event": "architecto", "adapty_subs_event": "architecto", "apphud_subs_event": "architecto", "revenuecat_subs_event": "architecto", "paddle_subs_event": "architecto", "facebook_marketing_event": "MOBILE_APP_INSTALL" } ], "fb_pixel_events_mapping": [ { "affise_event": "architecto", "adapty_subs_event": "architecto", "apphud_subs_event": "architecto", "revenuecat_subs_event": "architecto", "paddle_subs_event": "architecto", "facebook_pixel_event": "mobile_app_install" } ], "fbc_api_value": "i", "fbc_api_send_organic": false, "use_pixel_api": true, "fb_send_organic": false, "fb_send_googleads": true, "market_is_active": true, "pixel_is_active": 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
1Request Body
Section titled “Request Body ” Media type application/json
object
decryption_key
Must not be greater than 128 characters.
string
Example
b fb_app_id
Must not be greater than 128 characters.
string
Example
n fb_meta_pixel_id
Must not be greater than 128 characters.
string
Example
g fb_access_token
Must not be greater than 255 characters.
string
Example
z fb_pixel_access_token
Must not be greater than 255 characters.
string
Example
m fbc_api_enabled
boolean
Example
false fbc_api_events
Array<string>
fbc_api_events_mapping
Must have at least 2 items. Must not have more than 2 items.
Array<Array<string>>
fb_marketing_events_mapping
Must have at least 2 items. Must not have more than 2 items.
Array<object>
object
affise_event
string
Example
architecto adapty_subs_event
string
Example
architecto apphud_subs_event
string
Example
architecto revenuecat_subs_event
string
Example
architecto paddle_subs_event
string
Example
architecto facebook_marketing_event
string
Example
fb_mobile_activate_app fb_pixel_events_mapping
Must have at least 2 items. Must not have more than 2 items.
Array<object>
object
affise_event
string
Example
architecto adapty_subs_event
string
Example
architecto apphud_subs_event
string
Example
architecto revenuecat_subs_event
string
Example
architecto paddle_subs_event
string
Example
architecto facebook_pixel_event
string
Example
Contact fbc_api_value
Must not be greater than 128 characters.
string
Example
i fbc_api_send_organic
boolean
Example
false use_pixel_api
boolean
Example
true fb_send_organic
boolean
Example
false fb_send_googleads
boolean
Example
true market_is_active
boolean
Example
true pixel_is_active
boolean
Example
trueResponses
Section titled “ Responses ” Media type application/json
object
message
string
Example
{ "message": "Facebook attribution data successfully updated"}