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

NameDescription

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:

CodeDescription

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.

Your message was sent. Thank you!

Report a mistake

An error occurred while submitting the form

Download PDF file
Download Word document

See also