Delete a wishlist
curl --request DELETE \
--url https://web.onio.app/api/v1/wishlists/{wishlistId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://web.onio.app/api/v1/wishlists/{wishlistId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://web.onio.app/api/v1/wishlists/{wishlistId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"statusCode": 400,
"message": "Validation failed (uuid is expected)",
"error": "Bad Request"
}{
"statusCode": 401,
"message": "Missing or invalid access token",
"error": "Unauthorized"
}{
"statusCode": 403,
"message": "Access token lacks the required scope",
"error": "Forbidden"
}{
"statusCode": 404,
"message": "Wishlist not found",
"error": "Not Found"
}{
"statusCode": 409,
"message": "Your wishlists changed during the request. Try again.",
"error": "Conflict"
}{
"statusCode": 429,
"message": "ThrottlerException: Too Many Requests"
}Wishlists
Delete a wishlist
Deletes the wishlist and all its wishes. Its share link stops working.
Delete a wishlist
curl --request DELETE \
--url https://web.onio.app/api/v1/wishlists/{wishlistId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://web.onio.app/api/v1/wishlists/{wishlistId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://web.onio.app/api/v1/wishlists/{wishlistId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"statusCode": 400,
"message": "Validation failed (uuid is expected)",
"error": "Bad Request"
}{
"statusCode": 401,
"message": "Missing or invalid access token",
"error": "Unauthorized"
}{
"statusCode": 403,
"message": "Access token lacks the required scope",
"error": "Forbidden"
}{
"statusCode": 404,
"message": "Wishlist not found",
"error": "Not Found"
}{
"statusCode": 409,
"message": "Your wishlists changed during the request. Try again.",
"error": "Conflict"
}{
"statusCode": 429,
"message": "ThrottlerException: Too Many Requests"
}