Portfolios

Update a portfolio

Renames a portfolio and replaces its icon list. Both values are written as given, so omitting icons clears them.

PUT
https://api.portal.magicdoor.com/company-app/portfolios/{portfolioId}

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.

Path parameters

portfolioIdstringrequired

Snowflake id of the portfolio, as a decimal string.

example: 1830472847398404096

Body

application/json

The whole portfolio is written from this body — there is no partial update.

namestringrequired

The new name. Up to 150 characters, and it must not be blank. Leading and trailing spaces are trimmed.

iconsstring[]

Replaces the icon list. Leave it out and the list is emptied.

Response

200 · The updated portfolio, without the `properties` array.

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.

404 · No portfolio with that id, or it belongs to another company.