Method: accounts.locations.create

  • Creates a new location owned by a specified account and returns the location data upon successful creation.

  • The endpoint utilizes a POST request to https://mybusiness.googleapis.com/v4/{parent=accounts/*}/locations with path and query parameters for customization.

  • Requires a request body containing a Location object and responds with the newly created Location object if successful.

  • Authorization is necessary using OAuth scopes like https://www.googleapis.com/auth/plus.business.manage or https://www.googleapis.com/auth/business.manage.

Creates a new location owned by the specified account, and returns it.

HTTP request

POST https://mybusiness.googleapis.com/v4/{parent=accounts/*}/locations

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

The name of the account in which to create this location.

Query parameters

Parameters
validateOnly

boolean

If true, the request is validated without actually creating the location.

requestId

string

A unique request ID for the server to detect duplicated requests. We recommend using UUIDs. Max length is 50 characters.

Request body

The request body contains an instance of Location.

Response body

If successful, the response body contains a newly created instance of Location.

Authorization Scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/plus.business.manage
  • https://www.googleapis.com/auth/business.manage

For more information, see the OAuth 2.0 Overview.