Google 会使用 AI 技术将内容翻译成您偏好的语言。AI 翻译可能包含错误。
Method: locations.placeActionLinks.patch
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
HTTP 请求
PATCH https://mybusinessplaceactions.googleapis.com/v1/{placeActionLink.name=locations/*/placeActionLinks/*}
网址采用 gRPC 转码语法。
路径参数
| 参数 |
placeActionLink.name |
string
可选。资源名称,格式为 locations/{locationId}/placeActionLinks/{place_action_link_id}。 只有在 placeActionLinks.patch 和 placeActionLinks.delete 请求中,系统才会分别考虑使用 name 字段来更新和删除链接。不过,在 placeActionLinks.create 请求中,系统会忽略此字段,因为在成功创建新链接后,服务器会分配 place_action_link_id,并将其作为响应的一部分返回。
|
查询参数
| 参数 |
updateMask |
string (FieldMask format)
必需。要更新的特定字段。只有 uri、placeActionType、isPreferred 和 isDisabled 字段可修改。如果更新后的链接已存在于同一位置,且具有相同的 placeActionType 和 uri,则会失败并显示 ALREADY_EXISTS 错误。 这是完全限定字段名称的逗号分隔列表。示例:"user.displayName,photo"。
|
请求正文
请求正文包含一个 PlaceActionLink 实例。
响应正文
如果成功,则响应正文包含一个 PlaceActionLink 实例。
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/business.manage
如需了解详情,请参阅 OAuth 2.0 Overview。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2026-11-23。
[null,null,["最后更新时间 (UTC):2026-11-23。"],[],["This describes updating a place action link via a `PATCH` request to a specific URL: `https://mybusinessplaceactions.googleapis.com/v1/{placeActionLink.name=locations/*/placeActionLinks/*}`. Key actions include updating fields like `uri`, `placeActionType`, and `isPreferred` using the `updateMask` query parameter. The `placeActionLink.name` path parameter is necessary for identifying the link to modify. The request and response body use the `PlaceActionLink` resource. This operation requires `https://www.googleapis.com/auth/business.manage` authorization scope.\n"]]