REST API - executeComplexQuery

The table summarizes the REST API - executeComplexQuery.

Request

Format
POST <baseurl>/resourcequery/<modelversion>
Path parameters modelversion: Used to restrict the organization model entities (organization units, positions, groups, etc.) that are considered in the evaluation of the query. Can be obtained from listOrgModelVersions.
Query parameters singleresult=false (optional, default=false): Pass "true" to get one resource, chosen at random from the query result.
Body query (required): Must conform to Resource Query Language (RQL) syntax rules. See Appendix D - Resource Query Language of the TIBCO Business Studio BPM Implementation guide.

Response

JSON Returns a JSON representation of the content of the executeQueryResponse element.
XML Returns the content of the executeQueryResponse element (from the ResourceQueryService schema).

Example

Request
POST <baseurl>/resourcequery/-1
Request body
position(name="Tester")
Response
 {
       "resource":
       {
           "@guid": "tibco-admin",
           "@name": "tibco-admin",
           "@push-enabled": "false"
       }
    }