Portfolios

Delete a portfolio

Permanently removes a portfolio. Use deactivate instead when you only want it out of the way — deactivating leaves the record and its history intact.

DELETE
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

Response

200 · The portfolio was deleted. The response has no body.

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

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