Added basic rest api for fields. Need to set/unset by cid instead of index.