Search requests

Send a request search query (in HRQL format) and return the request search results

Body required
application/json

The request search query

query
string | null

The HRQL query to use for the search, represents the way to filter requests. Filters nothing if not specified

fields
array of string | null

The fields to be returned by the search. If this parameter is not specified, everything is returned by default. If this parameter is equal to an empty array, only the _id field is returned

sortedBy
array of objects | null (SortElement)

The way to sort the search results

pageIndex
integer | null

The index of the page to retrieve

pageSize
integer | null

The maximum number of items to retrieve for one page

withCount
boolean | null

Whether to return the total count of requests matching the HRQL query

scope
string | null

The scope of the search. manage only searches among requests that the currently logged in user has the rights to manage. search searches among all visible requests to the logged in user. self searches among requests that the currently logged in user or its team has issued

Enum manage search self
Responses
  • 200 The request search results
    results
    array of objects (models.search.request.RequestSearchResult) required

    The list of requests matching the HRQL query

    pageIndex
    integer required

    The index of the results page

    pageSize
    integer required

    The maximum number of items on this page

    hasMore
    boolean required

    Indicates whether the response represents the last page of results (if set to false) or not (if set to true)

    count
    integer

    The total count of requests matching the HRQL query

  • 400 Invalid request
  • 401 Unauthorized request
  • 403 Forbidden action
  • 500 Internal server error