Avatar

New record being added instead of existing record being updated.

Dave Gilpin

When I try to update a record with the following json, it is adding a new record instead of updating.  Any ideas what might be causing this?

{"app":23,"records":[{"id":14,"record":{"issue":{"value":"testA"}}}]}

Follow 4 followers
0

6 comments

Avatar
Yuzo Arai 0 votes

Hello Dave,

Most  likely the id doesn't exist or possibly incorrect so that's why it's creating a new record.

0
Comment actions Permalink
Avatar
Dave Gilpin 0 votes

Definitely a record 14 (see below.)  Any other ideas?

 

0
Comment actions Permalink
Avatar
William Sayama 0 votes

Dave, could you share more details about the API request?

We can have a better overview if we know how you are sending the requests (for example, you may be using a POST request instead of a PUT request, but we can't tell yet from your info)

0
Comment actions Permalink
Avatar
Dave Gilpin 0 votes

Sure, I am doing a POST to kintone.com/k/v1/records.json with an API token, from outside kintone.

0
Comment actions Permalink
Avatar
Sean Tachibana 1 vote
Hello Dave,
 
As William mentioned above, could you try and use the PUT request instead of the POST request?
When you are trying to update the record, you must use the PUT request.
Let us know if you still have a problem after you have changed it.
Hope this helps.
1
Comment actions Permalink