SCHEMA-169. API changes.

Signed-off-by: Lee Sheng <lsheng@wibidata.com>