code: def put(self, data, request, id):
          
          if not id:
              # can't update the whole container
              raise errors.MethodNotAllowed()
          userdata = self._dict_to_model(data)
          userdata.pk = id
          try:
              userdata.save(force_update=True)
          except DatabaseError:
              # can't udpate non-existing user
              raise errors.NotFound()
docs: Update a single user.