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} 。 name 字段只会分别应用于用于更新和删除链接的 placeActionLinks.patch 和 placeActionLinks.delete 请求。不过,在 placeActionLinks.create 请求中,系统会忽略它。在该请求中,place_action_link_id 将在成功创建新链接后由服务器分配,并作为响应的一部分返回。
|
查询参数
参数 |
updateMask |
string (FieldMask format)
必需。要更新的特定字段。仅有的可修改字段为 uri 、placeActionType 和 isPreferred 。如果更新后的关联已存在且具有相同 placeActionType 和 uri 的关联,则会失败并显示 ALREADY_EXISTS 错误。 这是以逗号分隔的完全限定字段名称列表。示例:"user.displayName,photo" 。
|
请求正文
请求正文包含一个 PlaceActionLink
实例。
响应正文
如果成功,则响应正文包含一个 PlaceActionLink
实例。
授权范围
需要以下 OAuth 作用域:
https://www.googleapis.com/auth/business.manage
有关详情,请参阅 OAuth 2.0 概览。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eUpdates a specified place action link with provided details and returns the updated link.\u003c/p\u003e\n"],["\u003cp\u003eUses the PATCH HTTP request method and requires a \u003ccode\u003eplaceActionLink.name\u003c/code\u003e path parameter.\u003c/p\u003e\n"],["\u003cp\u003eRequires an \u003ccode\u003eupdateMask\u003c/code\u003e query parameter indicating the fields to be updated.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain a \u003ccode\u003ePlaceActionLink\u003c/code\u003e object and a successful response will return the updated \u003ccode\u003ePlaceActionLink\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eRequires \u003ccode\u003ehttps://www.googleapis.com/auth/business.manage\u003c/code\u003e authorization scope for access.\u003c/p\u003e\n"]]],["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"],null,["# Method: locations.placeActionLinks.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\nUpdates the specified place action link and returns it.\n\n### HTTP request\n\n`PATCH https://mybusinessplaceactions.googleapis.com/v1/{placeActionLink.name=locations/*/placeActionLinks/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `placeActionLink.name` | `string` Optional. The resource name, in the format `locations/{locationId}/placeActionLinks/{place_action_link_id}`. The name field will only be considered in placeActionLinks.patch and placeActionLinks.delete requests for updating and deleting links respectively. However, it will be ignored in placeActionLinks.create request, where `place_action_link_id` will be assigned by the server on successful creation of a new link and returned as part of the response. |\n\n### Query parameters\n\n| Parameters ||\n|--------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `updateMask` | `string (`[FieldMask](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask)` format)` Required. The specific fields to update. The only editable fields are `uri`, `placeActionType` and `isPreferred`. If the updated link already exists at the same location with the same `placeActionType` and `uri`, fails with an `ALREADY_EXISTS` 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 [PlaceActionLink](/my-business/reference/placeactions/rest/v1/locations.placeActionLinks#PlaceActionLink).\n\n### Response body\n\nIf successful, the response body contains an instance of [PlaceActionLink](/my-business/reference/placeactions/rest/v1/locations.placeActionLinks#PlaceActionLink).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/business.manage`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]