Use of Space description via REST API and Business Central

Solution Unverified - Updated -

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, owner and defaultGroupId.

    Example request body (JSON)
    {
        "name": "NewSpace",
        "description": "My new space.",
        "owner": "admin",
        "defaultGroupId": "com.newspace"
    }
    
  • When Space is created using REST API where description is defined, the GET operation returns null instead of the description value. 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content