Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
REST API: Error with PATCH/PUT
We are successfully doing POST requests to create new entities in NetSuite (eg. create a new Contact), but we are getting an error message when trying to modify an existing Contact with either a PATCH or PUT request (according to the documentation both should be valid).
The data we are sending:
{
"email":"3m@3m.com",
"firstName":"Prasanna",
"lastName":"Mehta",
"isinactive":false,
"mobilePhone":"526 8426 1095",
"url":"https:\/\/google.com",
"companyname":"3MM2",
"entityId":"3MM2",
"subsidiary":{"id":"1"}
}
(we have tried both in JSON and Array format)
The response we are receiving:
{
"type":"https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1",
"title":"Bad Request",
Tagged:
0