Search code examples
google-my-business-api

I can't make post. Creates a new local post associated with the specified location. google my business API


I'am trying to make post to google map location by accounts.locations.localPosts.create

Done steps

  • Set up credentials(https://console.cloud.google.com/ configuration )

  • Did successful steps OAuth 2.0 Playground Google developers

  • Step 1. Select & authorize APIs with https://www.googleapis.com/auth/business.manage(successful)

  • Step 2. Exchange authorization code for tokens (successful)

  • Step 3. Configure request to API POST https://mybusiness.googleapis.com/v4/Ch3JWaJf0g43zUARwtG3wplmUM/localPosts(404 Not Found)

enter image description here

POST https://mybusiness.googleapis.com/v4/My location/localPosts - (404 Not Found also if I use name of location)


Solution

  • Your resource path does not match the expected pattern - it should be https://mybusiness.googleapis.com/v4/accounts/{{LOCATION_GROUP_ID}}/locations/{{LOCATION_ID}}/localPosts