Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:sidebar:remoteapi:apiref:core:check_unique [10/10/2017 10:22] (current)
stan created
Line 1: Line 1:
 +====== Check item unique ======
 +To check unique of item, use command **core/​check_unique**:​
 +
 +<code javascript>​
 +svc=core/​check_unique&​params={"​type":<​text>,​
 +       "​value":<​text>​}
 +</​code>​
 +
 +===== Params =====
 +^ Name ^ Description ^
 +| type | item type (user, avl_resource) |
 +| value | item name |
 +
 +
 +===== Response =====
 +
 +<​code=javascript>​
 +{"​result":​0} ​    /* if unique ​ */
 +</​code>​
 +
 +<​code=javascript>​
 +{"​result":​1} ​    /* if exist  */
 +</​code>​
  
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2019 Gurtam