Skip to main content

Profile Scoring Rule by ID API

Update or delete an individual profile scoring rule within a ruleset.

PUT /profile-scoring/rulesets/{id}/rules/{ruleId}

Update an existing profile scoring rule. Only the fields you provide are updated; omitted fields remain unchanged.

Request

ParameterTypeRequiredDescription
idstringYesRuleset identifier (path parameter)
ruleIdstringYesRule identifier (path parameter)

Request Body

All fields are optional. Only provided fields will be updated.

FieldTypeDescription
operatorstringComparison operator: equals, not_equals, contains, greater_than, less_than
valuestringValue to match against
weightintegerPoints to award (can be negative)
activebooleanWhether the rule is active
{
"weight": 60,
"active": true
}

Response

200 OK

{
"id": "rule-123",
"ruleset_id": "ruleset-abc",
"profile_field": "company_employee_count",
"operator": "equals",
"value": "501+",
"weight": 60,
"active": true,
"updated_at": "2025-01-15T12:30:00Z"
}

Example

curl -X PUT "https://api.leadvibe.com/profile-scoring/rulesets/ruleset-abc/rules/rule-123" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"weight": 60, "active": true}'

Common Errors

StatusMeaningSolution
401UnauthorizedCheck authentication credentials
404Not FoundRuleset or rule does not exist

DELETE /profile-scoring/rulesets/{id}/rules/{ruleId}

Delete a profile scoring rule. This action cannot be undone.

Request

ParameterTypeRequiredDescription
idstringYesRuleset identifier (path parameter)
ruleIdstringYesRule identifier (path parameter)

Response

204 No Content

Example

curl -X DELETE "https://api.leadvibe.com/profile-scoring/rulesets/ruleset-abc/rules/rule-123" \
-H "Authorization: Bearer <token>"

Common Errors

StatusMeaningSolution
401UnauthorizedCheck authentication credentials
404Not FoundRuleset or rule does not exist

Notes

  • Deleting a rule does not recalculate historical profile scores
  • Future profile updates will no longer apply the deleted rule
  • Consider setting active: false instead of deleting if you might need the rule later