Method: nodes.devices.patch
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
คำขอ HTTP
PATCH https://sasportal.googleapis.com/v1alpha1/{device.name=nodes/*/devices/*}
URL ใช้ไวยากรณ์การแปลงรหัส gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
device.name |
string
เอาต์พุตเท่านั้น ชื่อเส้นทางทรัพยากร
|
พารามิเตอร์การค้นหา
พารามิเตอร์ |
updateMask |
string (FieldMask format)
ฟิลด์ที่จะอัปเดต รายการชื่อฟิลด์ที่สมบูรณ์ในตัวเองซึ่งคั่นด้วยจุลภาค ตัวอย่าง: "user.displayName,photo"
|
เนื้อความของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ Device
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ Device
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/userinfo.email
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 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"]],["อัปเดตล่าสุด 2025-07-25 UTC"],[[["This document explains how to update a device using the Spectrum Access System API with an HTTP PATCH request."],["It details the required HTTP request structure, including path and query parameters, request body format, and expected response."],["Authentication is necessary using the `https://www.googleapis.com/auth/userinfo.email` OAuth scope for successful device updates."],["The request body and successful response body both contain an instance of the `Device` object as defined in the provided link."]]],["This document details updating a device via a PATCH request to a specified URL endpoint. The URL structure is defined using gRPC Transcoding syntax, with a required `device.name` path parameter. An optional `updateMask` query parameter dictates which fields to update. The request body carries the updated device data, and a successful response returns the updated device information. Authorization requires the `https://www.googleapis.com/auth/userinfo.email` OAuth scope.\n"]]