v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13111427.2 KB
accounts

Creates an account with the specified name and type under the given parent. - Personal accounts and Organizations cannot be created. - User Groups cannot be created with a Personal account as primary owner. - Location Groups cannot be created with a primary owner of a Personal account if the Personal account is in an Organization. - Location Groups cannot own Location Groups.

post/v1/accounts

Request body

vettedState'VETTED_STATE_UNSPECIFIED' | 'NOT_VETTED' | 'VETTED' | 'INVALID'

Output only. Indicates whether the account is vetted by Google. A vetted account is able to verify locations via the VETTED_PARTNER method.

verificationState'VERIFICATION_STATE_UNSPECIFIED' | 'VERIFIED' | 'UNVERIFIED' | 'VERIFICATION_REQUESTED'

Output only. If verified, future locations that are created are automatically connected to Google Maps, and have Google+ pages created, without requiring moderation.

type'ACCOUNT_TYPE_UNSPECIFIED' | 'PERSONAL' | 'LOCATION_GROUP' | 'USER_GROUP' | 'ORGANIZATION'

Required. Contains the type of account. Accounts of type PERSONAL and ORGANIZATION cannot be created using this API.

primaryOwnerstring

Required. Input only. The resource name of the account which will be the primary owner of the account being created. It should be of the form accounts/{account_id}.

permissionLevel'PERMISSION_LEVEL_UNSPECIFIED' | 'OWNER_LEVEL' | 'MEMBER_LEVEL'

Output only. Specifies the permission level the user has for this account.

accountNamestring

Required. The name of the account. For an account of type PERSONAL, this is the first and last name of the user account.

role'ACCOUNT_ROLE_UNSPECIFIED' | 'PRIMARY_OWNER' | 'OWNER' | 'MANAGER' | 'SITE_MANAGER'

Output only. Specifies the AccountRole of this account.

namestring

Immutable. The resource name, in the format accounts/{account_id}.

accountNumberstring

Output only. Account reference number if provisioned.

Response

Successful response