How to Run Integration Job using API Rest with a Python Script
Summary:
Hi,
I want to run an integration job using Oracle REST API using Python. I've tried the followind parameters but I get an 400 Error Code:
I want to Run the Job named DATALOAD_COMPTA_AMAP
END_POINT: https://${myInstance}-epm.em2.oraclecloud.com/HyperionPlanning/rest/v3/applications/${MyApp}/jobs
payload = { "jobType":"INTEGRATION",
"jobName":jobName,
"periodName":"{Mar-20}",
"importMode":"Replace",
"exportMode":"Merge",
"sourceFilters":{
"Integration":"AMAP"
}
}
response = requests.post(SERVICE_ENDPOINT,auth=HTTPBasicAuth(uname,password), headers = headers, json=payload)
I finally GET the following JSON Response:
Response [400]
I don't see where is the problem. Cloud you help me ?
Content (required):
Version (include the version you are using, if applicable):