The Lost Reason Detail object
Attributes
Unique identifier for the object.
{
"id": "lost-reason-detail_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"lost_reason": "lost_reason_example"
} /api/crm/lost-reason-detail?parent_id={id} List lost reason details by parent
Returns all lost reason details belonging to the specified parent.
Query parameters
The ID of the parent to list children for.
Returns
A list of lost reason detail objects belonging to the parent.
curl https://api.overplane.dev/api/crm/lost-reason-detail?parent_id=parent_abc123 \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "lost-reason-detail_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"lost_reason": "lost_reason_example"
}
],
"has_more": false,
"total": 1
} /api/crm/lost-reason-detail Create a lost reason detail
Creates a new lost reason detail object.
Body parameters
Returns
Returns the newly created lost reason detail object if the call succeeded.
curl https://api.overplane.dev/api/crm/lost-reason-detail \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" {
"id": "lost-reason-detail_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"lost_reason": "lost_reason_example"
} /api/crm/lost-reason-detail/{id} Update a lost reason detail
Updates the specified lost reason detail by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the lost reason detail to update.
Body parameters
Returns
Returns the updated lost reason detail object.
curl https://api.overplane.dev/api/crm/lost-reason-detail/lost-reason-detail_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"idx":1,"parent_id":null}' {
"id": "lost-reason-detail_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"lost_reason": "lost_reason_example"
} /api/crm/lost-reason-detail/{id} Delete a lost reason detail
Permanently deletes a lost reason detail. This cannot be undone.
Path parameters
The identifier of the lost reason detail to delete.
Returns
Returns a confirmation that the lost reason detail has been deleted.
curl https://api.overplane.dev/api/crm/lost-reason-detail/lost-reason-detail_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "lost-reason-detail_abc123",
"deleted": true
} /api/crm/lost-reason-detail/reorder Reorder lost reason details
Updates the sort order of lost reason details within their parent by setting new index values.
Returns
Returns the reordered list.
curl https://api.overplane.dev/api/crm/lost-reason-detail/reorder \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "lost-reason-detail_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"lost_reason": "lost_reason_example"
}