Skip to content

Update application facebook settings

POST
/api/v2/client/applications/{application_id}/fb-settings
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 }'
application_id
required
integer

The ID of the application.

Example
1
Media type application/json
object
decryption_key

Must not be greater than 128 characters.

string
nullable
Example
b
fb_app_id

Must not be greater than 128 characters.

string
nullable
Example
n
fb_meta_pixel_id

Must not be greater than 128 characters.

string
nullable
Example
g
fb_access_token

Must not be greater than 255 characters.

string
nullable
Example
z
fb_pixel_access_token

Must not be greater than 255 characters.

string
nullable
Example
m
fbc_api_enabled
boolean
nullable
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
nullable
Example
architecto
adapty_subs_event
string
nullable
Example
architecto
apphud_subs_event
string
nullable
Example
architecto
revenuecat_subs_event
string
nullable
Example
architecto
paddle_subs_event
string
nullable
Example
architecto
facebook_marketing_event
string
Allowed values: MOBILE_APP_INSTALL StartTrial SubmitApplication Subscribe FindLocation Schedule Contact CustomizeProduct Donate AdClick AdImpression fb_mobile_achievement_unlocked fb_mobile_activate_app fb_mobile_add_payment_info fb_mobile_add_to_cart fb_mobile_add_to_wishlist fb_mobile_complete_registration fb_mobile_content_view fb_mobile_initiated_checkout fb_mobile_level_achieved fb_mobile_purchase fb_mobile_rate fb_mobile_search fb_mobile_spent_credits fb_mobile_tutorial_completion
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
nullable
Example
architecto
adapty_subs_event
string
nullable
Example
architecto
apphud_subs_event
string
nullable
Example
architecto
revenuecat_subs_event
string
nullable
Example
architecto
paddle_subs_event
string
nullable
Example
architecto
facebook_pixel_event
string
Allowed values: mobile_app_install AddPaymentInfo AddToCart AddToWishlist CompleteRegistration Contact CustomizeProduct Donate FindLocation InitiateCheckout Lead Purchase Schedule Search StartTrial SubmitApplication Subscribe ViewContent
Example
Contact
fbc_api_value

Must not be greater than 128 characters.

string
nullable
Example
i
fbc_api_send_organic
boolean
nullable
Example
false
use_pixel_api
boolean
nullable
Example
true
fb_send_organic
boolean
nullable
Example
false
fb_send_googleads
boolean
nullable
Example
true
market_is_active
boolean
Example
true
pixel_is_active
boolean
Example
true
Media type application/json
object
message
string
Example
{
"message": "Facebook attribution data successfully updated"
}