check_unique

The check_unique function is used to check the uniqueness of an item.

Copied!
svc=core/check_unique&params={"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:

Copied!
{"result":0}    

If the item exists, the returned result is:

Copied!
{"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.

If you find a mistake in the text, please select it and press Ctrl+Enter.