SDK reference · Python SDK
prov.mandate.grants.limit_versions
prov.mandate.grants.limit_versions in Python SDK. Slice 11: the mandate limits' versions, newest first (a sandbox draft group's drafts with draft_group).
Signature
prov.mandate.grants.limit_versions(draft_group: Optional[str] = …, limit: Optional[int] = …, cursor: Optional[str] = …) -> AnyParameters
draft_groupOptional[str]limitOptional[int]cursorOptional[str]
Request fields
draft_groupstringquery- Sandbox. Also list the drafts waiting in this draft group (a rules embed session minted with
rules.draft_group, the live demo's per-visitor drafts). Without it, the groups' unpublished drafts are left out. 1 to 64 characters.
Returns
Any The versions, newest first.
HTTP operation
GET /v1/mandate/settings/limits/versions: List the mandate limits' versions
Errors
Example
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/settings/limits/versions`, {
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/mandate/settings/limits/versions", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()