set level api