Skip to main content
PATCH
/
v1
/
criteria-library
/
{criterionId}
@nova-sdk/api
import { Nova } from "@nova-sdk/api";

const nova = new Nova({
  apiKey: "sk_test_...",
  tenantId: "acme-corp",
});

const updated = await nova.criteriaLibrary.update({
  criterionId: "lib_abc123",
  body: { importance: "NICE_TO_HAVE" },
});
{
  "criterion": {
    "id": "<string>",
    "text": "<string>",
    "importance": "MUST_HAVE",
    "category": "<string>",
    "createdAt": "2023-11-07T05:31:56Z"
  }
}
Use this endpoint to update a saved library criterion. Provide one or more fields.

Authorizations

Authorization
string
header
required

Use Authorization: Bearer sk_test_* or Authorization: Bearer sk_live_*.

Headers

X-Tenant-Id
string
required

Your customer identifier. Tenants are auto-provisioned on first request.

Path Parameters

criterionId
string
required

Criterion ID.

Body

application/json
text
string
required
Minimum string length: 1
importance
enum<string>
Available options:
MUST_HAVE,
PREFERRED,
NICE_TO_HAVE
category
string | null

Response

Updated

criterion
object
required