broad-island-80682
03/13/2023, 6:33 PM{'error': 'No validation method found for definition FB_CUSTOM_AUDIENCE'}.
I modeled my JSON payload after what the API is returning for a similar destination created through the UI. Not sure what this “validation method” the error is referring to is. I searched through the codebase on github and didn’t find anything promsing.
import requests
FACEBOOK_TOKEN = '*****************'
def create_destination(name, custom_audience_id):
dest = {'config': {'audienceId': str(custom_audience_id),
'accessToken': FACEBOOK_TOKEN,
'maxUserCount': '100',
'userSchema': ['EMAIL'],
'isHashRequired': False,
'isRaw': False,
'disableFormat': False,
'skipVerify': False,
'type': 'NA',
'subType': 'NA'},
'name': name,
'type': 'FB_CUSTOM_AUDIENCE',
'enabled': True,
}
headers = {'Authorization': 'Bearer *******************'}
url = 'https://api.rudderstack.com/v2/destinations'
resp = requests.post(url, json=dest, headers=headers)
return resp
Has anyone run into this before?limited-morning-82054
03/14/2023, 4:11 AMgentle-church-13189
03/14/2023, 7:42 AMbroad-island-80682
03/14/2023, 4:36 PMbroad-island-80682
03/14/2023, 4:36 PMlimited-morning-82054
03/15/2023, 4:23 AMThese destinations are supported via APIJust to clarify, the list shared here is for the destinations supported by terraform. Via API, we support a larger set of destinations (about two third)
gentle-church-13189
03/15/2023, 4:30 AMbroad-island-80682
03/15/2023, 4:31 PMgentle-church-13189
03/15/2023, 5:48 PM