check_unique
The check_unique function is used to check the uniqueness of an item.
svc=core/check_unique¶ms={"type":"<text>",
"value":"<text>"}
Parameters
Name | Description |
---|---|
type | Item type (user, avl_resource). |
value | Item name. |
Returned result
If the item is unique, the returned result is:
{"result":0}
If the item exists, the returned result is:
{"result":1}
Possible error codes:
Code | Description |
---|---|
1003 | Locker error or the limit on the number of API requests according to a certain rule exceeded. |
4 | Wrong input parameters. |