View as Markdown

SDK reference · Python SDK

prov.mandate.grants.remove_trusted_agent

prov.mandate.grants.remove_trusted_agent in Python SDK. Take an agent off the company's list (an admin key).

Signature

prov.mandate.grants.remove_trusted_agent(trusted_agent_id: str) -> Any

Parameters

trusted_agent_idstrRequired

Request fields

idstringpathRequired
The trusted agent's ID (tra_).

Returns

Any The trusted agent is removed.

HTTP operation

DELETE /v1/mandate/trusted_agents/{id}: Remove a trusted outside agent

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/trusted_agents/tra_01M7Z8C2D4F6H8J0K2M4N6P8Q0`, {
  method: "DELETE",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.