Update application facebook partner
PUT
/api/v2/client/partners/facebook/{facebookPartner_id}
const url = 'https://app.affisemmp.com/api/v2/client/partners/facebook/16';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"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 PUT \ --url https://app.affisemmp.com/api/v2/client/partners/facebook/16 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "partner_id": 16, "fb_account_id": "137449171671936806", "fb_pixel_access_token": "z" }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” facebookPartner_id
required
integer
The ID of the facebookPartner.
Example
16Request Body required
Section titled “Request Body required ” Media type application/json
object
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
message
string
Example
{ "message": "Partner`s facebook settings successfully updated."}