แก้ไข map color ตาม Place
API นี้มีฟังก์ชันสำหรับเปลี่ยนสีของแต่ละ Place บนแผนที่ได้อย่างอิสระ
API นี้มีฟังก์ชันสำหรับเปลี่ยนสีของแต่ละ Place บนแผนที่ได้อย่างอิสระ
📍 PUT /open-api/v1/map/{id}
ส่วนหัวของคำขอ (Request Header)
| คีย์ | ค่า | คำอธิบาย |
|---|---|---|
| api-key | {YOUR_API_Key} |
พารามิเตอร์พาธ (Path Parameter)
| คีย์ | ค่า | คำอธิบาย |
|---|---|---|
| Place ID | {YOUR_Place_ID} | ID เฉพาะของ Place |
🎨 Request Body สำหรับเปลี่ยนสี Place บนแผนที่
※ เพิ่ม properties ในฟิลด์ที่ต้องการแก้ไข
200
{
"properties" : {
"color" : "#4000fe",
"icon" : "🚀",
"name" : "rocket"
}
}
💻 ตัวอย่าง cURL แก้ไข map color
curl --location --request PUT 'https://space.api-freegrow.com/open-api/v1/map/a3'
--header 'api-key: {YOUR_API_KEY}'
--header 'Content-Type: application/json'
--data '{
"properties" : {
"color" : "#4000fe",
"icon" : "🚀",
"name" : "rocket"
}
}'
เอกสารที่เกี่ยวข้อง
- คู่มือทั่วไป GrowStudio API
- เรียก Place UID List
- เรียก Details ตาม Place UID
- แก้ไข Details ตาม Place UID
- เรียก Project geojson
- เรียก geojson ตามชั้น
หากต้องการทราบวิธีใช้บริการ ดูคู่มือ GrowStudio ได้ที่นี่