Skip to main content
PATCH
/
v1
/
criteria-library
/
{criterionId}
Update a library criterion
curl --request PATCH \
  --url https://embed.nova.dweet.com/v1/criteria-library/{criterionId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Tenant-Id: <x-tenant-id>' \
  --data '
{
  "text": "<string>",
  "importance": "MUST_HAVE",
  "category": "<string>"
}
'
{
  "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
importance
enum<string>
Available options:
MUST_HAVE,
PREFERRED,
NICE_TO_HAVE
category
string | null

Response

Updated

criterion
object
required