Create a permanent access user
remotelock_create_access_userWRITE: creates a permanent access user (an employee, resident or owner) with a PIN and/or card. It creates the person only; use remotelock_grant_access to give them doors. The reply includes the PIN. Check remotelock_list_access_persons first to avoid duplicates. POST /access_persons.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pin | No | A PIN of 4-10 digits. Omit and set generate_pin to let RemoteLock pick one. | |
| name | Yes | Full name. | |
| No | Email address (RemoteLock can email the access instructions). | ||
| phone | No | Phone in E.164 format, e.g. +14155551234. | |
| department | No | Department or group label. | |
| card_number | No | Prox card number, if the person uses a card. | |
| generate_pin | No | true: RemoteLock generates a random PIN (returned in the reply). |