def METHOD_NAME(self, plugin_key, raw_license):
    """
    Update license for plugin
    :param plugin_key:
    :param raw_license:
    :return:
    """
    app_headers = {
        "X-Atlassian-Token": "nocheck",
        "Content-Type": "application/vnd.atl.plugins+json",
    }
    url = "/plugins/1.0/{plugin_key}/license".format(plugin_key=plugin_key)
    data = {"rawLicense": raw_license}
    return self.put(url, data=data, headers=app_headers)