Stop sharing a wishlist
curl --request DELETE \
--url https://web.onio.app/api/v1/wishlists/{wishlistId}/share \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://web.onio.app/api/v1/wishlists/{wishlistId}/share', 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}/share"
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": "Wishlist is archived",
"error": "Conflict"
}{
"statusCode": 429,
"message": "ThrottlerException: Too Many Requests"
}Wishlists
Stop sharing a wishlist
Turns off the share link and sets the wishlist to Private. People who follow the wishlist no longer see its wishes. Sharing it again creates a new link.
Stop sharing a wishlist
curl --request DELETE \
--url https://web.onio.app/api/v1/wishlists/{wishlistId}/share \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://web.onio.app/api/v1/wishlists/{wishlistId}/share', 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}/share"
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": "Wishlist is archived",
"error": "Conflict"
}{
"statusCode": 429,
"message": "ThrottlerException: Too Many Requests"
}