added a new api for updating the channeid and userid