My Business
2.2K members online now
2.2K members online now
For developers who are using the Google My Business API to manage locations
Guide Me
star_border
Reply

400 INVALID_ARGUMENT when patching photos using V3 in C#

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Getting error while using patch command to update photos. Actually I am using c# class library for updating photos in location. But getting 400 error while executing  patch command. So, I have tried playground to get detailed information. Below is the error.

As, per my knowledge name is correct. Then what is wrong in this.

 

{
 
"error": {
   
"status": "INVALID_ARGUMENT",
   
"message": "Request contains an invalid argument.",
   
"code": 400,
   
"details": [
     
{
       
"errorDetails": [
         
{
           
"field": "location.name",
           
"message": "location.name is invalid",
           
"code": 7,
           
"value": "accounts/1032681xxxxxxxxxx937/locations/505xxxxxxxxxx090837"
         
}
       
],
       
"@type": "type.googleapis.com/google.mybusiness.v3p1.ValidationError"
     
}
   
]
 
}
}

 

Thanks.

1 Expert replyverified_user

Re: 400 INVALID_ARGUMENT when patching photos using V3 in C#

Google Employee
# 2
Google Employee

Hi @ICE P,

 

Can you provide us with the full HTTP request message of the POST request including the URI, and the JSON payloads of request body as well as the response body for triggering this error so that we can help you troubleshoot this issue further.

 

Thanks,

Shalini