Skip to main content

Profile Level by ID API

Update or delete an individual profile level.

PUT /profile-levels/{id}

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

Request

ParameterTypeRequiredDescription
idstringYesLevel identifier (path parameter)

Request Body

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

FieldTypeDescription
namestringLevel label (e.g., "Ideal Customer", "Good Fit", "Weak Fit")
min_scoreintegerMinimum score (inclusive)
max_scoreinteger or nullMaximum score (inclusive). Use null for no upper limit
colorstringHex color code for display
orderintegerDisplay order
{
"name": "Weak Fit",
"min_score": 0,
"max_score": 24,
"color": "#64748b"
}

Response

200 OK

{
"id": "level-123",
"name": "Weak Fit",
"min_score": 0,
"max_score": 24,
"color": "#64748b",
"order": 1,
"updated_at": "2025-01-15T12:00:00Z"
}

Example

curl -X PUT "https://api.leadvibe.com/profile-levels/level-123" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"name": "Weak Fit", "min_score": 0, "max_score": 24, "color": "#64748b"}'

Common Errors

StatusMeaningSolution
400Bad RequestScore range overlaps with another level
401UnauthorizedCheck authentication credentials

DELETE /profile-levels/{id}

Delete a profile level. Leads that matched this level will show as "Unclassified" until another level covers their score range.

Request

ParameterTypeRequiredDescription
idstringYesLevel identifier (path parameter)

Response

204 No Content

Example

curl -X DELETE "https://api.leadvibe.com/profile-levels/level-123" \
-H "Authorization: Bearer <token>"

Common Errors

StatusMeaningSolution
400Bad RequestCannot delete the last remaining level
401UnauthorizedCheck authentication credentials

Notes

  • Historical level assignments are preserved even after a level is deleted
  • Ensure other levels cover the full score range to avoid gaps where leads appear as "Unclassified"