POSTapi.synup.com/api/v4/locations/create/gmb-listing
Create GMB Listing
Create a GMB listing for the location with ID TG9jYXRpb246MTQwNTU= and connect it to a Google account
Requires an API key. Send it as
Authorization: API <your-key> — see Getting started.Parameters
Query
| Name | Type | Required | Description |
|---|---|---|---|
locationId | string | required | The ID of the location for which GMB listing will be created. Encoded format |
connectedAccountId | string | required | The ID of the connected Google account to associate with the listing |
folderId | string | optional | The Google My Business folder ID where the listing should be created. You can get this ID from the List folders endpoint. If not provided, it will create under Ungrouped (Primary Group) |
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Content-Type | string | optional |
Request
Request
curl -X POST 'https://api.synup.com/api/v4/locations/create/gmb-listing?locationId=&connectedAccountId=&folderId=' \
-H 'Authorization: API YOUR_API_KEY' \
-H 'Content-Type: application/json'const res = await fetch('https://api.synup.com/api/v4/locations/create/gmb-listing?locationId=&connectedAccountId=&folderId=', {
method: 'POST',
headers: {
Authorization: 'API YOUR_API_KEY',
'Content-Type': 'application/json',
},
});
const data = await res.json();import requests
res = requests.post(
"https://api.synup.com/api/v4/locations/create/gmb-listing?locationId=&connectedAccountId=&folderId=",
headers={
"Authorization": "API YOUR_API_KEY",
"Content-Type": "application/json",
},
)
data = res.json()req, _ := http.NewRequest("POST", "https://api.synup.com/api/v4/locations/create/gmb-listing?locationId=&connectedAccountId=&folderId=", nil)
req.Header.Set("Authorization", "API YOUR_API_KEY")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)Responses
| Status | Description |
|---|---|
200 |
Example response
{
"data": {
"createGmbListingForLocation": {
"success": true,
"errors": null
}
}
}Response body
| Name | Type | Required | Description |
|---|---|---|---|
data | object | required | |
data.createGmbListingForLocation | object | required | |
data.createGmbListingForLocation.success | boolean | required | |
data.createGmbListingForLocation.errors | null | required |