Edit and PUT to API
Proper creation and editing