Not getting Task Id while running API call(Export Action)
Hi all,
I am using python for integration. After authentication part, I got Export Id through API call.
Now using that Export Id for getting Task Id with API Post Method :
headers = {'Authorization': 'AnaplanAuthToken %s' % token, 'Content-Type': 'application/json'}
data = json.dumps({'localName': "en_US"})
response = requests.post(
"https://api.anaplan.com/2/0" + "/workspaces/" + wsId + "/models/" + modelId + "/exports/" + exportId + "/tasks/",
headers=headers,
data=data
But I am getting Status Message: Bad Request, Status code: 400
What should I do ? Is there any problem with URL or something ?
What could be the reason for that ?
0
Best Answer
-
Hi @pankajnegi1920,
I am just guessing, but maybe it's typo: you have "localName" instead of "localeName".
Also, I am developing Anaplan Python library, feel free to look into the code or install/play with it: https://github.com/DLZaan/apapi
0