My Oracle Support Banner

PBCS: How to use Python code to Call Business Rule Via Rest Api ? (Doc ID 2406098.1)

Last updated on JUNE 06, 2018

Applies to:

Oracle Planning and Budgeting Cloud Service - Version 15.07.46 and later
Information in this document applies to any platform.
The failing Python code for Business Rule Rest API

import requests
from requests.auth import HTTPBasicAuth
import urllib
import json

bodyDict["jobType"] = "Rules"
bodyDict["jobName"] = "Clear GL Data"
body = urllib.parse.urlencode(bodyDict)
body = json.dumps(body)

headers = {'Content-Type':'application/json'}

r1 = requests.get('',auth=HTTPBasicAuth('epm_default_cloud_admin','*****'),headers = headers)

r2 ='',auth=HTTPBasicAuth('epm_default_cloud_admin','*****'),headers = headers,data = body)


On : PBCS Rest API,  

Call business rule via rest api return 500 internal server error when used with python code

Schedule to run batch of business rules using bat file , Implementation using python to call business rules via rest api, however, it returns 500 internal server error.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.