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
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Ruleset identifier (path parameter) |
ruleId | string | Yes | Rule identifier (path parameter) |
Request Body
All fields are optional. Only provided fields will be updated.
| Field | Type | Description |
|---|---|---|
operator | string | Comparison operator: equals, not_equals, contains, greater_than, less_than |
value | string | Value to match against |
weight | integer | Points to award (can be negative) |
active | boolean | Whether 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
| Status | Meaning | Solution |
|---|---|---|
| 401 | Unauthorized | Check authentication credentials |
| 404 | Not Found | Ruleset or rule does not exist |
DELETE /profile-scoring/rulesets/{id}/rules/{ruleId}
Delete a profile scoring rule. This action cannot be undone.
Request
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Ruleset identifier (path parameter) |
ruleId | string | Yes | Rule 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
| Status | Meaning | Solution |
|---|---|---|
| 401 | Unauthorized | Check authentication credentials |
| 404 | Not Found | Ruleset 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: falseinstead of deleting if you might need the rule later
Related Endpoints
- Profile Scoring Rules - List and create profile rules
- Profile Scoring Rulesets - Manage profile rulesets
- Profile Mappings - Field mappings used by profile rules