edit API for cgClass Ajax beta