Method: locations.placeActionLinks.patch
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
עדכון הקישור שצוין לגבי הפעולה לגבי המקום ומחזיר אותו.
בקשת HTTP
PATCH https://mybusinessplaceactions.googleapis.com/v1/{placeActionLink.name=locations/*/placeActionLinks/*}
בכתובת ה-URL נעשה שימוש בתחביר המרת gRPC.
פרמטרים של נתיב
פרמטרים |
placeActionLink.name |
string
אפשרות. שם המשאב, בפורמט locations/{locationId}/placeActionLinks/{place_action_link_id} . שדה השם ייכלל רק בבקשות 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.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[[["\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)."]]