code: def update(self, claim, ttl=None, grace=None):
          
          body = {}
          if ttl is not None:
              body["ttl"] = ttl
          if grace is not None:
              body["grace"] = grace
          if not body:
              raise exc.MissingClaimParameters("You must supply a value for "
                      "'ttl' or 'grace' when calling 'update()'")
          uri = "/%s/%s" % (self.uri_base, utils.get_id(claim))
          resp, resp_body = self.api.method_patch(uri, body=body)
docs: Updates the specified claim with either a new TTL or grace period, or
          both.