Method: properties.customMetrics.patch
একটি সম্পত্তিতে একটি CustomMetric আপডেট করে।
HTTP অনুরোধ
PATCH https://analyticsadmin.googleapis.com/v1alpha/{customMetric.name=properties/*/customMetrics/*}
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
পাথ প্যারামিটার
পরামিতি |
---|
custom Metric. name | string শুধুমাত্র আউটপুট। এই CustomMetric সম্পদের জন্য সম্পদের নাম। বিন্যাস: বৈশিষ্ট্য/{property}/customMetrics/{customMetric} |
ক্যোয়ারী প্যারামিটার
পরামিতি |
---|
update Mask | string ( FieldMask format) প্রয়োজন। ক্ষেত্রগুলির তালিকা আপডেট করা হবে। বাদ দেওয়া ক্ষেত্র আপডেট করা হবে না। সম্পূর্ণ সত্তা প্রতিস্থাপন করতে, সমস্ত ক্ষেত্রের সাথে মেলে "*" স্ট্রিং সহ একটি পথ ব্যবহার করুন৷ এটি ক্ষেত্রগুলির সম্পূর্ণরূপে যোগ্য নামের একটি কমা দ্বারা পৃথক করা তালিকা৷ উদাহরণ: "user.displayName,photo" । |
শরীরের অনুরোধ
অনুরোধের মূল অংশে CustomMetric
এর একটি উদাহরণ রয়েছে।
প্রতিক্রিয়া শরীর
সফল হলে, প্রতিক্রিয়া বডিতে CustomMetric
এর একটি উদাহরণ থাকে।
অনুমোদনের সুযোগ
নিম্নলিখিত OAuth সুযোগ প্রয়োজন:
-
https://www.googleapis.com/auth/analytics.edit
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-01-14 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-01-14 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["This documentation outlines how to update a CustomMetric on a Google Analytics 4 property using an HTTP PATCH request."],["The request requires specifying the CustomMetric resource name in the path and uses a FieldMask in the query parameter to indicate fields to be updated."],["The request body should contain the updated CustomMetric data, and a successful response will return the updated CustomMetric object."],["Users need the `https://www.googleapis.com/auth/analytics.edit` authorization scope to perform this operation."]]],["This document outlines the process for updating a CustomMetric on a property using a PATCH request to `https://analyticsadmin.googleapis.com/v1alpha/{customMetric.name=properties/*/customMetrics/*}`. It details that the `customMetric.name` is a path parameter specifying the resource. The `updateMask` query parameter dictates which fields to modify. The request and response bodies use the `CustomMetric` instance. Editing requires the `https://www.googleapis.com/auth/analytics.edit` authorization scope.\n"]]