Forum Discussion

DowenRobinson's avatar
DowenRobinson
Qrew Member
5 years ago

QuickBase API AddRecord Call

Hey, folks.
I'm a bit new to QuickBase so, if I'm making a beginner's mistake in not understanding what I'm missing, please forgive.
As you can tell by the title I'm testing the api call AddRecord via Postman.
This is what I'm request looks like:
<qdbapi>
  <usertoken>MyUserToken</usertoken>
  <field name="Last_Name">My Last Name</field>
  <field name="First_Name">My First Name</field>
</qdbapi>

I'm sending my POST request to https://myurlname.quickbase.com/db/DBID (obviously not the real URL)
with headers 
Content-Type: application/xml

QUICKBASE-ACTION: API_AddRecord​

This is what I'm expecting as a response:
<qdbapi>
 <action>API_AddRecord</action>
 <errcode>0</errcode>
 <errtext>No error</errtext>
 ...
</qdbapi>

But I'm getting this:
<qdbapi>
 <action>API_AddRecord</action>
 <errcode>2</errcode>
 <errtext>Invalid input</errtext>
</qdbapi>




------------------------------
Dowen Robinson
------------------------------

1 Reply

  • Try the field names in lowercase?

    <qdbapi>
      <usertoken>MyUserToken</usertoken>
      <field name="last_name">My Last Name</field>
      <field name="first_name">My First Name</field>
    </qdbapi>


    ------------------------------
    Everett Patterson
    ------------------------------