การอัปเดตข้อมูลเมตาของชุดข้อมูล
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
อัปเดตชุดข้อมูล
ส่งคำขออัปเดตข้อมูลเมตาของชุดข้อมูล
อัปเดตชื่อ
curl -X PATCH -d '{
"display_name": "DISPLAY_NAME"
}' \
-H 'X-Goog-User-Project: PROJECT_NUMBER' \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
https://mapsplatformdatasets.googleapis.com/v1alpha/projects/PROJECT_NUMBER/datasets/DATASET_ID
คำขอตัวอย่าง
curl -X PATCH -d '{
"display_name": "My Updated Dataset"
}' \
-H 'X-Goog-User-Project: PROJECT_NUMBER' \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
https://mapsplatformdatasets.googleapis.com/v1alpha/projects/802317041956/datasets/f57074a0-a8b6-403e-9df1-e8a9e4f9fc46
ตัวอย่างการตอบกลับ
{
"name": "projects/802317041956/datasets/f57074a0-a8b6-403e-9df1-e8a9e4f9fc46",
"displayName": "My Updated Dataset",
"usage": [
"USAGE_DATA_DRIVEN_STYLING"
],
"createTime": "2022-08-15T17:50:00.189682Z",
"updateTime": "2023-01-27T21:20:19.847394Z"
}
อัปเดตคำอธิบาย
curl -X PATCH -d '{
"description": "DESCRIPTION"
}' \
-H 'X-Goog-User-Project: PROJECT_NUMBER' \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
https://mapsplatformdatasets.googleapis.com/v1alpha/projects/PROJECT_NUMBER/datasets/DATASET_ID
ตัวอย่างคำขอ
curl -X PATCH -d '{
"description": "This is an updated description"
}' \
-H 'X-Goog-User-Project: PROJECT_NUMBER' \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
https://mapsplatformdatasets.googleapis.com/v1alpha/projects/802317041956/datasets/f57074a0-a8b6-403e-9df1-e8a9e4f9fc46
ตัวอย่างการตอบกลับ
{
"name": "projects/802317041956/datasets/f57074a0-a8b6-403e-9df1-e8a9e4f9fc46",
"displayName": "My Dataset",
"description": "This is an updated description",
"usage": [
"USAGE_DATA_DRIVEN_STYLING"
],
"createTime": "2022-08-15T17:50:00.189682Z",
"updateTime": "2023-01-27T21:20:19.847394Z"
}
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-11-10 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2024-11-10 UTC"],[[["This document explains how to update the metadata of a dataset, specifically the display name and description."],["To update the dataset, you need to send a PATCH request to the specified endpoint with the updated information in JSON format."],["The request requires authorization using a bearer token and specifying the project number."],["Sample requests and responses are provided to illustrate the process of updating the display name and description."],["The response includes details about the dataset, including its name, display name, description, usage, creation time, and update time."]]],["To update a dataset's metadata, send a PATCH request to the specified API endpoint. The request must include project number, dataset ID, content type, and an authorization token. To change the dataset name, modify the \"display_name\" field in the request body. To modify the dataset description, alter the \"description\" field instead. Successful updates return dataset details, including the modified name or description and updated timestamp.\n"]]