def METHOD_NAME(doctype, role, permlevel, ptype, value=None):
	"""Update role permission params
	Args:
	        doctype (str): Name of the DocType to update params for
	        role (str): Role to be updated for, eg "Website Manager".
	        permlevel (int): perm level the provided rule applies to
	        ptype (str): permission type, example "read", "delete", etc.
	        value (None, optional): value for ptype, None indicates False
	Returns:
	        str: Refresh flag is permission is updated successfully
	"""
	def clear_cache():
		frappe.clear_cache(doctype=doctype)
	frappe.only_for("System Manager")
	out = update_permission_property(doctype, role, permlevel, ptype, value)
	frappe.db.after_commit.add(clear_cache)
	return "refresh" if out else None