Use of Space description via REST API and Business Central
Issue
- According to the Interacting with Red Hat Process Automation Manager using KIE APIs - 7.2. Supported Knowledge Store REST API endpoints we can see the operations with the spaces.
-
The request "Creates a space in Business Central" of type "POST /spaces" indicates that the following fields are required:
name,description,owneranddefaultGroupId.Example request body (JSON) { "name": "NewSpace", "description": "My new space.", "owner": "admin", "defaultGroupId": "com.newspace" } -
When Space is created using REST API where
descriptionis defined, the GET operation returnsnullinstead of thedescriptionvalue. For instance, the result of the following GET operation:curl -X POST -v -u "rhpamAdmin:rhpamAdmin123!" -H "Accept:application/json" -H "Content-Type:application/json" http://localhost:8080/business-central/rest/spaces -d '{"name":"testSpace","description":"Test space 3","owner":"testOwner","defaultGroupId":"com.testSpace"}'will be something like:
{"jobId":"1581516723236-2","status":"APPROVED","spaceName":"testSpace","owner":"testOwner","defaultGroupId":"com.testSpace","description":null} -
When creating Space using Business Central, it is not possible to set/view/change Space's description;
Environment
- Red Hat Process Automation Manager (RHPAM) 7
- Red Hat Decision Manager (RHDM) 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.