Method: properties.keyEvents.create
Erstellt ein Schlüsselereignis.
HTTP-Anfrage
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/keyEvents
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
parent |
string
Erforderlich. Der Ressourcenname der übergeordneten Property, in der dieses Schlüsselereignis erstellt wird. Format: Properties/123
|
Anfragetext
Der Anfragetext enthält eine Instanz von KeyEvent
.
Antworttext
Bei Erfolg enthält der Antworttext eine neu erstellte Instanz von KeyEvent
.
Autorisierungsbereiche
Erfordert den folgenden OAuth-Bereich:
https://www.googleapis.com/auth/analytics.edit
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-05-06 (UTC).
[null,null,["Zuletzt aktualisiert: 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"]]