SDK reference · Python SDK

prov.approval_contexts.get

prov.approval_contexts.get in Python SDK. One approval context by its id (apc_…).

Signature

prov.approval_contexts.get(context_id: str) -> Any

Parameters

context_idstrRequired

Request fields

idstringpathRequired
The approval context's ID (apc_…), from the approval_context.id of the result that named the decision.

Returns

Any The approval context.

HTTP operation

GET /v1/approval_contexts/{id}: Retrieve an approval context

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/approval_contexts/apc_01JD5HT9QK3M8V2XR7N4B6WZTC`, {
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.