עדכון המטא-נתונים של מערך הנתונים
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
עדכון מערך הנתונים
שולחים בקשה לעדכון המטא-נתונים של מערך הנתונים.
מעדכנים את השם.
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"
}
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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"]]