Search code examples
google-my-business-api

My Business Q&A API - delete answer returns 404


Migrating from 4.9 to the new My Business Q&A API I'm having trouble upon answer deletion (method).

My code:

    $client = $this->initGoogleClient($refreshToken);
    $gmbService = new MyBusinessQA($client);
    $gmbService->locations_questions->deleteAnswers($question->name);

$question->name is in the format of locations/locationID/questions/questionID.

Response is 404, Requested entity was not found yet I can see that this particular answer is live, I'm also retrieving it from the API.

I believe this is either a bug or I'm missing something.


Solution

  • This is a bug, I can reproduce it. Please report it to the Google Business Profile API Support.