View as Markdown

SDK reference · Node SDK

prov.mandate.grants.removeTrustedAgent

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

Signature

prov.mandate.grants.removeTrustedAgent(trustedAgentId: string): Promise<{ id: string; object: "trusted_agent"; deleted: true }>

Parameters

trustedAgentIdstringRequired

Request fields

idstringpathRequired
The trusted agent's ID (tra_).

Returns

Promise<{ id: string; object: "trusted_agent"; deleted: true }> 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.