Current user

Upload the profile picture directly

Uploads an image and makes it the calling property manager's profile picture in one multipart request, without an upload session.

Request an upload session, send the bytes to it, then call POST /company-app/me/image with the session id.
POST
https://api.portal.magicdoor.com/company-app/me/image

Authorization

Authorizationstringrequired
Bearer token — Send your API token in the Authorization header as Bearer <token>. Requests without a valid token are rejected with 401 Unauthorized.

Body

multipart/form-data

imageFilefilerequired

The image, sent as a multipart part named imageFile. An empty part is refused.

Response

200 · The property manager with the new picture in `image`.

idstring

The property manager. A Snowflake id sent as a decimal string.

companyIdstring

The company this property manager belongs to.

emailstring

Email address, which is also the sign-in name.

phonestring

Phone number. Absent when none was recorded.

firstNamestring

First name.

lastNamestring

Last name. Absent when none was recorded.

activeboolean

Whether the account is enabled.

createdstring · date-time

When the account was created, in the company's timezone.

lastSeenstring · date-time

When the account was last used, in the company's timezone. Absent when it never has been.

namestring

First and last name joined with a space. Computed, not stored.

imageIdstring

The file holding the profile picture. Absent when there is none.

imageobject

Pre-signed URLs for the profile picture. Absent when there is none.

400 · No image was sent, or the part was empty.

401 · The access token is missing, expired, or not valid for this company.