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) -> Any

Parameters

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();

Was this page helpful? Send us feedback

LLM? Read llms.txt.