@exc.on_http_error(exc.GitlabSetError)<EOL><INDENT>def set(self, name, value, feature_group=None, user=None, **kwargs):<DEDENT>
path = '<STR_LIT>' % (self.path, name.replace('<STR_LIT:/>', '<STR_LIT>'))<EOL>data = {'<STR_LIT:value>': value, '<STR_LIT>': feature_group, '<STR_LIT:user>': user}<EOL>server_data = self.gitlab.http_post(path, post_data=data, **kwargs)<EOL>return self._obj_cls(self, server_data)<EOL>
Create or update the object.

        Args:
            name (str): The value to set for the object
            value (bool/int): The value to set for the object
            feature_group (str): A feature group name
            user (str): A GitLab username
            **kwargs: Extra options to send to the server (e.g. sudo)

        Raises:
            GitlabAuthenticationError: If authentication is not correct
            GitlabSetError: If an error occured

        Returns:
            obj: The created/updated attribute