Update a place action link on your business listing
google-business-profile.x.placeactions-mybusinessplaceactions-locations-placeactionlinks-patchplaceActionLinks.patch — Updates the specified place action link and returns it.
- Price
- freeAu prix du fournisseur
- Success rate
- —Aucune donnée de taux de réussite pour le momentAucune donnée de taux de réussite pour le moment
- Latency p50
- ——
- Last verified
- —Not verified yet
PATCHhttps://toolswitch.dev/v1/tools/google-business-profile.x.placeactions-mybusinessplaceactions-locations-placeactionlinks-patchPreview- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de chemin | ||||
name | chaîne | Obligatoire | Optional. The resource name, in the format `locations/{location_id}/placeActionLinks/{place_action_link_id}`. The name field will only be considered in UpdatePlaceActionLink and DeletePlaceActionLink requests for updating and deleting links respectively. However, it will be ignored in CreatePlaceAct | |
| Paramètres de requête | ||||
updateMask | chaîne | Facultatif | Required. The specific fields to update. The only editable fields are `uri`, `place_action_type` and `is_preferred`. If the updated link already exists at the same location with the same `place_action_type` and `uri`, fails with an `ALREADY_EXISTS` error. | |
- Paramètres de chemin
namechaîneObligatoireOptional. The resource name, in the format `locations/{location_id}/placeActionLinks/{place_action_link_id}`. The name field will only be considered in UpdatePlaceActionLink and DeletePlaceActionLink requests for updating and deleting links respectively. However, it will be ignored in CreatePlaceAct
- Paramètres de requête
updateMaskchaîneFacultatifRequired. The specific fields to update. The only editable fields are `uri`, `place_action_type` and `is_preferred`. If the updated link already exists at the same location with the same `place_action_type` and `uri`, fails with an `ALREADY_EXISTS` error.
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
curl -X PATCH 'https://toolswitch.dev/v1/tools/google-business-profile.x.placeactions-mybusinessplaceactions-locations-placeactionlinks-patch' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"PATCH",
"https://toolswitch.dev/v1/tools/google-business-profile.x.placeactions-mybusinessplaceactions-locations-placeactionlinks-patch",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/google-business-profile.x.placeactions-mybusinessplaceactions-locations-placeactionlinks-patch", {
method: "PATCH",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à free, frais de service inclus.