Python
import requests url = "https://{FUSION HOST}/api/experience-manager/rules/versions" headers = {"Authorization": "Basic <encoded-value>"} response = requests.get(url, headers=headers) print(response.text)
[ { "type": "<string>", "version": 123 } ]
Retrieves a list of rules along with their available versions in the Experience Manager.
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
Successfully retrieved the list of rules with versions.
The type of object being represented (e.g., rule, query rewrite).
The version number associated with this object type.
Was this page helpful?