# Class: RegisterQueryRequest

## tibco.objectapi.service.request.RegisterQueryRequest

#### new RegisterQueryRequest(query, tag)

Object RegisterQueryRequest Usage: `RestApiService.getAuditService().registerQuery(request, callback);`

##### Parameters:

Name | Type | Description
--- | --- | ---
`query` | tibco.objectapi.ec.base.Query | The query to register.
`tag` | string | Tag of the query to be registered. Must be unique among registered queries on the system.

Since:
  - 4.0.0

### Members

#### correlate :string

Query parameter: 'correlate' (optional) Whether the response should be correlated.

##### Type:

- string

Since:
  - 4.0.0
Default Value:
  - = ""

#### requireAllAttributes :string

Query parameter: 'requireallattributes' (optional) Whether or not all attributes should be included in the response.

##### Type:

- string

Since:
  - 4.0.0
Default Value:
  - = ""

#### requiredAttributes :Array.<string>

Query parameter: 'requiredattribute' (Java type: List) List of attributes required.

##### Type:

- Array.<string>

Since:
  - 4.0.0

#### sortOrder :string

Query parameter: 'sortorder' (optional) Attribute or attributes on which the results should be sorted, and in what direction the sort should run (ASCENDING or DESCENDING).

##### Type:

- string

Since:
  - 4.0.0

#### target :string

Query parameter: 'target' (optional) Target of the query. For a list of the valid targets, including information about which Event Collector database tables each target value queries, see Using Attributes in Query Filters.

##### Type:

- string

Since:
  - 4.0.0