View as Markdown

SDK reference · Python SDK

prov.account.set_capture_retention

prov.account.set_capture_retention in Python SDK. Set how long captured images are kept; applies to the images already held too.

Signature

prov.account.set_capture_retention(days: int) -> Any

Parameters

daysintRequired

Request fields

daysintegerRequired
Days to keep each image.

Returns

Any The retention.

HTTP operation

PUT /v1/attest/settings/capture_retention: Set your image retention

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/attest/settings/capture_retention`, {
  method: "PUT",
  headers: { Authorization: "Bearer prv_test_capture_C4pT9vQ2bW7mK3sYd8cFjLh6gAe1nR5x", "Content-Type": "application/json" },
  body: JSON.stringify({ "days": 14 }),
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.