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
claimIdstringRequiredassigneeAccountIdstringRequired
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
- authentication_required
- invalid_json
- parameter_invalid
- parameter_missing
- rate_limit_exceeded
- resource_missing
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();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/attest/cases/CLM-SANDBOX-CLEAN/assign", headers={"Authorization": f"Bearer {os.environ['PROVENANCE_KEY']}"}, json={
"assignee_account_id": "acct_000000000000000000000000000000c0"
}).json()