Update Saved Item
curl --request PATCH \
--url https://stardrift.ai/api/saved/{item_id} \
--header 'Content-Type: application/json' \
--data '
{
"caption": "<string>",
"list_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"section_id": "<string>"
}
'import requests
url = "https://stardrift.ai/api/saved/{item_id}"
payload = {
"caption": "<string>",
"list_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"section_id": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
caption: '<string>',
list_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
section_id: '<string>'
})
};
fetch('https://stardrift.ai/api/saved/{item_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://stardrift.ai/api/saved/{item_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'caption' => '<string>',
'list_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'section_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://stardrift.ai/api/saved/{item_id}"
payload := strings.NewReader("{\n \"caption\": \"<string>\",\n \"list_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"section_id\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://stardrift.ai/api/saved/{item_id}")
.header("Content-Type", "application/json")
.body("{\n \"caption\": \"<string>\",\n \"list_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"section_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://stardrift.ai/api/saved/{item_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"caption\": \"<string>\",\n \"list_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"section_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"list_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"place_ref": "<string>",
"place_id": "<string>",
"caption": "<string>",
"name": "<string>",
"category": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"lat": 123,
"lng": 123,
"image_url": "<string>",
"rating": 123,
"num_reviews": 123,
"source": "<string>",
"source_url": "<string>",
"is_shared": true,
"review_state": "<string>",
"created_at": "<string>",
"description": "<string>",
"image_thumbhash": "<string>",
"tabelog_tier": 123,
"michelin": {
"tier": "stars",
"stars": 123,
"green_star": false,
"url": "<string>",
"cuisine": "<string>"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}saved
Update Saved Item
PATCH
/
saved
/
{item_id}
Update Saved Item
curl --request PATCH \
--url https://stardrift.ai/api/saved/{item_id} \
--header 'Content-Type: application/json' \
--data '
{
"caption": "<string>",
"list_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"section_id": "<string>"
}
'import requests
url = "https://stardrift.ai/api/saved/{item_id}"
payload = {
"caption": "<string>",
"list_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"section_id": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
caption: '<string>',
list_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
section_id: '<string>'
})
};
fetch('https://stardrift.ai/api/saved/{item_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://stardrift.ai/api/saved/{item_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'caption' => '<string>',
'list_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'section_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://stardrift.ai/api/saved/{item_id}"
payload := strings.NewReader("{\n \"caption\": \"<string>\",\n \"list_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"section_id\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://stardrift.ai/api/saved/{item_id}")
.header("Content-Type", "application/json")
.body("{\n \"caption\": \"<string>\",\n \"list_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"section_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://stardrift.ai/api/saved/{item_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"caption\": \"<string>\",\n \"list_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"section_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"list_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"place_ref": "<string>",
"place_id": "<string>",
"caption": "<string>",
"name": "<string>",
"category": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"lat": 123,
"lng": 123,
"image_url": "<string>",
"rating": 123,
"num_reviews": 123,
"source": "<string>",
"source_url": "<string>",
"is_shared": true,
"review_state": "<string>",
"created_at": "<string>",
"description": "<string>",
"image_thumbhash": "<string>",
"tabelog_tier": 123,
"michelin": {
"tier": "stars",
"stars": 123,
"green_star": false,
"url": "<string>",
"cuisine": "<string>"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Headers
Path Parameters
Response
Successful Response
A place's Michelin Guide distinction, structured. Canonical rationale — the TS mirror and the renderers point here rather than restating it.
Rides alongside michelin_award rather than replacing it: that field is a
pre-rendered label ("★★★"), and a label cannot drive iconography. An award
string we don't recognise yields NO distinction (we never paint a mark we
can't justify) while still surfacing verbatim in michelin_award, so a
new tier degrades to text rather than disappearing.
Show child attributes
Show child attributes
