Method: properties.dataStreams.measurementProtocolSecrets.patch
Cập nhật khoá bí mật của Measurement Protocol.
Yêu cầu HTTP
PATCH https://analyticsadmin.googleapis.com/v1beta/{measurementProtocolSecret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Thông số |
measurementProtocolSecret.name |
string
Chỉ có đầu ra. Tên tài nguyên của khoá bí mật này. Khoá bí mật này có thể là phần tử con của bất kỳ loại luồng nào. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
|
Tham số truy vấn
Thông số |
updateMask |
string (FieldMask format)
Bắt buộc. Danh sách các trường cần cập nhật. Các trường bị bỏ qua sẽ không được cập nhật. Đây là danh sách tên đủ điều kiện của các trường được phân tách bằng dấu phẩy. Ví dụ: "user.displayName,photo"
|
Nội dung yêu cầu
Nội dung yêu cầu chứa một bản sao của MeasurementProtocolSecret
.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một phiên bản của MeasurementProtocolSecret
.
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/analytics.edit
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-01-14 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-01-14 UTC."],[[["Updates an existing measurement protocol secret using a PATCH request to a specific endpoint."],["Requires specifying the measurement protocol secret's resource name in the path parameter."],["Allows selective field updates via the `updateMask` query parameter."],["Uses a `MeasurementProtocolSecret` object in the request body to define the updates and returns the same object type in the response if successful."],["Needs authorization with the `https://www.googleapis.com/auth/analytics.edit` scope."]]],["This outlines how to update a measurement protocol secret using a `PATCH` request to the specified URL. The URL utilizes gRPC Transcoding syntax and includes a path parameter `measurementProtocolSecret.name`. A `updateMask` query parameter is required to specify which fields to update. The request and response bodies both use the `MeasurementProtocolSecret` resource. Authorization requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope.\n"]]