Added missing require statement, added update action to API