SDK reference · Python SDK
prov.mandate.runs.get
prov.mandate.runs.get in Python SDK. The run page: the team, the guard and escalations and delegation_proposals, newest first, each with approval_context (how the person decided; None while pending).
Signature
prov.mandate.runs.get(run_id: str) -> AnyParameters
run_idstrRequired
Request fields
idstringpathRequired- The run's ID.
Returns
Any The run.
HTTP operation
GET /v1/mandate/runs/{id}: Get a run
Errors
Example
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/runs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({ "name": "Restock printer paper" }),
})).json();
const runId = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/runs/${runId}`, {
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/mandate/runs", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"name": "Restock printer paper"
}).json()
run_id = step1["id"]
data = httpx.get(f"{api}/v1/mandate/runs/{run_id}", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()