View as Markdown

SDK reference · Node SDK

prov.account.setCaptureRetention

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

Signature

prov.account.setCaptureRetention(params: { days: number }): Promise<CaptureRetention>

Parameters

params{ days: number }Required

Request fields

daysintegerRequired
Days to keep each image.

Returns

Promise<CaptureRetention> 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.