Skip to main content

Delete Record

Overview

The Delete Record is triggered whenever a record or business (company) is deleted from the system.

Schema

The webhook payload follows a structured JSON schema, which defines the format and expected data types of the event payload.

{
"type": "object",
"properties": {
"type": {
"type": "string"
},
"locationId": {
"type": "string"
},
"owners": {
"type": "array",
"items": {
"type": "string"
}
},
"followers": {
"type": "array",
"items": {
"type": "string"
}
},
"properties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"valueString": {
"type": "string"
}
}
}
},
"id": {
"type": "string"
},
"timestamp": {
"type": "string",
"format": "date-time"
}
}
}

Explanation of Fields

FieldTypeDescription
typestringThe type of event.
locationIdstringUnique identifier for the location associated with the deleted record.
ownersarray of stringsList of user IDs that were assigned as owners of the deleted record.
followersarray of stringsList of user IDs that were following the deleted record.
propertiesarray of objectsKey-value pairs containing additional metadata about the record.
idstringUnique identifier of the deleted record.
timestampstring (ISO 8601 format)The timestamp when the deletion event occurred.

Example Payload

{
"id": "679b8f9bde6a0c356a0311b3",
"locationId": "eHy2cOSZxMQzQ6Yyvl8P",
"timestamp": "2025-02-10T08:26:05.961Z",
"owners": ["60d5ec49f72b2a001f5f9d91"],
"followers": ["60d5ec49f72b2a001f5f9d93", "60d5ec49f72b2a001f5f9d94"],
"properties": [
{
"key": "pet_name",
"valueString": "buddy"
}
]
}