code: def set_attribute(self, id, value, version=1):
          
          attributes = self._get_attributes(cache=True)
          formatted_id = '{0}'.format(id)
          attributes['attributes_values'][formatted_id] = value
          response = self.requester.patch(
              '/{endpoint}/custom-attributes-values/{id}',
              endpoint=self.endpoint, id=self.id,
              payload={
                  'attributes_values': attributes['attributes_values'],
                  'version': version
              }
          )
          cache_key = self.requester.get_full_url(
              '/{endpoint}/custom-attributes-values/{id}',
              endpoint=self.endpoint, id=self.id
          )
          self.requester.cache.put(cache_key, response)
          return response.json()
docs: Set attribute to a specific value
  
          :param id: id of the attribute
          :param value: value of the attribute
          :param version: version of the attribute (default = 1)