Method: accounts.languages.productCertifications.patch
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
更新(如果 allow_missing = true,则创建)将认证与产品相关联的产品认证。
此方法只能由认证机构调用。
HTTP 请求
PATCH https://manufacturers.googleapis.com/v1/{productCertification.name=accounts/*/languages/*/productCertifications/*}
网址采用 gRPC 转码语法。
路径参数
参数 |
productCertification.name |
string
必需。商品认证的唯一名称标识符 格式:accounts/{account}/languages/{language_code}/productCertifications/{id} 其中 id 是某个唯一标识符,language_code 是 https://support.google.com/merchants/answer/160637 中列出的购物支持语言的 2 字母 ISO 639-1 代码。
|
查询参数
参数 |
updateMask |
string (FieldMask format)
可选。要根据 aip.dev/134 更新的字段的列表。不过,目前仅支持完整更新。因此,可以忽略此字段,也可以将其设置为“*”。如果设置为任何其他值,系统将返回 UNIMPLEMENTED 错误。 这是完全限定字段名称的逗号分隔列表。示例:"user.displayName,photo" 。
|
响应正文
如果成功,则响应正文包含一个 ProductCertification
实例。
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/manufacturercenter
如需了解详情,请参阅 OAuth 2.0 Overview。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-17。
[null,null,["最后更新时间 (UTC):2025-08-17。"],[[["\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)."]]