SDK reference · Python SDK

prov.mandate.grants.set_holder_binding

prov.mandate.grants.set_holder_binding in Python SDK. required (grants to your own agent carry holder_key) or not_required (an outside agent may get a bearer hand-off).

Signature

prov.mandate.grants.set_holder_binding(agent_id: str, holder_binding: str) -> Any

Parameters

agent_idstrRequired
holder_bindingstrRequired

Request fields

agent_idstringpathRequired
The agent, yours or registered in another account.
holder_bindingenumRequired
The setting. One of required, not_required.

Returns

Any The setting.

HTTP operation

PUT /v1/mandate/holder_bindings/{agent_id}: Set an agent's holder binding

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/holder_bindings/agt_01M7Z71YM4GVGFZ5D6PQQE0VZN`, {
  method: "PUT",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({ "holder_binding": "required" }),
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.