@cli.register_custom_action(('<STR_LIT>', '<STR_LIT>'),<EOL>tuple(), ('<STR_LIT>', ))<EOL><INDENT>@exc.on_http_error(exc.GitlabUpdateError)<EOL>def approve(self, access_level=gitlab.DEVELOPER_ACCESS, **kwargs):<DEDENT>
path = '<STR_LIT>' % (self.manager.path, self.id)<EOL>data = {'<STR_LIT>': access_level}<EOL>server_data = self.manager.gitlab.http_put(path, post_data=data,<EOL>**kwargs)<EOL>self._update_attrs(server_data)<EOL>
Approve an access request.

        Args:
            access_level (int): The access level for the user
            **kwargs: Extra options to send to the server (e.g. sudo)

        Raises:
            GitlabAuthenticationError: If authentication is not correct
            GitlabUpdateError: If the server fails to perform the request