Sent when table scope data is created, modified, or deleted.
If subscribed, whenever an object is created, modified or deleted in the context of a bot flow, bot component or Meya API, a table
event will be sent to your Webhook URL.
Use-cases:
- keep object databases in sync
- event-based workflows
User event object
Field | Description |
---|---|
| Always |
| The id of the bot associated with the data ex. |
| Not used. Always |
| Always |
| UNIX timestamp of the change to 5 decimal precision. ex |
| One of |
| The up-to-date object model |
| Table name where the object resids. ex |
{
"user_id": null,
"sender": "bot",
"timestamp": 1487092324.516319,
"object": {
"name": "Big Mac",
"ingredients": [
"2 all beef patties",
"special sauce",
"lettuce",
"onion",
"sesame seed bun"
],
"price": 3.98,
"image_url": "http://i.imgur.com/UM1bL5F.jpg",
"id": "O4PTHV5E87T",
"bot_id": "BJty7evfw2b"
},
"table": "food",
"operation": "modify",
"type": "table",
"bot_id": "BJty7evfw2b"
}