def flag(self, payload):
url = "<STR_LIT>".format(url_base=self.hs.url_base,<EOL>pid=self.pid)<EOL>r = self.hs._request('<STR_LIT:POST>', url, None, payload)<EOL>return r<EOL>
Set a single flag on a resource.

        :param payload:
            t: can be one of make_public, make_private, make_shareable,
            make_not_shareable, make_discoverable, make_not_discoverable
        :return:
            empty but with 202 status_code