Amenity groups

Events

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

Payload example created

{
  "attemptId": "b81f988a-8f46-446c-9d3d-5d4048adfc2a",
  "created": 1623792607,
  "data": {
    "_id": "60c91bde3d6d6319a44fff7a",
    "accountId": "52a377ec430c7d4e220001fc",
    "amenityIds": [
      "5bc9d89d8f0286cb7b5d5634",
      "5bc9e9399b6a7ec67bac456b",
      "5fb48a1be6f2c713f955fa8c"
    ],
    "createdAt": {
      "offset": 0,
      "value": "2021-06-15T21:30:06.839Z"
    },
    "createdBy": "55fc2f318791db6e1a0000b6",
    "enabled": false,
    "lexiconKeys": {
      "name": "52a377ec430c7d4e220001fc-name-52a377ec430c7d4e220001fc-4f00ca7e-d3c7-4db2-8016-17be09489e3c-8c5ce0ed-0ded-4a94-bf44-86a2e1abed85"
    },
    "name": "test2",
    "updatedAt": {
      "offset": 0,
      "value": "2021-06-15T21:30:06.839Z"
    },
    "updatedBy": "55fc2f318791db6e1a0000b6"
  },
  "event": "amenitygroup.created",
  "id": "59887ee4-da7b-4bb7-bb52-927f246dc6f5",
  "livemode": true
}

Payload example updated

{
  "attemptId": "688695f5-ba46-4bed-a2e7-ac720a151584",
  "created": 1623792624,
  "data": {
    "_id": "60c91bde3d6d6319a44fff7a",
    "accountId": "52a377ec430c7d4e220001fc",
    "amenityIds": [
      "5bc9d89d8f0286cb7b5d5634",
      "5bc9e92a9b6a7ec67bac456a",
      "5bc9e9399b6a7ec67bac456b"
    ],
    "createdAt": {
      "offset": 0,
      "value": "2021-06-15T21:30:06.839Z"
    },
    "createdBy": "55fc2f318791db6e1a0000b6",
    "enabled": true,
    "lexiconKeys": {
      "name": "52a377ec430c7d4e220001fc-name-52a377ec430c7d4e220001fc-4f00ca7e-d3c7-4db2-8016-17be09489e3c-8c5ce0ed-0ded-4a94-bf44-86a2e1abed85"
    },
    "name": "test2",
    "updatedAt": {
      "offset": 0,
      "value": "2021-06-15T21:30:17.842Z"
    },
    "updatedBy": "55fc2f318791db6e1a0000b6"
  },
  "event": "amenitygroup.updated",
  "id": "57c6f1e3-a4cb-48bd-b6b4-a7f8ed74826b",
  "livemode": true
}