Skip to main content
PUT
Replace the duplicate-detection ruleset for a form

Authorizations

Authorization
string
header
required

Passport bearer token authentication for legacy admin sessions.

Path Parameters

hysform_id
integer
required

Donor form whose ruleset to update.

Body

application/json
rules
object[]
required

Rule definitions. Validation: required|array. Each rule typically pairs a field_key with a comparator (exact, normalized, fuzzy, phonetic).

Example:
threshold
number<float>

Confidence floor for matches. Validation: sometimes|numeric|min:0|max:1.

Required range: 0 <= x <= 1
Example:

0.8

enabled
boolean

Whether duplicate detection is active for this form. Validation: sometimes|boolean.

Example:

true

Response

Ruleset persisted.

success
boolean
Example:

true

message
string
Example:

"Duplicate rules updated successfully"

data
object

Fresh DuplicateRule row.