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) -> AnyParameters
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();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.put(f"{api}/v1/attest/settings/capture_retention", headers={"Authorization": "Bearer prv_test_capture_C4pT9vQ2bW7mK3sYd8cFjLh6gAe1nR5x"}, json={
"days": 14
}).json()