Kirim permintaan DELETE
ke endpoint delete
untuk menghapus rute yang dipilih dari project Anda dan menghentikan pengumpulan data.
https://roads.googleapis.com/selection/v1/projects/PROJECT_NUMBER/selectedRoutes/SELECTED_ROUTE_ID
Permintaan harus menyertakan name
dari SelectedRoute
yang akan dihapus dan nomor project.
Contoh kode berikut menunjukkan struktur permintaan DELETE
ke endpoint
delete
:
curl -X DELETE \ -H 'X-Goog-User-Project: PROJECT_NUMBER' \ -H "Authorization: Bearer ACCESS_TOKEN" \ "https://roads.googleapis.com/selection/v1/projects/PROJECT_NUMBER/selectedRoutes/SELECTED_ROUTE_ID"
Jika berhasil, API akan menampilkan objek JSON kosong.