Cập nhật siêu dữ liệu của tập dữ liệu
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Cập nhật tập dữ liệu
Gửi yêu cầu cập nhật siêu dữ liệu của tập dữ liệu.
Cập nhật tên
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
Yêu cầu mẫu
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
Phản hồi mẫu
{
"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"
}
Cập nhật nội dung mô tả
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
Yêu cầu mẫu
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
Phản hồi mẫu
{
"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"
}
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-11-10 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 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"]]