updated response codes, changed the update from POST to PUT