# ai.newnal.illi.schedule.ackAlarm

> The device records the parent's '확인' of one alarm (E08); idempotent. It ends that alarm only; later alarms of the same entry still fire.

- Kind: procedure
- Authority: schedule.illi.newnal.ai
- Lexicon: 1
- Published by [illi-service.newnal.id](https://lexicon.garden/identity/did:plc:uztm7bi2ce42dez3uu3qafro), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.schedule.ackAlarm)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.schedule.ackAlarm/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.schedule.ackAlarm/analytics)

## Procedure (`ai.newnal.illi.schedule.ackAlarm`)

Type: procedure · POST

### Input (application/json)

- `alarmId` (string, required)
- `at` (string · datetime, required)
- `homeId` (string · tid, required)
- `occurrenceId` (string, required)

### Output (application/json)

- `acknowledged` (boolean, required)

### Errors

- `NotMember`: No description in schema.
- `NotDevice`: No description in schema.
- `HomeNotFound`: No description in schema.
- `AlarmNotFound`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The device records the parent's '확인' of one alarm (E08); idempotent. It ends that alarm only; later alarms of the same entry still fire.",
      "errors": [
        {
          "name": "NotMember"
        },
        {
          "name": "NotDevice"
        },
        {
          "name": "HomeNotFound"
        },
        {
          "name": "AlarmNotFound"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "alarmId": {
              "type": "string"
            },
            "at": {
              "format": "datetime",
              "type": "string"
            },
            "homeId": {
              "format": "tid",
              "type": "string"
            },
            "occurrenceId": {
              "type": "string"
            }
          },
          "required": [
            "homeId",
            "occurrenceId",
            "alarmId",
            "at"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "acknowledged": {
              "type": "boolean"
            }
          },
          "required": [
            "acknowledged"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "ai.newnal.illi.schedule.ackAlarm",
  "lexicon": 1
}
```
