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