Differences
This shows you the differences between two versions of the page.
|
|
en:sidebar:remoteapi:apiref:core:search_item [29/11/2013 12:31] 127.0.0.1 external edit |
en:sidebar:remoteapi:apiref:core:search_item [07/04/2014 08:29] |
{{indexmenu_n>11}} | |
====== Search item by ID ====== | |
| |
To find an item with certain ID, use the command **core/search_item**: | |
<code javascript> | |
svc=core/search_item¶ms={"id":<long>, | |
"flags":<long>} | |
</code> | |
| |
:!: You can find an example of this request in the sample [[../../codesamples/search|]]. | |
| |
===== Parameters ===== | |
^ Name ^ Description ^ | |
| id | item ID | | |
| flags | data flags for the response (the value of this parameter depends on item type; data formats of all item types and their flags are described in the chapter [[../format/format|]])| | |
| |
===== Response ===== | |
<code javascript> | |
{ | |
"item":{ /* found item */ | |
... | |
}, | |
"flags":<unit> /* applied data flags */ | |
} | |
</code> | |
The format of "item" depends on item type. All formats are described in the chapter [[../format/format|]]. | |