add methods in api
Add check when add constraint with position not exists