Update a wish
curl --request PATCH \
--url https://web.onio.app/api/v1/wishlists/{wishlistId}/wishes/{wishId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"description": "<string>",
"url": "<string>",
"imageUrl": "<string>"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
description: '<string>',
url: '<string>',
imageUrl: '<string>'
})
};
fetch('https://web.onio.app/api/v1/wishlists/{wishlistId}/wishes/{wishId}', 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}/wishes/{wishId}"
payload = {
"title": "<string>",
"description": "<string>",
"url": "<string>",
"imageUrl": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "7b2e4c19-5a3d-4f8e-b6c1-2d9a0e7f3b58",
"wishlistId": "3f6c1a52-8d1e-4b7a-9c2e-1f5d7a9b0c41",
"title": "Green ceramic watering can",
"description": "The 1.5 litre size, please.",
"priority": "high",
"priceRange": "15_to_35",
"url": "https://example.com/products/watering-can",
"imageUrl": "https://example.com/images/watering-can.jpg",
"status": "published",
"createdAt": "2026-11-03T14:20:00.000Z",
"updatedAt": "2026-11-08T07:05:00.000Z"
}{
"statusCode": 400,
"message": "Invalid request body: `title`: Too small: expected string to have >=1 characters",
"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": "Wish 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
Update a wish
If someone is getting this wish, they see the change.
Update a wish
curl --request PATCH \
--url https://web.onio.app/api/v1/wishlists/{wishlistId}/wishes/{wishId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"description": "<string>",
"url": "<string>",
"imageUrl": "<string>"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
description: '<string>',
url: '<string>',
imageUrl: '<string>'
})
};
fetch('https://web.onio.app/api/v1/wishlists/{wishlistId}/wishes/{wishId}', 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}/wishes/{wishId}"
payload = {
"title": "<string>",
"description": "<string>",
"url": "<string>",
"imageUrl": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "7b2e4c19-5a3d-4f8e-b6c1-2d9a0e7f3b58",
"wishlistId": "3f6c1a52-8d1e-4b7a-9c2e-1f5d7a9b0c41",
"title": "Green ceramic watering can",
"description": "The 1.5 litre size, please.",
"priority": "high",
"priceRange": "15_to_35",
"url": "https://example.com/products/watering-can",
"imageUrl": "https://example.com/images/watering-can.jpg",
"status": "published",
"createdAt": "2026-11-03T14:20:00.000Z",
"updatedAt": "2026-11-08T07:05:00.000Z"
}{
"statusCode": 400,
"message": "Invalid request body: `title`: Too small: expected string to have >=1 characters",
"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": "Wish 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"
}Authorizations
Path Parameters
Body
application/json
Send only the fields to change. null clears an optional field.
Response
The updated wish