Amenities

Events

Action Event name
create a new amenity amenity.created
update an existing amenity amenity.updated

Payload example created

{
  "attemptId": "7c8bd301-bdba-4a52-8b59-8a598d27824a",
  "created": 1623792520,
  "data": {
    "_id": "60c91b643d6d6319a44fff79",
    "accountId": "52a377ec430c7d4e220001fc",
    "createdAt": {
      "offset": 0,
      "value": "2021-06-15T21:28:04.035Z"
    },
    "createdBy": "55fc2f318791db6e1a0000b6",
    "enabled": false,
    "icon": "fa-snowflake-o",
    "lexiconKeys": {
      "name": "52a377ec430c7d4e220001fc-amenity-name-1f5b9e24-bd36-41ee-9a77-6bbcda541744"
    },
    "name": "name",
    "updatedAt": {
      "offset": 0,
      "value": "2021-06-15T21:28:04.035Z"
    },
    "updatedBy": "55fc2f318791db6e1a0000b6"
  },
  "event": "amenity.created",
  "id": "d3eb1a9d-e450-4b3c-a529-0514333a0d00",
  "livemode": true
}

Payload example updated

{
  "attemptId": "a7b8a8d8-419d-49aa-9682-b02633c5bedf",
  "created": 1623792478,
  "data": {
    "_id": "5fb48a1be6f2c713f955fa8c",
    "accountId": "52a377ec430c7d4e220001fc",
    "createdAt": {
      "offset": 0,
      "value": "2020-11-18T02:42:35.552Z"
    },
    "createdBy": "54eddf07d4558abf23000004",
    "enabled": false,
    "icon": "fa-bluetooth",
    "lexiconKeys": {
      "name": "52a377ec430c7d4e220001fc-amenity-name-365528d9-9898-4563-923b-9d5a47e9baed"
    },
    "name": "test",
    "updatedAt": {
      "offset": 0,
      "value": "2021-06-15T21:27:27.763Z"
    },
    "updatedBy": "55fc2f318791db6e1a0000b6"
  },
  "event": "amenity.updated",
  "id": "be9943f6-48a7-4f87-bb95-d5a43a2e3050",
  "livemode": true
}