SDK reference · Node SDK
prov.account.setCaptureListLabel
prov.account.setCaptureListLabel in Node SDK. D-119: name the Captures list in the console (up to 24 characters); null puts back "Captures".
Signature
prov.account.setCaptureListLabel(params: { label: string | null }): Promise<CaptureListLabel>Parameters
params{ label: string | null }Required
Request fields
labelstring | nullRequired- The list's label, or null for "Captures".
Returns
Promise<CaptureListLabel> The label.
HTTP operation
PUT /v1/attest/settings/capture_list: Set your Captures list label
Errors
Example
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/attest/settings/capture_list`, {
method: "PUT",
headers: { Authorization: "Bearer prv_test_capture_C4pT9vQ2bW7mK3sYd8cFjLh6gAe1nR5x", "Content-Type": "application/json" },
body: JSON.stringify({ "label": "Claim photos" }),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.put(f"{api}/v1/attest/settings/capture_list", headers={"Authorization": "Bearer prv_test_capture_C4pT9vQ2bW7mK3sYd8cFjLh6gAe1nR5x"}, json={
"label": "Claim photos"
}).json()