I'm using Postman to test Quickbase API call - AddRecord. For someone reason, my POST request is generating an error 2. What do I need to correct?
AddRecord : (https://help.quickbase.com/api-guide/add_record.html)
Error 2 : (https://help.quickbase.com/api-guide/errorcodes.html)
I've tried using an apptoken in my call along with a usertoken. I've tried using FID instead of the field name. None my attempts to at a solution work.
<qdbapi>
<usertoken>MyUserToken</usertoken>
<field name="Last_Name">My Last Name</field>
<field name="First_Name">My First Name</field>
</qdbapi>
POST-ing to url https://myurlname.quickbase.com/db/DBID
Headers are:
Content-Type: application/xml
QUICKBASE-ACTION: API_AddRecord
I expect to receive
<qdbapi>
<action>API_AddRecord</action>
<errcode>0</errcode>
<errtext>No error</errtext>
...
</qdbapi>
but instead received
<qdbapi>
<action>API_AddRecord</action>
<errcode>2</errcode>
<errtext>Invalid input</errtext>
</qdbapi>
It seems I was using the wrong target_db_id. Simply changing it to the correct db_id resolved my issue.