Community
Showing results for 
Search instead for 
Do you mean 
Reply

400 Bad Request for Contacts Update API

Accepted Solution Solved
Highlighted
New Member
Posts: 3
Country: India
Accepted Solution

400 Bad Request for Contacts Update API

Hi,

 

I am trying to just update the Company details for one of the contact using Contact Patch API. 

Below is the request json.

{

    "company": " CDats Software India"

}

 

Please let me know, what is wrong with the request.

 


Accepted Solutions
Highlighted
Solution
Accepted by topic author anujaa
‎01-15-2020 06:14 AM
Nickel Super Contributor
Posts: 536
Country: Canada

Re: 400 Bad Request for Contacts Update API

I asked one of our developers to reply to your inquiry, and this is what he said...

 

Patch API requires 'id' in the json request, Include id as well it should work, and make sure to use /api/contacts/3545deeb-xxxx-xxxx0-807f-750c23803732 end point.

 

Sample json
{
company = "CDats Software India ";
id = "3545deeb-xxxx-xxxx-807f-750c23803732";

 

I hope this helps.

 

Kq\

 

Ken Quigley, BA, MCSE, ACC, APT
Toronto, Ontario
www.keystroke.ca

View solution in original post


All Replies
Highlighted
New Member
Posts: 3
Country: India

Re: 400 Bad Request for Contacts Update API

Can someone please help me out?
Highlighted
Solution
Accepted by topic author anujaa
‎01-15-2020 06:14 AM
Nickel Super Contributor
Posts: 536
Country: Canada

Re: 400 Bad Request for Contacts Update API

I asked one of our developers to reply to your inquiry, and this is what he said...

 

Patch API requires 'id' in the json request, Include id as well it should work, and make sure to use /api/contacts/3545deeb-xxxx-xxxx0-807f-750c23803732 end point.

 

Sample json
{
company = "CDats Software India ";
id = "3545deeb-xxxx-xxxx-807f-750c23803732";

 

I hope this helps.

 

Kq\

 

Ken Quigley, BA, MCSE, ACC, APT
Toronto, Ontario
www.keystroke.ca
Highlighted
New Member
Posts: 3
Country: India

Re: 400 Bad Request for Contacts Update API

Thanks Ken for replying. I figured this out a while back.