Advanced queries.
post
/custom-actions/queries/<resourceName>
Request
Query Parameters
-
useSavedQueryAsSubQuery: boolean
Indicates whether to use a saved query as a subquery. Accepts true or false. This parameter will not work if the saved query contains an ORDER BY clause.
Header Parameters
-
Prefer Transient Header: string
A header parameter that allows you to execute queries. Set the request header "Prefer" to "transient" to explicitly declare that the query should be executed.
Supported Media Types
- application/vnd.oracle.resource+json;type=query-def
Root Schema : schema
Type:
Show Source
object
-
copiedFrom: string
GID of a previously created saved query.The requirements are that the saved query exists, is associated with the resource data and contains a SQL syntax query string. The SELECT statement in the saved query must only select the primary key columns for the corresponding resource.
-
parameterValues: object
parameterValues
A property map where the key is the position or name of the bind parameter.
-
q(required):
q
Nested Schema : parameterValues
Type:
object
A property map where the key is the position or name of the bind parameter.
Show Source
-
parameterKey: string
The key of the bind parameter (positional or named parameter).
-
parameterValue: string
The value of the bind parameter.
Nested Schema : q
Type:
Show Source
object
-
q: string
Filter (a 'where'clause) to restrict the items returned in the collection. By default, no filtering is applied.
Response
Supported Media Types
- application/json
200 Response
Default response.
Root Schema : advancedQueryResponse
Type:
Show Source
object
-
items: array
items
List of objects which match the advanced query.