Assets Query API
Resource URL
GET /seiapi/v3/query/Assets?filters=${filterOptions}&q={queryOtions}&sort=${sortOptions}&limit=${limit}
Query Parameters
Query Parameters
The ServiceMobility Query APIs are designed for querying the system data, and therefore may potentially return a large number of results.
As a result, the APIs all support a common set of parameters which can be used to:
- Filter the results on the basis of their field values;
- Limit the fields returned for each object, to ensure only the fields of interest are returned;
- Limit the total number of results returned by the query and/or skip a defined number of results; and
- Define the sort order that should be used for the results.
Parameter | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
filters | The Not all fields of an object support filtering via the Filters expression consists of one or more comparison operations, which are joined by logical operators - Logical AND (; or and) and Logical OR (, or or). Each comparison operation consists of three parts: A selector, a comparison-op, and one or more arguments.
Example: The
This will return all objects where the Supported operators are shown below in a table.
| ||||||||||||||||||||||||
q | The Not all fields of an object support filtering via the The q=<search term>::in:field-1,field-2 The The | ||||||||||||||||||||||||
fields | The The fields=field-1,field-2
| ||||||||||||||||||||||||
limit | The Often used with the | ||||||||||||||||||||||||
start | The Often used with the | ||||||||||||||||||||||||
sort | The Not all fields of an object support being used as a sorting key via the The sort=[-]field-1,[-]field-2
|
In the fields listed below, defining the fields supported by the filters
, q
and fields
parameters, two formats are potentially listed:
field-1
- Represents a supported "top-level" field of the object (with name "field-1") relevant to this Query API; andfield-1/subfield-1
- Represents a supported "second-level" field of the object, where the "top-level" field (with name "field-1") has a value that is an object, and it is then on that sub-object that the parameter action is to be applied, to the field (with name "subfield-1") within the sub-object.
Filter
The ${filterOptions}
parameter supports the following Asset Object fields:
AccountNum
AssetNum
AssetSubType
Description
InServiceDate
IsComponent
LastServiceDate
LocationNum
Mfg
Model
ModifiedUTC
ParentAssetNum
ProdNum
SerialNum
Status
Type
WorkCenter
Q
The ${queryOptions}
parameter supports the following Asset Object fields:
AccountNum
AssetNum
AssetSubType
Description
InServiceDate
IsComponent
LastServiceDate
LocationNum
Mfg
Model
ModifiedUTC
ParentAssetNum
ProdNum
SerialNum
Status
Type
WorkCenter
Sort
The ${sortOptions}
parameter supports the following Asset Object fields:
AccountNum
AssetNum
AssetSubType
Description
InServiceDate
IsComponent
LastServiceDate
LocationNum
Mfg
Model
ModifiedUTC
ParentAssetNum
ProdNum
SerialNum
Status
Type
WorkCenter
HTTP Headers
This API uses the default ServiceMobility HTTP Headers.
HTTP Headers
This API uses the default ServiceMobility HTTP Headers.
HTTP Response Body
The response body contains a collection of Asset Objects that match the query parameters.
{ "TotalRecords" : 0, "Items" : [ { // object definition } ] }