@nova-sdk/api
import { Nova } from "@nova-sdk/api";
const nova = new Nova({
apiKey: "sk_test_...",
tenantId: "acme-corp",
});
const current = await nova.jobs.criteria.versions.getCurrent("job_abc123");
const result = await nova.jobs.criteria.set("job_abc123", {
criteria: [
{ text: "5+ years experience in TypeScript", importance: "MUST_HAVE" },
{ text: "Experience with React", importance: "NICE_TO_HAVE" },
],
}, {
expectedCriteriaRevision: current.criteriaRevision,
});curl -X PUT "https://embed.nova.dweet.com/v1/jobs/job_abc123/criteria" \
-H "Authorization: Bearer sk_test_..." \
-H "X-Tenant-Id: acme-corp" \
-H "X-Expected-Criteria-Revision: crit_current_revision" \
-H "Content-Type: application/json" \
-d '{
"criteria": [
{
"text": "5+ years experience in TypeScript",
"importance": "MUST_HAVE"
},
{
"text": "Experience with React",
"importance": "NICE_TO_HAVE"
}
]
}'{
"criteria": [
{
"id": "<string>",
"text": "<string>",
"importance": "MUST_HAVE",
"order": 123,
"createdAt": "2023-11-07T05:31:56Z"
}
]
}{
"type": "<string>",
"code": "UNAUTHORIZED",
"status": 123,
"message": "<string>",
"retryable": true,
"traceId": "<string>",
"details": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"code": "UNAUTHORIZED",
"status": 123,
"message": "<string>",
"retryable": true,
"traceId": "<string>",
"details": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"code": "UNAUTHORIZED",
"status": 123,
"message": "<string>",
"retryable": true,
"traceId": "<string>",
"details": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"code": "UNAUTHORIZED",
"status": 123,
"message": "<string>",
"retryable": true,
"traceId": "<string>",
"details": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"code": "UNAUTHORIZED",
"status": 123,
"message": "<string>",
"retryable": true,
"traceId": "<string>",
"details": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}Criteria
Set Criteria
Replace the entire criteria set for a job in one call
PUT
/
v1
/
jobs
/
{jobId}
/
criteria
@nova-sdk/api
import { Nova } from "@nova-sdk/api";
const nova = new Nova({
apiKey: "sk_test_...",
tenantId: "acme-corp",
});
const current = await nova.jobs.criteria.versions.getCurrent("job_abc123");
const result = await nova.jobs.criteria.set("job_abc123", {
criteria: [
{ text: "5+ years experience in TypeScript", importance: "MUST_HAVE" },
{ text: "Experience with React", importance: "NICE_TO_HAVE" },
],
}, {
expectedCriteriaRevision: current.criteriaRevision,
});curl -X PUT "https://embed.nova.dweet.com/v1/jobs/job_abc123/criteria" \
-H "Authorization: Bearer sk_test_..." \
-H "X-Tenant-Id: acme-corp" \
-H "X-Expected-Criteria-Revision: crit_current_revision" \
-H "Content-Type: application/json" \
-d '{
"criteria": [
{
"text": "5+ years experience in TypeScript",
"importance": "MUST_HAVE"
},
{
"text": "Experience with React",
"importance": "NICE_TO_HAVE"
}
]
}'{
"criteria": [
{
"id": "<string>",
"text": "<string>",
"importance": "MUST_HAVE",
"order": 123,
"createdAt": "2023-11-07T05:31:56Z"
}
]
}{
"type": "<string>",
"code": "UNAUTHORIZED",
"status": 123,
"message": "<string>",
"retryable": true,
"traceId": "<string>",
"details": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"code": "UNAUTHORIZED",
"status": 123,
"message": "<string>",
"retryable": true,
"traceId": "<string>",
"details": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"code": "UNAUTHORIZED",
"status": 123,
"message": "<string>",
"retryable": true,
"traceId": "<string>",
"details": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"code": "UNAUTHORIZED",
"status": 123,
"message": "<string>",
"retryable": true,
"traceId": "<string>",
"details": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"code": "UNAUTHORIZED",
"status": 123,
"message": "<string>",
"retryable": true,
"traceId": "<string>",
"details": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}Existing scores aren’t affected. A new criteria version is created when you replace criteria. Only future score requests use the updated set.
When to Use
Replace the entire criteria set for a job in a single call. This is useful when:Bulk Update
You have the complete set of criteria and want to replace everything at once, rather than adding or removing one at a time
External Sync
Your system manages criteria externally and needs to push the latest state to Nova
Stable IDs
Criteria are matched by text. If a criterion with the same text already exists, itsid is preserved. This means downstream references (stored IDs, audit logs) remain valid even after a full replacement.
Clearing All Criteria
Pass an empty array to remove all criteria from a job:{ "criteria": [] }
If the job is permanently closed, use Archive Criteria instead, which prevents future scoring.
Response
The response includes the full criteria list after the replacement, making it easy to update your UI without a separate GET request.Authorizations
Headers
Optional key that makes criteria and library mutation requests safe to retry without duplicating side effects. The namespace is shared across all API keys for the same partner and environment. Reuse the same key when retrying the same request parameters.
Required string length:
1 - 255Was this page helpful?