Method: properties.keyEvents.create
בקשת HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/keyEvents
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
פרמטרים של נתיב
פרמטרים |
parent |
string
חובה. שם המשאב של נכס ההורה שבו ייווצר האירוע המרכזי הזה. פורמט: properties/123
|
גוף הבקשה
גוף הבקשה מכיל מופע של KeyEvent
.
גוף התשובה
אם הפעולה בוצעה בהצלחה, גוף התגובה מכיל מופע חדש של KeyEvent
שנוצר.
היקפי הרשאות
נדרש היקף ההרשאות הבא של OAuth:
https://www.googleapis.com/auth/analytics.edit
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-05-06 (שעון UTC).
[null,null,["עדכון אחרון: 2024-05-06 (שעון UTC)."],[[["Creates a new Key Event within a specified Google Analytics 4 property."],["Requires `https://www.googleapis.com/auth/analytics.edit` authorization scope for execution."],["Utilizes an HTTP POST request to `https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/keyEvents`, specifying the parent property in the URL."],["Includes a request body containing the Key Event details as defined in the [KeyEvent](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.keyEvents#KeyEvent) schema."],["Upon successful completion, the response body provides the newly created Key Event instance, also adhering to the [KeyEvent](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.keyEvents#KeyEvent) schema."]]],["A `POST` request to `https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/keyEvents` creates a Key Event. The `parent` path parameter, formatted as `properties/123`, is required. The request body must contain a `KeyEvent` instance. A successful request returns the newly created `KeyEvent` in the response body. The `https://www.googleapis.com/auth/analytics.edit` OAuth scope is necessary for authorization. This API uses gRPC Transcoding syntax.\n"]]