====/api/asset/search====
===Usage===
This function is used to search for an asset based on a query string.
This is part of the [[ardisdk:rest_language_agnostic_api|core API]].
This search follows the same rules as searching in the ARDI web interface, meaning that the system will explore all asset properties - including part numbers, ERNs, names, descriptions etc. - when searching.
If using the API to create a bridge between ARDI and another 3rd party system, we suggest creating a property in ARDI to store the 3rd party systems unique ID for the asset. This allows extremely precise lookups in the future.
===Details==
^Detail^Value^
|Group|Asset|
|From Server Version|0.9.0|
|Permission|[[permission_guest|Guest]]|
|Methods|GET or POST|
==Parameters==
^Parameter^Notes^Meaning^
|**q**|String [Required]|The query string to search for|
|**format**|String (xml)|Either 'xml' or 'json'|
===Examples===
==Call==
http://ardiserver.com/s/sitename/api/asset/search?q=AN62993
==Success (XML)==
==Success (JSON - 2026+)==
[
{
"id": 18,
"name": "Bridle",
"ern": "",
"fullname": "Bridle",
"properties": []
},
{
"id": 46,
"name": "Bridle #1",
"ern": "BRI01",
"fullname": "BRI01 - Optrix Metal Painting Line / Paint Line / Steering / Bridle #1",
"properties": []
},
{
"id": 19,
"name": "Bridle Roller",
"ern": "",
"fullname": "Bridle Roller",
"properties": []
}
]
See the [[old search JSON format]] for pre-2026 servers.