Basic edit API endpoint