List the available portfolios
/portfolios
curl -L \ --url 'https://api.ecosuite.io//portfolios' \ --header 'Authorization: YOUR_API_KEY'
{ "portfolios": [ null, null ] }
Create a new Portfolio and generate a unique ID
curl -L \ --request POST \ --url 'https://api.ecosuite.io//portfolios' \ --header 'Authorization: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{"name":"text","projects":[null],"reports":{}}'
{ "portfolio": { "name": "text", "projects": [ "text" ], "reports": {} } }
Gets the details for the specified Portfolio
/portfolios/{portfolioId}
The Portfolio ID
curl -L \ --url 'https://api.ecosuite.io//portfolios/{portfolioId}' \ --header 'Authorization: YOUR_API_KEY'
Update an existing Portfolio
curl -L \ --request PUT \ --url 'https://api.ecosuite.io//portfolios/{portfolioId}' \ --header 'Authorization: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{"name":"text","projects":[null],"reports":{}}'
Deletes an existing Portfolio
curl -L \ --request DELETE \ --url 'https://api.ecosuite.io//portfolios/{portfolioId}' \ --header 'Authorization: YOUR_API_KEY'
{}