Change an admin's role on your business listing
google-business-profile.x.accountmanagement-mybusinessaccountmanagement-locations-admins-patchadmins.patch — Updates the Admin for the specified location. Only the AdminRole of the Admin can be updated.
- Price
- freeプロバイダー原価
- Success rate
- —成功率データはまだありません成功率データはまだありません
- Latency p50
- ——
- Last verified
- —Not verified yet
PATCHhttps://toolswitch.dev/v1/tools/google-business-profile.x.accountmanagement-mybusinessaccountmanagement-locations-admins-patchPreviewTry online近日公開Provider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| パスパラメータ | ||||
name | 文字列 | 必須 | Immutable. The resource name. For account admins, this is in the form: `accounts/{account_id}/admins/{admin_id}` For location admins, this is in the form: `locations/{location_id}/admins/{admin_id}` This field will be ignored if set during admin creation. | |
| クエリパラメータ | ||||
updateMask | 文字列 | 任意 | Required. The specific fields that should be updated. The only editable field is role. | |
- パスパラメータ
name文字列必須Immutable. The resource name. For account admins, this is in the form: `accounts/{account_id}/admins/{admin_id}` For location admins, this is in the form: `locations/{location_id}/admins/{admin_id}` This field will be ignored if set during admin creation.
- クエリパラメータ
updateMask文字列任意Required. The specific fields that should be updated. The only editable field is role.
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
Preview
curl -X PATCH 'https://toolswitch.dev/v1/tools/google-business-profile.x.accountmanagement-mybusinessaccountmanagement-locations-admins-patch' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"PATCH",
"https://toolswitch.dev/v1/tools/google-business-profile.x.accountmanagement-mybusinessaccountmanagement-locations-admins-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.accountmanagement-mybusinessaccountmanagement-locations-admins-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());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は free です。サービス料を含みます。