Errors
lead_note_pin_limit
A lead can have at most 3 pinned notes.
| HTTP status | Type | Code |
|---|---|---|
| 409 | conflict_error | lead_note_pin_limit |
What it means
Unpin another note with DELETE /leads/{leadId}/notes/{noteId}/pin, then pin this one.
How to handle it
Fetch the resource again to see its current state, then decide whether to retry.
Example response
{
"detail": "A lead can have at most 3 pinned notes.",
"error": {
"type": "conflict_error",
"code": "lead_note_pin_limit",
"message": "A lead can have at most 3 pinned notes.",
"param": null,
"docUrl": "https://docs.callmitra.ai/errors/lead_note_pin_limit",
"requestId": "req_3f9c2a7d1b8e4c6a9f0e2d4b6a8c0e1f"
}
}Branch on error.code; it never changes once published. The message text can change. See Errors for the envelope.
Returned by
POST /api/v1/leads/{lead_id}/notes/{note_id}/pin— Pin a note