I want to set a diffrent theme as active theme using Japer REST v2 api.
I'm able to get my theme/resource using this endpoint
What I want is to change active default theme to my theme.
You utilizing Community Edition or Pro as the rest request stucture changes.
So the manual gives example, but is focused on Jasper Pro and assuming you have already created an org called "Audit"
The example is
Payload will have content type : application/json
With json payload being :
But i'll look into and test out how to do this in CE. As "organizations" do not work the same in CE.
Ok here we go.
The REST api call mentioned in documentation is for pro only.
So this could be a work around.
Do a GET request with jasper url and add flow.html?_flowId=searchFlow to the url.
Then in the Body you receive back, you need to look for __jrsConfigs__.flowExecutionKey = YOU_NEEd_THIS_VALUE; in the body.
- Note the value flowExecution key will change from time to time, depending on how long the time lapse it between requests, change in users etc.
Next you need to do a POST request.
Here is example of POST message :
X-REMOTE-DOMAIN : 1
Content-Type : application/x-www-form-urlencoded
I tested the above REST call multiple time, I just updated the folderUri and the execution Key from time to time. All worked and I received a 200 response.
Side note for manual testing, another way to get hold of the execution key is via the developer console.
After signing into Jasper.
Use Console tab and run:
this should return the code for you.