SDK reference · Node SDK

prov.attest.cases.assign

prov.attest.cases.assign in Node SDK. Assign the case (self-assign in v1).

Signature

prov.attest.cases.assign(claimId: string, assigneeAccountId: string): Promise<CaseSummary>

Parameters

claimIdstringRequired
assigneeAccountIdstringRequired

Request fields

Idempotency-Keystringheader
Retry a create safely: the same key + request returns the stored response (24 h, per caller).
claim_idstringpathRequired
The claim, or case in another vertical, the asset belongs to.
assignee_account_idstringRequired
Who the case is assigned to.

Returns

Promise<CaseSummary> The updated case.

HTTP operation

POST /v1/attest/cases/{claim_id}/assign: Assign a case

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/attest/cases/CLM-SANDBOX-CLEAN/assign`, {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({ "assignee_account_id": "acct_000000000000000000000000000000c0" }),
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.