Method: properties.keyEvents.create
یک رویداد کلیدی ایجاد می کند.
درخواست HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/keyEvents
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
مولفه های |
---|
parent | string ضروری. نام منبع ویژگی والد که این رویداد کلیدی در آن ایجاد خواهد شد. فرمت: خواص/123 |
درخواست بدن
بدنه درخواست شامل یک نمونه از KeyEvent
است.
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی یک نمونه جدید از KeyEvent
است.
محدوده مجوز
به محدوده OAuth زیر نیاز دارد:
-
https://www.googleapis.com/auth/analytics.edit
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-10-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-10-25 بهوقت ساعت هماهنگ جهانی."],[[["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"]]