complete edit API