You have not given much to go on, so the assumption is you are trying to the PBCS REST API with a groovy script.
Once again I am assuming you are using the common helper functions for Groovy? - Common Helper Functions for Groovy
Can you show your script?
I am using executejob() api from common helper function.
Below is the exact line where it is failing.
response = executeRequest(url, "POST", payload.toString(), "application/json")
Are you sure your script is valid as I know the helper file is not the best
I copied the following methods from the groovy helper file
I included the imports and variable definitions and then run the following successfully.
executeJob("CUBE_REFRESH", "cubeRefresh", null);
sorry for late response. was busy with project activities.
My only doubt is whether job cuberefresh is system job or one we should create manually.
Will try exact same UPIs from latest helper function url and let you know.
CUBE_REFRESH is a system job, I just used it as an example, if you get that working you can move on to others.
i did not give domain name in url string. giving that solved the issue