API Endpoint for editing (#8)