Create application facebook partner
POST
/api/v2/client/partners/facebook
const url = 'https://app.affisemmp.com/api/v2/client/partners/facebook';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"application_id":16,"partner_id":16,"fb_account_id":"137449171671936806","fb_pixel_access_token":"z"}'};
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/partners/facebook \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "application_id": 16, "partner_id": 16, "fb_account_id": "137449171671936806", "fb_pixel_access_token": "z" }'Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
application_id
required
The id of an existing record in the applications table.
integer
Example
16 partner_id
required
The id of an existing record in the partners table.
integer
Example
16 fb_account_id
required
Must be between 15 and 20 digits.
string
Example
137449171671936806 fb_pixel_access_token
Must not be greater than 255 characters.
string
Example
zResponses
Section titled “ Responses ” Media type application/json
object
data
object
id
integer
application_id
integer
partner_id
integer
partner_name
string
fb_account_id
string
fb_pixel_access_token
string
message
string
Example
{ "data": { "id": 46, "application_id": 374, "partner_id": 207, "partner_name": "Henri Mitchell", "fb_account_id": null, "fb_pixel_access_token": null }, "message": "Partner`s facebook settings successfully created."}