AI-generated Key Takeaways
- 
          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/*}/locationswith path and query parameters for customization.
- 
          Requires a request body containing a Locationobject and responds with the newly createdLocationobject if successful.
- 
          Authorization is necessary using OAuth scopes like https://www.googleapis.com/auth/plus.business.manageorhttps://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 | 
 The name of the account in which to create this location. | 
Query parameters
| Parameters | |
|---|---|
| validateOnly | 
 If true, the request is validated without actually creating the location. | 
| requestId | 
 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.