SDK reference · Python SDK

prov.trace.disclosure.revoke

prov.trace.disclosure.revoke in Python SDK.

Signature

prov.trace.disclosure.revoke(request_id: str) -> Any

Parameters

request_idstrRequired

Request fields

Idempotency-Keystringheader
Retry a create safely: the same key + request returns the stored response (24 h, per caller).
idstringpathRequired
The object's ID.

Returns

Any The request, now revoked.

HTTP operation

POST /v1/trace/disclosure_requests/{id}/revoke: Revoke a disclosure grant

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/trace/disclosure_requests/dsr_01M5Q2KD3N7V4Y9W1XQ2B8R6TS/revoke`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.