# Action Attempts

## The Action Attempt Object

| **`action_attempt_id`** | uuid   | ID of the Action Attempt                                  |
| ----------------------- | ------ | --------------------------------------------------------- |
| **`action_type`**       | string | [See table below](#action-types) for list of action types |
| **`status`**            | string | `pending` or `success` or `error`                         |
| **`result`**            | object | Response data from the action                             |
| **`error`**             | object | Error data from the action                                |

### Action Types

| `CREATE_ACCESS_CODE`     | [Creates an Access Code](https://docs.seam.co/latest/~/revisions/DFdrUdS2jQOnbJTNDT5a/api/access_codes/create) for a keypad lock                       |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `DELETE_ACCESS_CODE`     | [Deletes an Access Code](https://docs.seam.co/latest/~/revisions/DFdrUdS2jQOnbJTNDT5a/api/access_codes/delete) for a keypad lock                       |
| `LOCK_DOOR`              | [Locks a Door Lock](https://docs.seam.co/latest/~/revisions/DFdrUdS2jQOnbJTNDT5a/api/locks/lock_door) for a door lock                                  |
| `UNLOCK_DOOR`            | [Unlocks a Door Lock](https://docs.seam.co/latest/~/revisions/DFdrUdS2jQOnbJTNDT5a/api/locks/unlock_door) for a door lock                              |
| `CREATE_NOISE_THRESHOLD` | [Creates a Noise Threshold](https://docs.seam.co/latest/~/revisions/DFdrUdS2jQOnbJTNDT5a/api/noise_sensors/noise_thresholds/create) for a noise sensor |
| `REMOVE_NOISE_THRESHOLD` | [Removes a Noise Threshold](https://docs.seam.co/latest/~/revisions/DFdrUdS2jQOnbJTNDT5a/api/noise_sensors/noise_thresholds/delete) for a noise sensor |

### List of Methods

<table data-header-hidden><thead><tr><th width="312"></th><th></th></tr></thead><tbody><tr><td><a href="action_attempts/get">Get Action Attempt</a></td><td>Get Action Attempt</td></tr></tbody></table>
