Method: accounts.languages.productCertifications.patch
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Cập nhật (hoặc tạo nếu allow_missing = true) một chứng nhận sản phẩm liên kết chứng nhận với sản phẩm.
Chỉ các tổ chức chứng nhận mới có thể gọi phương thức này.
Yêu cầu HTTP
PATCH https://manufacturers.googleapis.com/v1/{productCertification.name=accounts/*/languages/*/productCertifications/*}
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Thông số |
productCertification.name |
string
Bắt buộc. Giá trị nhận dạng tên duy nhất của chứng nhận sản phẩm Định dạng: accounts/{account}/languages/{language_code}/productCertifications/{id} Trong đó id là một giá trị nhận dạng duy nhất và language_code là mã ISO 639-1 gồm 2 chữ cái của một ngôn ngữ được Shopping hỗ trợ theo https://support.google.com/merchants/answer/160637.
|
Tham số truy vấn
Thông số |
updateMask |
string (FieldMask format)
Không bắt buộc. Danh sách các trường cần cập nhật theo aip.dev/134. Tuy nhiên, hiện tại, chúng tôi chỉ hỗ trợ bản cập nhật đầy đủ. Do đó, bạn có thể bỏ qua hoặc đặt giá trị này thành "*". Việc đặt bất kỳ giá trị nào khác sẽ trả về lỗi UNIMPLEMENTED. Đâ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 ProductCertification
.
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 ProductCertification
.
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/manufacturercenter
Để biết thêm thông tin, hãy xem OAuth 2.0 Overview.
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-08-17 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-17 UTC."],[[["\u003cp\u003eUpdates a product certification linking certifications with products, accessible only by certification bodies.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes an HTTP PATCH request with the format \u003ccode\u003ePATCH https://manufacturers.googleapis.com/v1/{productCertification.name=accounts/*/languages/*/productCertifications/*}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eRequires a request body containing a \u003ccode\u003eProductCertification\u003c/code\u003e instance for updating.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/manufacturercenter\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eReturns the updated \u003ccode\u003eProductCertification\u003c/code\u003e instance in the response body upon successful completion.\u003c/p\u003e\n"]]],[],null,["# Method: accounts.languages.productCertifications.patch\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nUpdates (or creates if allow_missing = true) a product certification which links certifications with products.\n\nThis method can only be called by certification bodies.\n\n### HTTP request\n\n`PATCH https://manufacturers.googleapis.com/v1/{productCertification.name=accounts/*/languages/*/productCertifications/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-----------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `productCertification.name` | `string` Required. The unique name identifier of a product certification Format: accounts/{account}/languages/{language_code}/productCertifications/{id} Where `id` is a some unique identifier and `language_code` is a 2-letter ISO 639-1 code of a Shopping supported language according to \u003chttps://support.google.com/merchants/answer/160637\u003e. |\n\n### Query parameters\n\n| Parameters ||\n|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `updateMask` | `string (`[FieldMask](https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask)` format)` Optional. The list of fields to update according to aip.dev/134. However, only full update is supported as of right now. Therefore, it can be either ignored or set to \"\\*\". Setting any other values will returns UNIMPLEMENTED error. This is a comma-separated list of fully qualified names of fields. Example: `\"user.displayName,photo\"`. |\n\n### Request body\n\nThe request body contains an instance of [ProductCertification](/manufacturers/reference/rest/v1/accounts.languages.productCertifications#ProductCertification).\n\n### Response body\n\nIf successful, the response body contains an instance of [ProductCertification](/manufacturers/reference/rest/v1/accounts.languages.productCertifications#ProductCertification).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/manufacturercenter`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]