Memperbarui Metadata Set Data
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Memperbarui Set Data
Kirim permintaan untuk memperbarui metadata set data.
Perbarui nama
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
Contoh Permintaan
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
Contoh Respons
{
"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"
}
Memperbarui deskripsi
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
Contoh Permintaan
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
Contoh Respons
{
"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"
}
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-11-10 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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"]]