Delete an owned portfolio
curl --request DELETE \
--url https://api.noonum.ai/v2/portfolios/{portfolioId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.noonum.ai/v2/portfolios/{portfolioId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.noonum.ai/v2/portfolios/{portfolioId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.noonum.ai/v2/portfolios/{portfolioId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": "<string>"
}Portfolios
Delete an owned portfolio
Deletes a portfolio. Only the owner can delete a portfolio.
DELETE
/
portfolios
/
{portfolioId}
Delete an owned portfolio
curl --request DELETE \
--url https://api.noonum.ai/v2/portfolios/{portfolioId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.noonum.ai/v2/portfolios/{portfolioId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.noonum.ai/v2/portfolios/{portfolioId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.noonum.ai/v2/portfolios/{portfolioId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": "<string>"
}Authorizations
Enter 'Bearer' followed by a space and then your JWT or API Key.
Example: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
or Bearer YOUR_API_KEY_HERE
Path Parameters
UUID of the portfolio.
Response
The portfolio was deleted. No content is returned.
Was this page helpful?