Activate or deactivate a property manager
Turns a colleague's sign-in on or off. Deactivating keeps the person and everything they did; it only stops them signing in. You cannot change your own status, and you cannot deactivate the company's last active property manager.
Authorization
AuthorizationstringrequiredPath parameters
propertyManagerIdstringrequiredThe property manager. A Snowflake id, sent as a decimal string.
Body
application/json
activebooleanrequiredtrue restores the sign-in, false disables it.
Response
200 · The property manager. Note that the record returned is read before the change is applied, so `active` may still show the old value; read the property manager back if you need to confirm it.
idstringThe property manager. This is also their MagicDoor user id.
companyIdstringThe company they work for.
emailstringEmail address, which is also the name they sign in with.
phonestringPhone number. Absent when none is on file.
firstNamestringGiven name.
lastNamestringFamily name. Absent when only a first name is on file.
activebooleanfalse once the property manager has been deactivated. A deactivated property manager cannot sign in and cannot be given a new password.
createdstring · date-timeWhen the property manager was added.
lastSeenstring · date-timeWhen they last used the company portal. Absent when they never have.
namestringfirstName and lastName joined with a space. Read-only.
imageIdstringTheir profile photo. Absent when they have none.
imageobjectReady-to-use URLs for the profile photo. Absent when they have no photo.
401 · The access token is missing, expired, or does not belong to a property manager.
404 · No property manager with that id exists for the calling company. A record that belongs to another company is reported the same way as one that does not exist. The id you asked for is in `entityId`; `detail` names only the kind of record.
422 · Either you tried to change your own active status, or you tried to deactivate the company's last active property manager. The example shows the first case; note that `type` carries an exception name here rather than a URL, because this response is assembled by the controller rather than by the usual problem-details machinery. The last-active-property-manager case comes through the usual machinery instead, with `title` of `Unprocessable Entity` and `detail` of `Cannot deactivate the last active property manager for a company`.
Setting active to false disables the MagicDoor sign-in and nothing else. The property manager record stays, they keep showing up as the creator of everything they created, and their permissions and property access are kept as they were. Set active back to true and they can sign in again with the same password.
Deactivated property managers vanish from list property managers, which filters on active. Fetch them by id instead.
If active already matches, the call returns without touching anything.