Resource URL
GET /seiapi/v3/query/Assets?filter=${filterOptions}&q=${queryOptions}&sort=${sortOptions}&limit=${limit}&customerid=xxxx&customercode=xxxx
Query Parameters
Parameter | Description | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
filters | Filter expression consists of multiple comparison operations related to each other by logical operators - Logical AND (; or and) and Logical OR (, or or). Each comparison operation has three parts: selector = Identified the field name of the object to filter against comparison-op = Currently supported comparison operators are listed in "Operators" table below arguments = Identifies the value(s) to be matched against the field. Multiple values are represented in parenthesis separated by comma The Example: filter=WorkCenter==EastCoast This will return all objects where the Supported operators are shown below in a table.
| ||||||||||||||||||||||
limit | Identifies the maximum number of objects to be returned. | ||||||||||||||||||||||
q | The q=<search term>::in:field-1,field-2 The The query parameter currently supports one search term, although it can be combined with the | ||||||||||||||||||||||
sort | Identifies the field name that should be used for sorting. The sort syntax is: sort=[-]field-1,[-]field-2
| ||||||||||||||||||||||
start | Identifies the number of objects to be skipped. This is used for pagination and allows skipping previously returned objects. |
Filter
The ${filterOptions}
parameter supports the following REST Object Definitions Work Order Activity Related Objects 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 REST Object Definitions Work Order Activity Related Objects 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 REST Object Definitions Work Order Activity Related Objects 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 } ] }
HTTP Response
Response Codes
HTTP Code | Description |
---|---|
200 | OK. Request was processed successfully. Even though the request may return a successful code of 200, the body may still contain warning details. |
400 | Syntax error in request. The response body will provide more details on the specific reason. Verify the URI, its parameters, and request body. |
401 | Unauthorized. The credentials are incorrect, please verify and try again. |
404 | Not Found. The URL is incorrect, please verify and try again. |
405 | The specified HTTP method is not supported for this resource. |
409 | Conflict. This error usually occurs when attempting to overwrite an existing object that can not be replaced. |
410 | The specified object does not exists. Please verify the URI. |
500 | An error has occurred within ServiceMobility. Please review the error message details and if necessary, contact customer support. |
Response Body
{ "code": 400, "detail": { "message": "", "params": { "value": "" }, "dataPath": "" } }
Response Object Properties
Property | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
code | integer | The HTTP response code. | ||||||||||||
detail | object | This object provides additional details the system provided while processing the transactions. Usually the details provide additional information on why an error occurred. However, it may also provide warning details even when the requests was successful. For example, the request may have returned a response of 200=OK, but included warnings in the response body of properties that are still being used that are marked for deprecation.
|