Portfolios

Create a portfolio

Creates an empty portfolio. Properties are put into it afterwards, either when they are created or by moving an existing property.

POST
https://api.portal.magicdoor.com/company-app/portfolios

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

application/json

namestringrequired

What to call the portfolio. Up to 150 characters, and it must not be blank. Leading and trailing spaces are trimmed.

iconsstring[]

Accepted by the endpoint but ignored on create — icons are only applied when a portfolio is updated.

Response

200 · The new portfolio. Note that it is the plain portfolio, without the `properties` array the list endpoint returns.

idstring

Snowflake id of the portfolio.

activeboolean

false once the portfolio has been deactivated.

namestring

The portfolio's name.

propertyCountinteger

How many properties sit in the portfolio, active and deactivated together.

iconsstring[]

Icon keys pinned to the portfolio. Free-form strings; they are added and removed through the icons endpoints, not here.

400 · The name is missing, blank, or longer than 150 characters. The response carries an `errors` member mapping each rejected field name to its message.

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