Update an Event

This is a common endpoint used to update an event's data.

Note: If you update an event that contains a tag's last value, the last value will not be updated. Last values can only be updated by event creation.

Summary

  • Endpoint: /event_update
  • Method: POST
  • Required User Type: None, this works for all users

Body

  • device_id - string of user you want to create event for
    • Required
    • Type: string
    • Allowed users:
      • Any devices linked to current tenant
      • Tenant basic user
      • User basic user
      • If super admin/user: any user
  • stream - stream to send data to
    • Required
    • Type: string
  • event_data - data to send
    • Required
    • Type: dictionary
  • event_id - event_id associated with event
    • Required
    • Type: string
  • observed_at - event timestamp
    • Default: Now
    • Type: Date object or ISO-8601 date string

Response

A successful response will return the following in the "data" tag of the response:

{"message": "\n\n\n\n\n", "code": "200 OK", "title": "OK"}

Example

Request Body:

{
device_id: 'accounts',
stream: 'licensee_accounts',
event_data: {"test": "test14", "test2": 1},
event_id: "12345678"
}

Response Data:

{"message": "\n\n\n\n\n", "code": "200 OK", "title": "OK"}