cURL
curl --request PUT \ --url https://app.blinksale.test/api/v1/saved-items/{savedItemId} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "Consulting Services", "price": 150, "quantity": 1, "currency": "USD", "description": "Professional consulting services", "tax_id": "01jtbf0c9zaraqx3swthf88n5y", "unit_of_measurement_id": "01jtbf0c9zaraqx3swthf88n5y" } '
{ "success": true, "message": "Saved item updated successfully", "data": { "id": "01jtbf0c9zaraqx3swthf88n5y", "organization_id": "01jtbf0c9zaraqx3swthf88n5y", "name": "Consulting Services", "description": "Professional consulting services", "price": 150, "quantity": 1, "currency": "USD", "tax_id": "01jtbf0c9zaraqx3swthf88n5y", "tax_name": "Sales Tax", "tax_percent": 8.5, "unit_of_measurement_id": "01jtbf0c9zaraqx3swthf88n5y", "unit_name": "Hour", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" } }
Update an existing saved item
Access token obtained from the /v1/auth/login endpoint
The ID of the saved item to update
"Consulting Services"
150
1
"USD"
"Professional consulting services"
"01jtbf0c9zaraqx3swthf88n5y"
Saved item updated successfully
true
"Saved item updated successfully"
Show child attributes