Get several portfolios by id
Fetches up to 100 portfolios in one call, each with its properties expanded. Every id must exist and belong to the company — one bad id fails the whole call.
Authorization
AuthorizationstringrequiredQuery parameters
portfolioIdsstring[]requiredThe portfolios to fetch. Give them comma-separated (portfolioIds=1830472847398404096,1830472847398404097) or repeat the parameter. At least 1 and at most 100 ids, each a positive decimal Snowflake.
Response
200 · A JSON array of the requested portfolios, in the order the repository returned them rather than the order you asked for. The fields below describe one element.
idstringSnowflake id of the portfolio.
activebooleanfalse once the portfolio has been deactivated.
namestringThe portfolio's name, 1 to 150 characters.
propertyCountintegerHow many properties the portfolio holds, active and deactivated together. Maintained by MagicDoor; you cannot set it.
iconsstring[]Icon keys pinned to the portfolio. Free-form strings; they are added and removed through the icons endpoints, not here.
activePropertyCountintegerComputed: how many of properties are still active.
propertiesobject[]Every property in the portfolio, active and deactivated alike, each with a count of its active units.