def update_person(self, person):
self._validate_regid(person.person_id)<EOL>self._validate_subscriber_id(person.surrogate_id)<EOL>for attr in MANAGED_ATTRIBUTES:<EOL><INDENT>person.attributes.pop(attr, None)<EOL><DEDENT>url = "<STR_LIT>".format(person.person_id)<EOL>response = NWS_DAO().putURL(<EOL>url, self._write_headers(), self._json_body(person.json_data()))<EOL>if response.status != <NUM_LIT>:<EOL><INDENT>raise DataFailureException(url, response.status, response.data)<EOL><DEDENT>return response.status<EOL>
Update an existing person
:param person: is the updated person that the client wants to update