Method: customers.devices.updateSigned
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
בקשת HTTP
PATCH https://sasportal.googleapis.com/v1alpha1/{name=customers/*/devices/*}:updateSigned
כתובת ה-URL משתמשת בתחביר של gRPC Transcoding.
פרמטרים של נתיב
פרמטרים |
name |
string
חובה. השם של המכשיר שרוצים לעדכן.
|
גוף הבקשה
גוף הבקשה מכיל נתונים עם המבנה הבא:
ייצוג ב-JSON |
{
"encodedDevice": string,
"installerId": string
} |
שדות |
encodedDevice |
string (bytes format)
חובה. אסימון ה-JSON Web Token שנחתם באמצעות מפתח פרטי של CPI. המטען הייעודי (payload) חייב להיות קידוד JSON של device . מחרוזת בקידוד Base64.
|
installerId |
string
חובה. מזהה ייחודי של מתקין (מזהה CPI) מתוך מסד הנתונים של מתקינים מקצועיים מוסמכים.
|
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכיל מופע של Device
.
היקפי הרשאות
נדרש היקף ההרשאות הבא של OAuth:
https://www.googleapis.com/auth/userinfo.email
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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 documentation outlines the process for updating a signed device using a `PATCH` request to the specified endpoint."],["The request requires path and body parameters, including device name, encoded device data, and installer ID."],["If successful, the response returns the updated device information."],["Authorization requires the `https://www.googleapis.com/auth/userinfo.email` scope."]]],["This document details updating a signed device via a PATCH request to `https://sasportal.googleapis.com/v1alpha1/{name=customers/*/devices/*}:updateSigned`. The request requires a `name` path parameter identifying the device. The request body, in JSON, includes `encodedDevice`, a base64-encoded, signed JSON Web Token representing the device, and `installerId`, a unique CPI ID. A successful response returns an instance of the updated `Device`. Authorization requires the `https://www.googleapis.com/auth/userinfo.email` OAuth scope.\n"]]