My Business Account Management API에서는 비즈니스 계정 및 위치를 관리하는 사람을 관리자라고 합니다. 관리자가 계정 및 위치를 관리하는 방법을 자세히 알아보려면 비즈니스 프로필 계정 및 위치 그룹과 비즈니스 정보 세부정보 관리를 참고하세요.
계정 및 위치의 관리자는 다음 컬렉션으로 표시됩니다.
관리자의 리소스 경로는 다음과 같습니다.
accounts/{accountId}/admins/{adminId} locations/{locationId}/admins/{adminId}다음 작업을 수행할 수 있습니다.
계정 또는 위치의 관리자 나열
지정된 계정 또는 위치의 관리자를 나열합니다.
계정 관리자를 표시하는 방법
GET https://mybusiness.googleapis.com/v1/accounts/{accountId}/admins
위치의 관리자를 나열합니다.
GET https://mybusinessaccountmanagement.googleapis.com/v1/locations/{locationId}/admins
계정 또는 위치에 관리자 추가
다른 사용자를 계정 또는 위치의 관리자로 초대합니다. 초대 대상자의 이메일 주소를 Google 계정과 연결해야 합니다. 초대 대상자가 Google 계정을 사용하여 비즈니스 프로필에 로그인하면 변경하기 전에 이용약관에 동의하라는 메시지가 표시됩니다.
사용자를 계정 관리자로 초대하기
POST https://mybusinessaccountmanagement.googleapis.com/v1/accounts/{accountId}/admins
사용자를 특정 위치의 관리자로 초대하는 방법
POST https://mybusinessaccountmanagement.googleapis.com/v1/locations/{locationId}/admins { "role": "MANAGER", "adminName": "example@example.com" }
LocationGroup을 위치의 관리자로 초대하기
POST https://mybusinessaccountmanagement.googleapis.com/v1/locations/{locationId}/admins { "account": "LocationGroupID", "role": "MANAGER" }
계정 또는 위치에서 관리자 삭제
지정된 계정 또는 위치에서 관리자를 삭제합니다.
계정에서 관리자 삭제하기
DELETE https://mybusinessaccountmanagement.googleapis.com/v1/accounts/{accountId}/admins/{adminId}
위치에서 관리자 삭제하기
DELETE https://mybusinessaccountmanagement.googleapis.com/v1/accounts/locations/{locationId}/admins/{adminId}