All calls should contain REST API key, which could be found in menu "API" at the top right of the page.
Result are returned in JSON or XML, depending on your request.
We`ll show a table with a result for each call. The URL will be shown in this way /apps.json, it means that you should call https://QuintaDB.com/apps.json in your application. Please notice that all calls should use https and you have to validate servers SSL certificate.
Such database attributes can be accessible via REST API.
Unique database identifier. You'll need this to access this database forms and records
nameName
created_atTime when database was created
updated_atTime when database was last updated (changed records or forms)
Number of entries in database
entities_countNumber of tables in database
properties_countNumber of columns in database
complex_appIs it a complex app, i.e. the app where data caching enabled. Returns true or false
complex_app_with_fresh_dataIs it a complex app and the data cache is fresh. Returns true or false
Get All Databases
your API key
pageDatabases paginated by 20 records per page. So if you have 100 databases, page can be 1..5.
JSON
MethodGET
URL/apps.json
Request body{"page":1,"rest_api_key":"API_KEY"}
Response: returns your current databases.
{"databases":[
{"id" : "aOWO_dVXHdHie1WeGFE8k2"
"name" : "Database Name 1",
"created_at" : "2021-08-16T05:42:40-05:00",
"updated_at" : "2021-08-16T05:42:40-05:00",
"dtypes_count" : 0,
"entities_count" : 1,
"properties_count": 0
},
{"id" : "aOWO3eVXHdHie1WeGFE8k2"
"name" : "Database Name 2",
"created_at" : "2021-04-29T01:26:22-05:00",
"updated_at" : "2021-08-16T00:47:56-05:00",
"dtypes_count" : 768,
"entities_count" : 6,
"properties_count": 240
} ]}
XML
MethodGET
URL/apps.xml
Request body
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<page>1</page>
<rest_api_key>API_KEY</rest_api_key>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<databases type="array">
<database>
<id>aOWO_dVXHdHie1WeGFE8k2</id>
<name>Database name 1</name>
<created-at type="datetime">2021-08-16T05:42:40-05:00</created-at>
<updated-at type="datetime">2021-08-16T05:42:40-05:00</updated-at>
<dtypes-count type="integer">0</dtypes-count>
<entities-count type="integer">1</entities-count>
<properties-count type="integer">0</properties-count>
</database>
<database>
<id>aOWO3eVXHdHie1WeGFE8k2</id>
<name>Database Name 2</name>
<created-at type="datetime">2021-04-29T01:26:22-05:00</created-at>
<updated-at type="datetime">2021-08-16T00:47:56-05:00</updated-at>
<dtypes-count type="integer">768</dtypes-count>
<entities-count type="integer">6</entities-count>
<properties-count type="integer">240</properties-count>
</database>
</databases>
Get Database by ID
your API key
APP_IDYou have to know your database identifier in order to fetch database information. You can find ID using Fetch All Databases call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/ID.json to /apps/aOWO_dVXHdHie1WeGFE8k2.json
JSON
MethodGET
URL/apps/APP_ID.json
Request body{"rest_api_key":"API_KEY"}
Response: returns database information
{"database":{
"id" : "aOWO_dVXHdHie1WeGFE8k2"
"name" : "Database Name 1",
"created_at" : "2011-08-16T05:42:40-05:00",
"updated_at" : "2011-08-16T05:42:40-05:00",
"dtypes_count" : 0,
"entities_count" : 1,
"properties_count": 0,
"complex_app?" : true,
"complex_app_with_fresh_data?" : false
}
}
XML
MethodGET
URL/apps/APP_ID.xml
Request body
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<database>
<id>aOWO_dVXHdHie1WeGFE8k2</id>
<name>Database name 1</name>
<created-at type="datetime">2011-08-16T05:42:40-05:00</created-at>
<updated-at type="datetime">2011-08-16T05:42:40-05:00</updated-at>
<dtypes-count type="integer">0</dtypes-count>
<entities-count type="integer">1</entities-count>
<properties-count type="integer">0</properties-count>
</database>
Get Database by Name
your API key
NameYou have to know your database name in order to fetch database information. You can find Name using Fetch All Databases call.
JSON
MethodGET
URL/apps/search.json
Request body{"rest_api_key":"API_KEY", "name":"Database Name 1"}
Response: returns database information
{"database":{
"id" : "aOWO_dVXHdHie1WeGFE8k2"
"name" : "Database Name 1",
"created_at" : "2021-08-16T05:42:40-05:00",
"updated_at" : "2021-08-16T05:42:40-05:00",
"dtypes_count" : 0,
"entities_count" : 1,
"properties_count": 0,
"complex_app?" : true,
"complex_app_with_fresh_data?" : false
}
}
XML
MethodGET
URL/apps/search.xml
Request body
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
<name>Database Name 1</name>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<database>
<id>aOWO_dVXHdHie1WeGFE8k2</id>
<name>Database name 1</name>
<created-at type="datetime">2021-08-16T05:42:40-05:00</created-at>
<updated-at type="datetime">2021-08-16T05:42:40-05:00</updated-at>
<dtypes-count type="integer">0</dtypes-count>
<entities-count type="integer">1</entities-count>
<properties-count type="integer">0</properties-count>
</database>
Update database
your API key
APP_IDYou have to know your database identifier in order to fetch database information. You can find ID using Fetch All Databases call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/ID.json to /apps/aOWO_dVXHdHie1WeGFE8k2.json
nameNew database name
JSON
MethodPUT
URL/apps/APP_ID.json
Request body{"rest_api_key":"API_KEY",
"name":"New database name"}
{"database":{
"id" : "aOWO_dVXHdHie1WeGFE8k2"
"name" : "New database name",
"created_at" : "2021-08-16T05:42:40-05:00",
"updated_at" : "2021-08-16T05:42:40-05:00",
"dtypes_count" : 0,
"entities_count" : 1,
"properties_count": 0,
"complex_app?" : true,
"complex_app_with_fresh_data?" : false
}
}
XML
MethodPUT
URL/apps/APP_ID.xml
Request body
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
<name>New database name</rest_api_key>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<database>
<id>aOWO_dVXHdHie1WeGFE8k2</id>
<name>New database name</name>
<created-at type="datetime">2021-08-16T05:42:40-05:00</created-at>
<updated-at type="datetime">2021-08-16T05:42:40-05:00</updated-at>
<dtypes-count type="integer">0</dtypes-count>
<entities-count type="integer">1</entities-count>
<properties-count type="integer">0</properties-count>
</database>
Delete Database
your API key
APP_IDYou have to know your database identifier in order to fetch database information. You can find ID using Fetch All Databases call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/ID.json to /apps/aOWO_dVXHdHie1WeGFE8k2.json
JSON
MethodDELETE
URL/apps/APP_ID.json
Request body{"rest_api_key":"API_KEY"}
Response
{"databases":[{
"id" : "aOWO_dVXHdHie1WeGFE8k2"
"name" : "Database Name 1",
"created_at" : "2011-08-16T05:42:40-05:00",
"updated_at" : "2011-08-16T05:42:40-05:00",
"dtypes_count" : 0,
"entities_count" : 1,
"properties_count": 0
},
{"id" : "aOWO3eVXHdHie1WeGFE8k2"
"name" : "Database Name 2",
"created_at" : "2011-04-29T01:26:22-05:00",
"updated_at" : "2011-08-16T00:47:56-05:00",
"dtypes_count" : 768,
"entities_count" : 6,
"properties_count": 240
} ]}
XML
MethodDELETE
URL/apps/APP_ID.xml
Request body
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<databases type="array">
<database>
<id>aOWO_dVXHdHie1WeGFE8k2</id>
<name>Database name 1</name>
<created-at type="datetime">2011-08-16T05:42:40-05:00</created-at>
<updated-at type="datetime">2011-08-16T05:42:40-05:00</updated-at>
<dtypes-count type="integer">0</dtypes-count>
<entities-count type="integer">1</entities-count>
<properties-count type="integer">0</properties-count>
</database>
<database>
<id>aOWO3eVXHdHie1WeGFE8k2</id>
<name>Database Name 2</name>
<created-at type="datetime">2011-04-29T01:26:22-05:00</created-at>
<updated-at type="datetime">2011-08-16T00:47:56-05:00</updated-at>
<dtypes-count type="integer">768</dtypes-count>
<entities-count type="integer">6</entities-count>
<properties-count type="integer">240</properties-count>
</database>
</databases>
Create Database
your API key
database_nameDatabase name
form_nameForm name. You can't create database without form. Because it doesn't make sense to have database without forms.
JSON
MethodPOST
URL/apps.json
Request body{"rest_api_key":"API_KEY", database_name: "Database 1", form_name: "Form 1"}
Response: returns database information
{"database":
{"id" : "aOWO_dVXHdHie1WeGFE8k2"
"name" : "Database Name 1",
"created_at" : "2011-08-16T05:42:40-05:00",
"updated_at" : "2011-08-16T05:42:40-05:00",
"dtypes_count" : 0,
"entities_count" : 1,
"properties_count": 0
}
}
XML
MethodPOST
URL/apps.xml
Request body
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
<database_name>Database 1</database_name>
<form_name>Form 1</form_name>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<database>
<id>aOWO_dVXHdHie1WeGFE8k2</id>
<name>Database name 1</name>
<created-at type="datetime">2011-08-16T05:42:40-05:00</created-at>
<updated-at type="datetime">2011-08-16T05:42:40-05:00</updated-at>
<dtypes-count type="integer">0</dtypes-count>
<entities-count type="integer">1</entities-count>
<properties-count type="integer">0</properties-count>
</database>
Such form attributes can be accessible via REST API.
Unique form identifier. You'll need this to access this form and form records
nameName
descDescription
post_actionList of email notifications recipients
Redirect to URL. This is the URL form submitter will be redirected to after filling the form.
positionForm position. It shows the order it will be fetched.
sort_byForm field ID by which records current sorted
asctrue or false. Which mean DESC or ASC sort order
per_pageHow many records fetched per page.
allow_deletetrue or false. When true, web users will be able to delete records from integrated database
allow_databasetrue or false. When true, web users will be able to see records on integrated database
send_emailstrue or false. Send or not to send email notifications about new submission.
new_widgetForm widget settings Hash
records_widgetDatabase widget settings Hash
settingsForm settings Hash
records_countForm records count
Fetch all database forms
your API key
APP_IDYou have to know your database identifier in order to fetch database information. You can find ID using Fetch All Databases call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/ID.json to /apps/aOWO_dVXHdHie1WeGFE8k2.json
JSON
MethodGET
URL/apps/APP_ID/entities.json
Request body{rest_api_key":"API_KEY"}
Response: fetch all database forms
{"forms":[
{
"id" : "aOWO_dVXHdHie1WeGFE8k2",
"app_id" : "aOWO3eVXHdHie1WeGFE8k2",
"name" : "Form Name 1",
"desc" : "Form description",
"post_action" : "email@email.com",
"position" : 0,
"sort_by" : null,
"asc" : false,
"per_page" : 10,
"allow_delete" : false,
"new_widget" : null,
"records_widget" : null,
"target_page" : null,
"allow_database" : true,
"send_emails" : true,
"settings" : null
},
{
"id" : "aOWO_dVXHdHie1WeGFE8k2",
"app_id" : "aOWO3eVXHdHie1WeGFE8k2",
"name" : "Form Name 1",
"desc" : "Form description",
"post_action" : "email@email.com",
"position" : 0,
"sort_by" : null,
"asc" : false,
"per_page" : 10,
"allow_delete" : false,
"new_widget" : null,
"records_widget" : null,
"target_page" : null,
"allow_database" : true,
"send_emails" : true,
"settings" : null
} ]}
XML
MethodGET
URL/apps/APP_ID/entities.xml
Request body
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<forms type="array">
<form>
<id>c7zH3cKWrnqQvbrG8Nd3C7</id>
<app-id>akFSkDDdncMyoKjGnWFmoE</app-id>
<name>Form1</name>
<desc nil="true"></desc>
<post-action>igor.petrushenko@gmail.com</post-action>
<position type="integer">0</position>
<sort-by nil="true"></sort-by>
<asc type="boolean">false</asc>
<per-page type="integer">10</per-page>
<allow-delete type="boolean">false</allow-delete>
<new-widget nil="true"></new-widget>
<records-widget nil="true"></records-widget>
<target-page nil="true"></target-page>
<allow-database type="boolean">true</allow-database>
<send-emails type="boolean">true</send-emails>
<settings nil="true"></settings>
</form>
<form>
<id>aszH3cKWrnqQvbrG8Nd3C7</id>
<app-id>ddFSkDDdncMyoKjGnWFmoE</app-id>
<name>Form2</name>
<desc nil="true"></desc>
<post-action>igor.petrushenko@gmail.com</post-action>
<position type="integer">0</position>
<sort-by nil="true"></sort-by>
<asc type="boolean">false</asc>
<per-page type="integer">10</per-page>
<allow-delete type="boolean">false</allow-delete>
<new-widget nil="true"></new-widget>
<records-widget nil="true"></records-widget>
<target-page nil="true"></target-page>
<allow-database type="boolean">true</allow-database>
<send-emails type="boolean">true</send-emails>
<settings nil="true"></settings>
</form>
</forms>
Get Form by ID
your API key
APP_IDYou have to know your database identifier in order to fetch database information. You can find ID using Fetch All Databases call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/ID.json to /apps/aOWO_dVXHdHie1WeGFE8k2.json
IDYou have to know your form identifier in order to fetch form information. You can find ID using Fetch All Forms call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/APP_ID/entities.json to /apps/aOWO_dVXHdHie1WeGFE8k2/entities.json
JSON
MethodGET
URL/apps/APP_ID/entities/ID.json
Request body{"rest_api_key":"API_KEY"}
Response: returns form information
{"form":
{"id" : "aOWO_dVXHdHie1WeGFE8k2",
"app_id" : "aOWO3eVXHdHie1WeGFE8k2",
"name" : "Form Name 1",
"desc" : "Form description",
"post_action" : "email@email.com",
"position" : 0,
"sort_by" : null,
"asc" : false,
"per_page" : 10,
"allow_delete" : false,
"new_widget" : null,
"records_widget" : null,
"target_page" : null,
"allow_database" : true,
"send_emails" : true,
"settings" : null
}
}
XML
MethodGET
URL/apps/APP_ID/entities/ID.xml
Request body
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<form>
<id>c7zH3cKWrnqQvbrG8Nd3C7</id>
<app-id>akFSkDDdncMyoKjGnWFmoE</app-id>
<name>Form1</name>
<desc nil="true"></desc>
<post-action>igor.petrushenko@gmail.com</post-action>
<position type="integer">0</position>
<sort-by nil="true"></sort-by>
<asc type="boolean">false</asc>
<per-page type="integer">10</per-page>
<allow-delete type="boolean">false</allow-delete>
<new-widget nil="true"></new-widget>
<records-widget nil="true"></records-widget>
<target-page nil="true"></target-page>
<allow-database type="boolean">true</allow-database>
<send-emails type="boolean">true</send-emails>
<settings nil="true"></settings>
</form>
Get Form by Name
your API key
database_nameYou have to know your database name in order to fetch database information. You can find Name using Fetch All Databases call.
form_nameYou have to know your form name in order to fetch form information. You can find Form Name using Fetch All Forms call.
JSON
MethodGET
URL/apps/search/entities/search.json
Request body{"rest_api_key":"API_KEY", "database_name": "Database 21", "form_name": "Form Name 1"}
Response: returns form information
{"form":
{"id" : "aOWO_dVXHdHie1WeGFE8k2",
"app_id" : "aOWO3eVXHdHie1WeGFE8k2",
"name" : "Form Name 1",
"desc" : "Form description",
"post_action" : "email@email.com",
"position" : 0,
"sort_by" : null,
"asc" : false,
"per_page" : 10,
"allow_delete" : false,
"new_widget" : null,
"records_widget" : null,
"target_page" : null,
"allow_database" : true,
"send_emails" : true,
"settings" : null
}
}
XML
MethodGET
URL/apps/search/entities/search.xml
Request body
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
<database_name>Database 21</database_name>
<form_name>Form1</form_name>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<form>
<id>c7zH3cKWrnqQvbrG8Nd3C7</id>
<app-id>akFSkDDdncMyoKjGnWFmoE</app-id>
<name>Form1</name>
<desc nil="true"></desc>
<post-action>igor.petrushenko@gmail.com</post-action>
<position type="integer">0</position>
<sort-by nil="true"></sort-by>
<asc type="boolean">false</asc>
<per-page type="integer">10</per-page>
<allow-delete type="boolean">false</allow-delete>
<new-widget nil="true"></new-widget>
<records-widget nil="true"></records-widget>
<target-page nil="true"></target-page>
<allow-database type="boolean">true</allow-database>
<send-emails type="boolean">true</send-emails>
<settings nil="true"></settings>
</form>
Update form
your API key
APP_IDYou have to know your database identifier in order to fetch database information. You can find ID using Fetch All Databases call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/ID.json to /apps/aOWO_dVXHdHie1WeGFE8k2.json
IDYou have to know your form identifier in order to fetch form information. You can find ID using Fetch All Forms call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/APP_ID/entities.json to /apps/aOWO_dVXHdHie1WeGFE8k2/entities.json
nameNew form name. See all available attributes here
JSON
MethodPUT
URL/apps/APP_ID/entities/ID.json
Request body{"rest_api_key":"API_KEY",
"name":"New form name"}
{"form":
{
"id" : "aOWO_dVXHdHie1WeGFE8k2",
"app_id" : "aOWO3eVXHdHie1WeGFE8k2",
"name" : "New form name",
"desc" : "Form description",
"post_action" : "email@email.com",
"position" : 0,
"sort_by" : null,
"asc" : false,
"per_page" : 10,
"allow_delete" : false,
"new_widget" : null,
"records_widget" : null,
"target_page" : null,
"allow_database" : true,
"send_emails" : true,
"settings" : null
}
}
XML
MethodPUT
URL/apps/APP_ID/entities/ID.xml
Request body
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
<name>New form name</name>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<form>
<id>c7zH3cKWrnqQvbrG8Nd3C7</id>
<app-id>akFSkDDdncMyoKjGnWFmoE</app-id>
<name>New form name</name>
<desc nil="true"></desc>
<post-action>igor.petrushenko@gmail.com</post-action>
<position type="integer">0</position>
<sort-by nil="true"></sort-by>
<asc type="boolean">false</asc>
<per-page type="integer">10</per-page>
<allow-delete type="boolean">false</allow-delete>
<new-widget nil="true"></new-widget>
<records-widget nil="true"></records-widget>
<target-page nil="true"></target-page>
<allow-database type="boolean">true</allow-database>
<send-emails type="boolean">true</send-emails>
<settings nil="true"></settings>
</form>
Delete form
your API key
APP_IDYou have to know your database identifier in order to fetch database information. You can find ID using Fetch All Databases call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/ID.json to /apps/aOWO_dVXHdHie1WeGFE8k2.json
IDYou have to know your database identifier. You can find APP_ID using Fetch All Forms call. Once you know it, you'll need to add this APP_ID to URL in the link below, i.e. change /apps/APP_ID/entities.json to /apps/aOWO_dVXHdHie1WeGFE8k2/entities.json
JSON
MethodDELETE
URL/apps/APP_ID/entities/ID.json
Request body{"rest_api_key":"API_KEY"}
Response
{"forms":[{"id" : "aOWO_dVXHdHie1WeGFE8k2",
"app_id" : "aOWO3eVXHdHie1WeGFE8k2",
"name" : "Form Name 1",
"desc" : "Form description",
"post_action" : "email@email.com",
"position" : 0,
"sort_by" : null,
"asc" : false,
"per_page" : 10,
"allow_delete" : false,
"new_widget" : null,
"records_widget" : null,
"target_page" : null,
"allow_database" : true,
"send_emails" : true,
"settings" : null
},
{ "id" : "aOWO_dVXHdHie1WeGFE8k2",
"app_id" : "aOWO3eVXHdHie1WeGFE8k2",
"name" : "Form Name 1",
"desc" : "Form description",
"post_action" : "email@email.com",
"position" : 0,
"sort_by" : null,
"asc" : false,
"per_page" : 10,
"allow_delete" : false,
"new_widget" : null,
"records_widget" : null,
"target_page" : null,
"allow_database" : true,
"send_emails" : true,
"settings" : null
} ]}
XML
MethodDELETE
URL/apps/APP_ID/entities/ID.xml
Request body
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<forms type="array">
<form>
<id>c7zH3cKWrnqQvbrG8Nd3C7</id>
<app-id>akFSkDDdncMyoKjGnWFmoE</app-id>
<name>Form1</name>
<desc nil="true"></desc>
<post-action>igor.petrushenko@gmail.com</post-action>
<position type="integer">0</position>
<sort-by nil="true"></sort-by>
<asc type="boolean">false</asc>
<per-page type="integer">10</per-page>
<allow-delete type="boolean">false</allow-delete>
<new-widget nil="true"></new-widget>
<records-widget nil="true"></records-widget>
<target-page nil="true"></target-page>
<allow-database type="boolean">true</allow-database>
<send-emails type="boolean">true</send-emails>
<settings nil="true"></settings>
</form>
<form>
<id>aszH3cKWrnqQvbrG8Nd3C7</id>
<app-id>ddFSkDDdncMyoKjGnWFmoE</app-id>
<name>Form2</name>
<desc nil="true"></desc>
<post-action>igor.petrushenko@gmail.com</post-action>
<position type="integer">0</position>
<sort-by nil="true"></sort-by>
<asc type="boolean">false</asc>
<per-page type="integer">10</per-page>
<allow-delete type="boolean">false</allow-delete>
<new-widget nil="true"></new-widget>
<records-widget nil="true"></records-widget>
<target-page nil="true"></target-page>
<allow-database type="boolean">true</allow-database>
<send-emails type="boolean">true</send-emails>
<settings nil="true"></settings>
</form>
</forms>
Create Form
your API key
APP_IDYou have to know your database identifier in order to fetch database information. You can find ID using Fetch All Databases call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/ID.json to /apps/aOWO_dVXHdHie1WeGFE8k2.json
nameForm name
JSON
MethodPOST
URL/apps/APP_ID/entities.json
Request body{"rest_api_key":"API_KEY", name: "New form"}
Response: returns form information
{"form":
{
"id" : "aOWO_dVXHdHie1WeGFE8k2",
"app_id" : "aOWO3eVXHdHie1WeGFE8k2",
"name" : "New form",
"desc" : "Form description",
"post_action" : "email@email.com",
"position" : 0,
"sort_by" : null,
"asc" : false,
"per_page" : 10,
"allow_delete" : false,
"new_widget" : null,
"records_widget" : null,
"target_page" : null,
"allow_database" : true,
"send_emails" : true,
"settings" : null
}
}
XML
MethodPOST
URL/apps/APP_ID/entities.xml
Request body
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
<name>New form</rest_api_key>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<form>
<id>c7zH3cKWrnqQvbrG8Nd3C7</id>
<app-id>akFSkDDdncMyoKjGnWFmoE</app-id>
<name>New form</name>
<desc nil="true"></desc>
<post-action>igor.petrushenko@gmail.com</post-action>
<position type="integer">0</position>
<sort-by nil="true"></sort-by>
<asc type="boolean">false</asc>
<per-page type="integer">10</per-page>
<allow-delete type="boolean">false</allow-delete>
<new-widget nil="true"></new-widget>
<records-widget nil="true"></records-widget>
<target-page nil="true"></target-page>
<allow-database type="boolean">true</allow-database>
<send-emails type="boolean">true</send-emails>
<settings nil="true"></settings>
</form>
Such field properties can be fetched via REST API.
Unique field identifier. You'll need this to access this field
entity_idField's form identifier.
nameName
type_nameField type name. Can by one of: string, text, integer, float, select, radio button, check box, date, dob, datetime, file, image, boolean, language, states, table, country, time_zone, note, divider, formula, autoincrement, login, password, signature, linked_column, rel, subform
Description
defaultDefault field value
validate_optionsField validation options
positionField position on form
visibleVisible field on integrated database widget? Can be true or false
sizeField size for
colsTable field columns
rowsTable field rows
Fetch all form fields
your API key
APP_IDYou have to know your database identifier in order to fetch database information. You can find ID using Fetch All Databases call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/ID.json to /apps/aOWO_dVXHdHie1WeGFE8k2.json
ENTITY_IDYou have to know your form identifier in order to fetch form information. You can find ID using Fetch All Forms call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/APP_ID/entities.json to /apps/aOWO_dVXHdHie1WeGFE8k2/entities.json
JSON
MethodGET
URL/apps/APP_ID/entities/ENTITY_ID/properties.json
Request body{rest_api_key":"API_KEY"}
Response: fetch all form fields
{"fields":[
{"id" : "aOWO_dVXHdHie1WeGFE8k2",
"entity_id" : "aOWO3eVXHdHie1WeGFE8k2",
"name" : "Field Name 1",
"desc" : "Field description",
"type_name" : "string",
"default" : "default value",
"validate_options" : "",
"position" : 0,
"visible" : true,
"size": 50,
"cols": 43,
"rows": 10
},
{"id" : "1i2i4VXHdHie1WeGFE8k2" ,
"entity_id" : "aOWO3eVXHdHie1WeGFE8k2",
"name" : "Field Name 1",
"desc" : "Field description",
"type_name" : "string",
"default" : "default value",
"validate_options" : "",
"position" : 0,
"visible" : true,
"size": 50,
"cols": 43,
"rows": 10
}
]}
XML
MethodGET
URL/apps/APP_ID/entities/ENTITY_ID/properties.xml
Request body
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<fields type="array">
<field>
<id>clrSoltHDdQyozW5NcLrGd</id>
<entity-id>dcOSk2W6bdJOoPsCo8jmoE</entity-id>
<name>test</name>
<desc nil="true"></desc>
<type-name>string</type-name>
<default></default>
<validate-options></validate-options>
<position type="integer">0</position>
<visible type="boolean">true</visible>
<size type="integer">50</size>
<cols type="integer">43</cols>
<rows type="integer">10</rows>
</field>
<field>
<id>ddUHDhCgzeW6HkW4NdG3vE</id>
<entity-id>dcOSk2W6bdJOoPsCo8jmoE</entity-id>
<name>test2</name>
<desc nil="true"></desc>
<type-name>select</type-name>
<default>1slct2slct3slct4slct5</default>
<validate-options></validate-options>
<position type="integer">1</position>
<visible type="boolean">true</visible>
<size type="integer">50</size>
<cols type="integer">43</cols>
<rows type="integer">10</rows>
</field>
</fields>
Get Field by ID
your API key
APP_IDYou have to know your database identifier in order to fetch database information. You can find ID using Fetch All Databases call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/ID.json to /apps/aOWO_dVXHdHie1WeGFE8k2.json
ENTITY_IDYou have to know your form identifier in order to fetch form information. You can find ID using Fetch All Forms call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/APP_ID/entities.json to /apps/aOWO_dVXHdHie1WeGFE8k2/entities.json
IDYou have to know your field identifier in order to update field settings. You can find ID using Fetch All Form Fields call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/APP_ID/entities/ENTITY_ID/properties/ID.json to /apps/qweWO_dVXHdHie1WeGFE8k2/entities/aOWO_dVXHdHie1WeGFE8k2/properties/asdasddVXHdHie1WeGFE8k2.json
JSON
MethodGET
URL/apps/APP_ID/entities/ENTITY_ID/properties/ID.json
Request body{"rest_api_key":"API_KEY"}
Response
{"field":
{
"id" : "aOWO_dVXHdHie1WeGFE8k2",
"entity_id" : "aOWO3eVXHdHie1WeGFE8k2",
"name" : "Field Name 1",
"desc" : "Field description",
"type_name" : "string",
"default" : "default value",
"validate_options" : "",
"position" : 0,
"visible" : true,
"size": 50,
"cols": 43,
"rows": 10
}
}
XML
MethodGET
URL/apps/APP_ID/entities/ENTITY_ID/properties/ID.xml
Request body
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<field>
<id>clrSoltHDdQyozW5NcLrGd</id>
<entity-id>dcOSk2W6bdJOoPsCo8jmoE</entity-id>
<name>test</name>
<desc nil="true"></desc>
<type-name>string</type-name>
<default></default>
<validate-options></validate-options>
<position type="integer">0</position>
<visible type="boolean">true</visible>
<size type="integer">50</size>
<cols type="integer">43</cols>
<rows type="integer">10</rows>
</field>
Get Field by Name
your API key
database_nameYou have to know your database name in order to fetch database information. You can find Name using Fetch All Databases call.
form_nameYou have to know your form name in order to fetch form information. You can find Form Name using Fetch All Forms call.
field_nameYou have to know your field name in order to update field settings. You can find field name using Fetch All Form Fields call.
JSON
MethodGET
URL/apps/search/entities/search/properties/search.json
Request body{"rest_api_key":"API_KEY", "database_name": "Database 21", "form_name": "Form Name 1", "field_name": "Field Name 1"}
Response
{"field":
{"id" : "aOWO_dVXHdHie1WeGFE8k2",
"entity_id" : "aOWO3eVXHdHie1WeGFE8k2",
"name" : "Field Name 1",
"desc" : "Field description",
"type_name" : "string",
"default" : "default value",
"validate_options" : "",
"position" : 0,
"visible" : true,
"size": 50,
"cols": 43,
"rows": 10
}
}
XML
MethodGET
URL/apps/search/entities/search/properties/search.xml
Request body
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
<database_name>Database 21</database_name>
<form_name>Form1</form_name>
<field_name>test</field_name>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<field>
<id>clrSoltHDdQyozW5NcLrGd</id>
<entity-id>dcOSk2W6bdJOoPsCo8jmoE</entity-id>
<name>test</name>
<desc nil="true"></desc>
<type-name>string</type-name>
<default></default>
<validate-options></validate-options>
<position type="integer">0</position>
<visible type="boolean">true</visible>
<size type="integer">50</size>
<cols type="integer">43</cols>
<rows type="integer">10</rows>
</field>
Run action
your API key
DTYPE_IDYou have to know your record identifier. You can find ID using Fetch All Records call.
ACTION_PROPERTY_IDYou have to know your field identifier. You can find ID using Fetch All Form Fields call.
JSON
MethodGET
URL/actions/ACTION_PROPERTY_ID.json
Request body{"rest_api_key":"API_KEY", "dtype_id": "DTYPE_ID"}
Response
{\"success\":\"Done\"}
XML
MethodGET
URL/actions/ACTION_PROPERTY_ID.xml
Request body
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
<dtype_id>DTYPE_ID</dtype_id>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<success>Done</success>
Run actions
your API key
ACTION_PROPERTY_IDYou have to know your field identifier. You can find ID using Fetch All Form Fields call.
dtype_idsYou have to know your records identifiers. You can find ID using Fetch All Records call.
json_dtype_idsYou can send your dtype ids in JSON format. You can find ID using Fetch All Records call. (Optional)
run_by_all_table_or_reportThe following parameter is available to run all actions in table or report: run_by_all_table_or_report: true.
viewYou have to know your report id in order to fetch records. (Optional)
JSON
MethodGET
URL/actions/ACTION_PROPERTY_ID.json
Request body{"rest_api_key":"API_KEY", "dtype_ids": ["ID1","ID2"...]}
{"rest_api_key":"API_KEY", "json_dtype_ids": "[\"ID1\",\"ID2\"...]"}
{"rest_api_key":"API_KEY", "run_by_all_table_or_report": true}
Response
{\"success\":\"Done\"}
XML
MethodGET
URL/actions/ACTION_PROPERTY_ID.xml
Request body
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
<dtype_ids>"ID1","ID2"...</dtype_ids>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
<json_dtype_ids>"[\"ID1\",\"ID2\"...]"</json_dtype_ids>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
<run_by_all_table_or_report>true</run_by_all_table_or_report>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<success>Done</success>
Update field
your API key
APP_IDYou have to know your database identifier in order to fetch database information. You can find ID using Fetch All Databases call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/ID.json to /apps/aOWO_dVXHdHie1WeGFE8k2.json
ENTITY_IDYou have to know your form identifier in order to fetch form information. You can find ID using Fetch All Forms call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/APP_ID/entities.json to /apps/aOWO_dVXHdHie1WeGFE8k2/entities.json
IDYou have to know your field identifier in order to update field settings. You can find ID using Fetch All Form Fields call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/APP_ID/entities/ENTITY_ID/properties/ID.json to /apps/qweWO_dVXHdHie1WeGFE8k2/entities/aOWO_dVXHdHie1WeGFE8k2/properties/asdasddVXHdHie1WeGFE8k2.json
nameNew field name. See all available attributes here
JSON
MethodPUT
URL/apps/APP_ID/entities/ENTITY_ID/properties/ID.json
Request body{"rest_api_key":"API_KEY",
"name":"New field name"}
{"field":
{"id" : "aOWO_dVXHdHie1WeGFE8k2",
"entity_id" : "aOWO3eVXHdHie1WeGFE8k2",
"name" : "Field Name 1",
"desc" : "Field description",
"type_name" : "string",
"default" : "default value",
"validate_options" : "",
"position" : 0,
"visible" : true,
"size": 50,
"cols": 43,
"rows": 10
}
}
XML
MethodPUT
URL/apps/APP_ID/entities/ENTITY_ID/properties/ID.xml
Request body
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
<name>New field name</rest_api_key>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<field>
<id>clrSoltHDdQyozW5NcLrGd</id>
<entity-id>dcOSk2W6bdJOoPsCo8jmoE</entity-id>
<name>test</name>
<desc nil="true"></desc>
<type-name>string</type-name>
<default></default>
<validate-options></validate-options>
<position type="integer">0</position>
<visible type="boolean">true</visible>
<size type="integer">50</size>
<cols type="integer">43</cols>
<rows type="integer">10</rows>
</field>
Delete field
your API key
APP_IDYou have to know your database identifier in order to fetch database information. You can find ID using Fetch All Databases call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/ID.json to /apps/aOWO_dVXHdHie1WeGFE8k2.json
ENTITY_IDYou have to know your form identifier in order to fetch form information. You can find ID using Fetch All Forms call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/APP_ID/entities.json to /apps/aOWO_dVXHdHie1WeGFE8k2/entities.json
IDYou have to know your field identifier in order to update field settings. You can find ID using Fetch All Form Fields call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/APP_ID/entities/ENTITY_ID/properties/ID.json to /apps/qweWO_dVXHdHie1WeGFE8k2/entities/aOWO_dVXHdHie1WeGFE8k2/properties/asdasddVXHdHie1WeGFE8k2.json
JSON
MethodDELETE
URL/apps/APP_ID/entities/ENTITY_ID/properties/ID.json
Request body{"rest_api_key":"API_KEY"}
Response
{"fields":[
{"id" : "aOWO_dVXHdHie1WeGFE8k2",
"entity_id" : "aOWO3eVXHdHie1WeGFE8k2",
"name" : "Field Name 1",
"desc" : "Field description",
"type_name" : "string",
"default" : "default value",
"validate_options" : "",
"position" : 0,
"visible" : true,
"size": 50,
"cols": 43,
"rows": 10
},
{"id" : "1i2i4VXHdHie1WeGFE8k2" ,
"entity_id" : "aOWO3eVXHdHie1WeGFE8k2",
"name" : "Field Name 1",
"desc" : "Field description",
"type_name" : "string",
"default" : "default value",
"validate_options" : "",
"position" : 0,
"visible" : true,
"size": 50,
"cols": 43,
"rows": 10
}
]}
XML
MethodDELETE
URL/apps/APP_ID/entities/ENTITY_ID/properties/ID.xml
Request body
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<fields type="array">
<field>
<id>clrSoltHDdQyozW5NcLrGd</id>
<entity-id>dcOSk2W6bdJOoPsCo8jmoE</entity-id>
<name>test</name>
<desc nil="true"></desc>
<type-name>string</type-name>
<default></default>
<validate-options></validate-options>
<position type="integer">0</position>
<visible type="boolean">true</visible>
<size type="integer">50</size>
<cols type="integer">43</cols>
<rows type="integer">10</rows>
</field>
<field>
<id>ddUHDhCgzeW6HkW4NdG3vE</id>
<entity-id>dcOSk2W6bdJOoPsCo8jmoE</entity-id>
<name>test2</name>
<desc nil="true"></desc>
<type-name>select</type-name>
<default>1slct2slct3slct4slct5</default>
<validate-options></validate-options>
<position type="integer">1</position>
<visible type="boolean">true</visible>
<size type="integer">50</size>
<cols type="integer">43</cols>
<rows type="integer">10</rows>
</field>
</fields>
Create Field
your API key
APP_IDYou have to know your database identifier in order to fetch database information. You can find ID using Fetch All Databases call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/ID.json to /apps/aOWO_dVXHdHie1WeGFE8k2.json
ENTITY_IDYou have to know your form identifier in order to fetch form information. You can find ID using Fetch All Forms call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/APP_ID/entities.json to /apps/aOWO_dVXHdHie1WeGFE8k2/entities.json
nameNew form field name
type_nameField type name. Can by one of: string, text, integer, float, select, radio button, check box, date, dob, datetime, file, image, boolean, language, states, table, country, time_zone, note, divider, formula, autoincrement, login, password, rel, linked_column, signature, subform
JSON
MethodPOST
URL/apps/APP_ID/entities/ENTITY_ID/properties.json
Request body{"rest_api_key":"API_KEY", name: "Field name 1", type_name: "string"}
Response: returns form information
{"field":
{"id" : "aOWO_dVXHdHie1WeGFE8k2",
"entity_id" : "aOWO3eVXHdHie1WeGFE8k2",
"name" : "Field Name 1",
"desc" : "Field description",
"type_name" : "string",
"default" : "default value",
"validate_options" : "",
"position" : 0,
"visible" : true,
"size": 50,
"cols": 43,
"rows": 10
}
}
XML
MethodPOST
URL/apps/APP_ID/entities/ENTITY_ID/properties.xml
Request body
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
<name>Form field 1</name>
<type-name>string</type-name>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<field>
<id>clrSoltHDdQyozW5NcLrGd</id>
<entity-id>dcOSk2W6bdJOoPsCo8jmoE</entity-id>
<name>test</name>
<desc nil="true"></desc>
<type-name>string</type-name>
<default></default>
<validate-options></validate-options>
<position type="integer">0</position>
<visible type="boolean">true</visible>
<size type="integer">50</size>
<cols type="integer">43</cols>
<rows type="integer">10</rows>
</field>
</field>
Get total by column
your API key
ENTITY_IDYou have to know your form identifier in order to fetch form information. You can find ID using Fetch All Forms call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/APP_ID/entities.json to /apps/aOWO_dVXHdHie1WeGFE8k2/entities.json
IDYou have to know your field identifier in order to update field settings. You can find ID using Fetch All Form Fields call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/APP_ID/entities/ENTITY_ID/properties/ID.json to /apps/qweWO_dVXHdHie1WeGFE8k2/entities/aOWO_dVXHdHie1WeGFE8k2/properties/asdasddVXHdHie1WeGFE8k2.json
viewYou have to know your report id in order to fetch records. (Optional)
JSON
MethodGET
URL/search/sum/ENTITY_ID/ID.json
Request body{"rest_api_key":"API_KEY",
view: "ImWO3eVXHdHie1WeGFE8k2"}
{total: 3}
XML
MethodGET
URL/search/sum/ENTITY_ID/ID.xml
Request body
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
<view>ImWO3eVXHdHie1WeGFE8k2</view>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<total>
3
</total>
Such record attributes can be accessible via REST API.
Unique record identifier. You'll need this to access this record.
app_idApp ID
entity_idRecord's form identifier.
valuesRecord values hash. Where key is field id and value is this field value.
json_valuesRecord values hash. Where key is field id and value is this field value. Analogue of values_hash but in JSON format
rel_valuesRecord relationships values hash. Where key is field id and value is the linked record ID.
Record subform's values hash. Where key is field id and value is the array with subform record's ID's.
approvedIf database moderation enabled this attributes triggers record's visibility in integrated database
created_atTime when record was created.
updated_atTime when record was last updated.
Fetch all records
your API key
APP_IDYou have to know your database identifier in order to fetch database information. You can find ID using Fetch All Databases call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/ID.json to /apps/aOWO_dVXHdHie1WeGFE8k2.json
ENTITY_IDYou have to know your form identifier in order to fetch form information. You can find ID using Fetch All Forms call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/APP_ID/entities.json to /apps/aOWO_dVXHdHie1WeGFE8k2/entities.json
viewYou have to know your report id in order to fetch records. (Optional)
pageRecords page number. From 1 to Table Records count/per_page.
name_valueUse the parameter to get data of type: "field name": "value", "field id": "field name"
fetch_allFor owners of paid accounts, the following parameter is available: fetch_all=true.
To get a specific number of posts, use the per_page parameter.
Restrictions on the maximum number of entries per_page for different plans:
FREE - 200
STANDARD - 500
PROFESSIONAL - 1000
ENTERPRISE - 2000
STANDARD EXPRESS - 4000
PROFESSIONAL EXPRESS - 8000
ENTERPRISE EXPRESS - 15000
Request body
{"rest_api_key":"API_KEY", "page": 1, "name_value": 1, "view": 'EaWQZdIXfahOqWvcvwrGTP', "fetch_all": true, "per_page": 2000}
JSON
MethodGET
URL/apps/APP_ID/dtypes/entity/ENTITY_ID.json
Request body{"rest_api_key":"API_KEY", "page": 1, "name_value": 1, "view": 'EaWQZdIXfahOqWvcvwrGTP'}
Response
{"records":[
{
"id":"bYWQnuBajdBOkAW4BdMmki",
"app_id":"ddIbpcNSncW5xcHxpdHCoW",
"entity_id":"aEWQZdIXfahOqWvcvwrGTP",
"values":{"value name 1":"2",
"aNW4nkW5bdUjldO8oKuSku":"value name 1",
"value name 2":"aaa",
"aMW4HKWR9bnOoGWQbpWQS4":"value name 2",
"value name 3":"ddd",
"cMW6pcTSjbWOFdTCkBtmkN":"value name 3"},
"approved":false,
"created_at":"2011-09-17T10:40:40-05:00",
"updated_at":"2011-09-17T10:40:40-05:00"
},
{
"id":"bYWQnuBajdBOkAW4BdMmki",
"app_id":"ddIbpcNSncW5xcHxpdHCoW",
"entity_id":"aEWQZdIXfahOqWvcvwrGTP",
"values":{"value name 1":"2",
"aNW4nkW5bdUjldO8oKuSku":"value name 1",
"value name 2":"aaa",
"aMW4HKWR9bnOoGWQbpWQS4":"value name 2",
"value name 3":"ddd",
"cMW6pcTSjbWOFdTCkBtmkN":"value name 3"},
"approved":false,
"created_at":"2011-09-17T10:40:40-05:00",
"updated_at":"2011-09-17T10:40:40-05:00"
}
]
}
XML
MethodGET
URL/apps/APP_ID/dtypes/entity/ENTITY_ID.json
Request body
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
<view>EaWQZdIXfahOqWvcvwrGTP</view>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<records type="array">
<record>
<id>bYWQnuBajdBOkAW4BdMmki</id>
<app-id>ddIbpcNSncW5xcHxpdHCoW</app-id>
<entity-id>aEWQZdIXfahOqWvcvwrGTP</entity-id>
<values>
<aNW4nkW5bdUjldO8oKuSku>2</aNW4nkW5bdUjldO8oKuSku>
<aMW4HKWR9bnOoGWQbpWQS4>aaa</aMW4HKWR9bnOoGWQbpWQS4>
<cMW6pcTSjbWOFdTCkBtmkN>ddd</cMW6pcTSjbWOFdTCkBtmkN>
</values>
<approved type="boolean">false</approved>
<created-at type="datetime">2011-09-17T10:40:40-05:00</created-at>
<updated-at type="datetime">2011-09-17T10:40:40-05:00</updated-at>
</record>
<record>
<id>dcQSkdWO1odA5HAmkYWOix</id>
<app-id>ddIbpcNSncW5xcHxpdHCoW</app-id>
<entity-id>aEWQZdIXfahOqWvcvwrGTP</entity-id>
<values>
<aNW4nkW5bdUjldO8oKuSku>1</aNW4nkW5bdUjldO8oKuSku>
<aMW4HKWR9bnOoGWQbpWQS4>test</aMW4HKWR9bnOoGWQbpWQS4>
<cMW6pcTSjbWOFdTCkBtmkN>test2</cMW6pcTSjbWOFdTCkBtmkN>
</values>
<approved type="boolean">false</approved>
<created-at type="datetime">2011-09-17T04:28:10-05:00</created-at>
<updated-at type="datetime">2011-09-17T04:28:10-05:00</updated-at>
</record>
</records>
Get record
your API key
APP_IDYou have to know your database identifier in order to fetch database information. You can find ID using Fetch All Databases call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/ID.json to /apps/aOWO_dVXHdHie1WeGFE8k2.json
IDYou have to know your record identifier. You can find ID using Fetch All Records call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/APP_ID/dtypes/ID.json to /apps/aOWO_dVXHdHie1WeGFE8k2/dtypes/asd987asdasd97asd.json
name_valueUse the parameter to get data of type: "field name": "value", "field id": "field name"
JSON
MethodGET
URL/apps/APP_ID/dtypes/ID.json
Request body{"rest_api_key":"API_KEY", "name_value": 1}
Response
{"record":
{
"id":"bYWQnuBajdBOkAW4BdMmki",
"app_id":"ddIbpcNSncW5xcHxpdHCoW",
"entity_id":"aEWQZdIXfahOqWvcvwrGTP",
"values":{"value name 1":"2",
"aNW4nkW5bdUjldO8oKuSku":"value name 1",
"value name 2":"aaa",
"aMW4HKWR9bnOoGWQbpWQS4":"value name 2",
"value name 3":"ddd",
"cMW6pcTSjbWOFdTCkBtmkN":"value name 3"},
"approved":false,
"created_at":"2011-09-17T10:40:40-05:00",
"updated_at":"2011-09-17T10:40:40-05:00"
}
}
XML
MethodGET
URL/apps/APP_ID/dtypes/ID.xml
Request body
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<record>
<id>bYWQnuBajdBOkAW4BdMmki</id>
<app-id>ddIbpcNSncW5xcHxpdHCoW</app-id>
<entity-id>aEWQZdIXfahOqWvcvwrGTP</entity-id>
<values>
<aNW4nkW5bdUjldO8oKuSku>2</aNW4nkW5bdUjldO8oKuSku>
<aMW4HKWR9bnOoGWQbpWQS4>aaa</aMW4HKWR9bnOoGWQbpWQS4>
<cMW6pcTSjbWOFdTCkBtmkN>ddd</cMW6pcTSjbWOFdTCkBtmkN>
</values>
<approved type="boolean">false</approved>
<created-at type="datetime">2011-09-17T10:40:40-05:00</created-at>
<updated-at type="datetime">2011-09-17T10:40:40-05:00</updated-at>
</record>
Update record
your API key
APP_IDYou have to know your database identifier in order to fetch database information. You can find ID using Fetch All Databases call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/ID.json to /apps/aOWO_dVXHdHie1WeGFE8k2.json
IDYou have to know your record identifier. You can find ID using Fetch All Records call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/APP_ID/dtypes/ID.json to /apps/aOWO_dVXHdHie1WeGFE8k2/dtypes/asd987asdasd97asd.json
valuesRecord values hash, where key is form field id.
json_valuesIf you using jQuery, Ruby or another programming language then, please, use 'values' parameter to send encoding parameters. However, if your framework doesn't allow this you can send record values as JSON string, but in this case specify your parameter name as 'json_values'. And your JSON values string will looks like this: "{"aNW4nkW5bdUjldO8oKuSku":"2", "aMW4HKWR9bnOoGWQbpWQS4":"aaa"}"
subforms_values / subforms_json_valuesTo create or update subforms, in the same way, use 'subforms_values' or 'json_subforms_values'.
With a format below:
"{property1_id: {entity_id: subform1_id, subform1_record1_id: {subform1_field1_id: "2", subform1_field2_id: "aaa"}, subform1_record2_id: {subform1_field1_id: "3", subform1_field2_id: "bb"}}, property2_id: {entity_id: subform2_id, subform2_record1_id: {subform2_field1_id: "4", subform2_field2_id: "bb"}, subform2_record2_id: {subform2_field1_id: "5", subform2_field2_id: "dd"}}}" .
Where property1_id and property2_id - this is Fields ID's with a Subform type in the main table.
subform1_id, subform2_id - Forms ID's, which was set in property1_id and property2_id settings.
subform1_record1_id и subform1_record2_id - this is new or existent subform records ID's.
subform1_field1_id, subform1_field2_id - fields ID's in the form subform1_id.
subform2_field1_id, subform2_field2_id - fields ID's in the form subform2_id.
All ID's - it's a 22 characters URL-save base64 code, you can get them from other API calls or create for new subform records.
JSON
MethodPUT
URL/apps/APP_ID/dtypes/ID.json
Request body{"rest_api_key":"API_KEY", "values": {"aNW4nkW5bdUjldO8oKuSku" : 3, "aMW4HKWR9bnOoGWQbpWQS4" : "b", "cMW6pcTSjbWOFdTCkBtmkN" : "c"}}
Response
{"record":
{
"id":"bYWQnuBajdBOkAW4BdMmki",
"app_id":"ddIbpcNSncW5xcHxpdHCoW",
"entity_id":"aEWQZdIXfahOqWvcvwrGTP",
"values":{"aNW4nkW5bdUjldO8oKuSku":"3",
"aMW4HKWR9bnOoGWQbpWQS4":"b",
"cMW6pcTSjbWOFdTCkBtmkN":"c"},
"approved":false,
"created_at":"2011-09-17T10:40:40-05:00",
"updated_at":"2011-09-17T10:40:40-05:00"
}
}
XML
MethodPUT
URL/apps/APP_ID/dtypes/ID.xml
Request body
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<values>{"aNW4nkW5bdUjldO8oKuSku"=>3, "aMW4HKWR9bnOoGWQbpWQS4"=>"b", "cMW6pcTSjbWOFdTCkBtmkN"=>"c"}</values>
<rest_api_key>API_KEY</rest_api_key>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<record>
<id>bYWQnuBajdBOkAW4BdMmki</id>
<app-id>ddIbpcNSncW5xcHxpdHCoW</app-id>
<entity-id>aEWQZdIXfahOqWvcvwrGTP</entity-id>
<values>
<aNW4nkW5bdUjldO8oKuSku>3</aNW4nkW5bdUjldO8oKuSku>
<aMW4HKWR9bnOoGWQbpWQS4>b</aMW4HKWR9bnOoGWQbpWQS4>
<cMW6pcTSjbWOFdTCkBtmkN>c</cMW6pcTSjbWOFdTCkBtmkN>
</values>
<approved type="boolean">false</approved>
<created-at type="datetime">2011-09-17T10:40:40-05:00</created-at>
<updated-at type="datetime">2011-09-17T10:40:40-05:00</updated-at>
</record>
Update multiple records
your API key
confirm_actionThe following parameter is required to run update in table or report: confirm_action: update.
ENTITY_IDYou have to know your field's form identifier in order to update field settings. You can find ENTITY_ID using Fetch All Forms call.
APP_IDYou have to know your database identifier in order to fetch database information. You can find ID using Fetch All Databases call.
dtype_idsYou have to know your records identifiers. You can find ID using Fetch All Records call.
json_dtype_idsYou can send your dtype ids in JSON format. You can find ID using Fetch All Records call. (Optional)
update_idYou have to know your field identifier. You can find ID using Fetch All Form Fields call.
update_termNew value for records
viewYou have to know your report id in order to fetch records. (Optional)
JSON
MethodPOST
URL/dtypes/confirm_action/APP_ID/ENTITY_ID.json
Request body{rest_api_key: "YOUR_KEY",
confirm_action: "update",
entity_id: "ENTITY_ID",
app_id: "APP_ID",
json_dtype_ids: "[\"ID1\",\"ID2\"...]",
update_id: "UPDATE_ID",
update_term: "UPDATE_TERM"}
{rest_api_key: "YOUR_KEY",
confirm_action: "update",
entity_id: "ENTITY_ID",
app_id: "APP_ID",
dtype_ids: ["ID1","ID2"...],
update_id: "UPDATE_ID",
update_term: "UPDATE_TERM"}
{\"success\":\"Done\"}
XML
MethodPOST
URL/dtypes/confirm_action/APP_ID/ENTITY_ID.xml
Request body
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
<confirm_action>update</confirm_action>
<entity_id>ENTITY_ID</entity_id>
<app_id>APP_ID</app_id>
<dtype_ids>"ID1","ID2"...</dtype_ids>
<update_id>UPDATE_ID</update_id>
<update_term>UPDATE_TERM</update_term>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
<confirm_action>update</confirm_action>
<entity_id>ENTITY_ID</entity_id>
<app_id>APP_ID</app_id>
<json_dtype_ids>"[\"ID1\",\"ID2\"...]"</json_dtype_ids>
<update_id>UPDATE_ID</update_id>
<update_term>UPDATE_TERM</update_term>
</api_call_params>
Response
<?xml version="1.0" encoding="UTF-8"?>
<success>Done</success>
Update all records
your API key
confirm_actionThe following parameter is required to run update of all records in table or report: confirm_action: update_all.
ENTITY_IDYou have to know your field's form identifier in order to update field settings. You can find ENTITY_ID using Fetch All Forms call.
APP_IDYou have to know your database identifier in order to fetch database information. You can find ID using Fetch All Databases call.
update_idYou have to know your field identifier. You can find ID using Fetch All Form Fields call.
update_termNew value for records
viewYou have to know your report id in order to fetch records. (Optional)
JSON
MethodPOST
URL/dtypes/confirm_action/APP_ID/ENTITY_ID.json
Request body{rest_api_key: "YOUR_KEY",
confirm_action: "update_all",
entity_id: "ENTITY_ID",
app_id: "APP_ID",
update_id: "UPDATE_ID",
update_term: "UPDATE_TERM"}
{\"success\":\"Done\"}
XML
MethodPOST
URL/dtypes/confirm_action/APP_ID/ENTITY_ID.xml
Request body
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
<confirm_action>update_all</confirm_action>
<entity_id>ENTITY_ID</entity_id>
<app_id>APP_ID</app_id>
<update_id>UPDATE_ID</update_id>
<update_term>UPDATE_TERM</update_term>
</api_call_params>
Response
<?xml version="1.0" encoding="UTF-8"?>
<success>Done</success>
Update data cell
your API key
PROPERTY_IDYou have to know your field identifier in order to update field settings. You can find ID using Fetch All Form Fields call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/APP_ID/entities/ENTITY_ID/properties/ID.json to /apps/qweWO_dVXHdHie1WeGFE8k2/entities/aOWO_dVXHdHie1WeGFE8k2/properties/asdasddVXHdHie1WeGFE8k2.json
DTYPE_IDYou have to know your record identifier. You can find ID using Fetch All Records call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/APP_ID/dtypes/ID.json to /apps/aOWO_dVXHdHie1WeGFE8k2/dtypes/asd987asdasd97asd.json
valNew cell value
JSON
MethodPATCH/PUT/POST
URL/cell_values/DTYPE_ID/update_cell_value/PROPERTY_ID.json
Request body{"rest_api_key":"API_KEY", "property_id": "aNW4nkW5bdUjldO8oKuSku", "dtype_id": "cMW6pcTSjbWOFdTCkBtmkN", "val": "John Smith"}
Response
{"new_value": "John Smith"}
XML
MethodPATCH/PUT/POST
URL/cell_values/DTYPE_ID/update_cell_value/PROPERTY_ID.xml
Request body
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<val>John Smith</val>
<rest_api_key>API_KEY</rest_api_key>
<dtype-id>cMW6pcTSjbWOFdTCkBtmkN</dtype-id>
<property-id>aNW4nkW5bdUjldO8oKuSku</property-id>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<new_value>
John Smith
</new_value>
Delete record
your API key
APP_IDYou have to know your database identifier in order to fetch database information. You can find ID using Fetch All Databases call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/ID.json to /apps/aOWO_dVXHdHie1WeGFE8k2.json
IDYou have to know your record identifier. You can find ID using Fetch All Records call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/APP_ID/dtypes/ID.json to /apps/aOWO_dVXHdHie1WeGFE8k2/dtypes/asd987asdasd97asd.json
JSON
MethodDELETE
URL/apps/APP_ID/dtypes/ID.json
Request body{"rest_api_key":"API_KEY"}
Response
{"record":
{
"id":"bYWQnuBajdBOkAW4BdMmki",
"app_id":"ddIbpcNSncW5xcHxpdHCoW",
"entity_id":"aEWQZdIXfahOqWvcvwrGTP",
"values":{"aNW4nkW5bdUjldO8oKuSku":"3",
"aMW4HKWR9bnOoGWQbpWQS4":"b",
"cMW6pcTSjbWOFdTCkBtmkN":"c"},
"approved":false,
"created_at":"2011-09-17T10:40:40-05:00",
"updated_at":"2011-09-17T10:40:40-05:00"
}
}
XML
MethodDELETE
URL/apps/APP_ID/dtypes/ID.xml
Request body
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<record>
<id>bYWQnuBajdBOkAW4BdMmki</id>
<app-id>ddIbpcNSncW5xcHxpdHCoW</app-id>
<entity-id>aEWQZdIXfahOqWvcvwrGTP</entity-id>
<values>
<aNW4nkW5bdUjldO8oKuSku>3</aNW4nkW5bdUjldO8oKuSku>
<aMW4HKWR9bnOoGWQbpWQS4>b</aMW4HKWR9bnOoGWQbpWQS4>
<cMW6pcTSjbWOFdTCkBtmkN>c</cMW6pcTSjbWOFdTCkBtmkN>
</values>
<approved type="boolean">false</approved>
<created-at type="datetime">2011-09-17T10:40:40-05:00</created-at>
<updated-at type="datetime">2011-09-17T10:40:40-05:00</updated-at>
</record>
Delete multiple
your API key
ENTITY_IDYou have to know your field's form identifier in order to update field settings. You can find ENTITY_ID using Fetch All Forms call.
APP_IDYou have to know your database identifier in order to fetch database information. You can find ID using Fetch All Databases call.
dtype_idsYou have to know your records identifiers. You can find ID using Fetch All Records call.
json_dtype_idsYou can send your dtype ids in JSON format. You can find ID using Fetch All Records call. (Optional) (Optional)
JSON
MethodPOST
URL/apps/APP_ID/dtypes/delete_multiple.json
Request body{rest_api_key: "YOUR_KEY",
entity_id: "ENTITY_ID",
app_id: "APP_ID",
json_dtype_ids: "[\"ID1\",\"ID2\"...]"}
{rest_api_key: "YOUR_KEY",
entity_id: "ENTITY_ID",
app_id: "APP_ID",
dtype_ids: ["ID1","ID2"...]}
{\"success\":\"Done\"}
XML
MethodPOST
URL/apps/APP_ID/dtypes/delete_multiple.xml
Request body
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
<entity_id>ENTITY_ID</entity_id>
<app_id>APP_ID</app_id>
<json_dtype_ids>"[\"ID1\",\"ID2\"...]"</json_dtype_ids>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
<entity_id>ENTITY_ID</entity_id>
<app_id>APP_ID</app_id>
<dtype_ids>"ID1","ID2"...</dtype_ids>
</api_call_params>
Response
<?xml version="1.0" encoding="UTF-8"?>
<success>Done</success>
Delete all
your API key
APP_IDYou have to know your database identifier in order to fetch database information. You can find ID using Fetch All Databases call.
ENTITY_IDYou have to know your field's form identifier in order to update field settings. You can find ENTITY_ID using Fetch All Forms call.
viewYou have to know your report id in order to fetch records. (Optional)
JSON
MethodDELETE
URL/dtypes/APP_ID/delete_all/ENTITY_ID.json
Request body{rest_api_key: "YOUR_KEY", entity_id: "ENTITY_ID"}
Response
{\"success\":\"Done\"}
XML
MethodDELETE
URL/dtypes/APP_ID/delete_all/ENTITY_ID.xml
Request body
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
<entity_id>ENTITY_ID</entity_id>
</api_call_params>
Response
<?xml version="1.0" encoding="UTF-8"?>
<success>Done</success>
Create record
your API key
APP_IDYou have to know your database identifier in order to fetch database information. You can find ID using Fetch All Databases call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/ID.json to /apps/aOWO_dVXHdHie1WeGFE8k2.json
ENTITY_IDYou have to know your form identifier in order to fetch form information. You can find ID using Fetch All Forms call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/APP_ID/entities.json to /apps/aOWO_dVXHdHie1WeGFE8k2/entities.json
IDIf you need to use your personal ID, you can generate UUID (unique identifier) < / a> 22 characters long URL-safe base64 For example in Ruby . Next you will need to pass it to the 'values' hash, for example: values => {' id '=> ID}, change to: values => {' id '=>' 22adadVXHdHie1WeGFE8k2 '}, otherwise the system will generate a unique identifier for you.
values / json_valuesIf you using jQuery, Ruby or another programming language then, please, use 'values' parameter to send encoding parameters. However, if your framework doesn't allow this you can send record values as JSON string, but in this case specify your parameter name as 'json_values'. And your JSON values string will looks like this: "{"aNW4nkW5bdUjldO8oKuSku":"2", "aMW4HKWR9bnOoGWQbpWQS4":"aaa"}"
subforms_values / subforms_json_valuesTo create or update subforms, in the same way, use 'subforms_values' or 'json_subforms_values'.
With a format below:
"{property1_id: {entity_id: subform1_id, subform1_record1_id: {subform1_field1_id: "2", subform1_field2_id: "aaa"}, subform1_record2_id: {subform1_field1_id: "3", subform1_field2_id: "bb"}}, property2_id: {entity_id: subform2_id, subform2_record1_id: {subform2_field1_id: "4", subform2_field2_id: "bb"}, subform2_record2_id: {subform2_field1_id: "5", subform2_field2_id: "dd"}}}" .
Where property1_id and property2_id - this is Fields ID's with a Subform type in the main table.
subform1_id, subform2_id - Forms ID's, which was set in property1_id and property2_id settings.
subform1_record1_id и subform1_record2_id - this is new or existent subform records ID's.
subform1_field1_id, subform1_field2_id - fields ID's in the form subform1_id.
subform2_field1_id, subform2_field2_id - fields ID's in the form subform2_id.
All ID's - it's a 22 characters URL-save base64 code, you can get them from other API calls or create for new subform records.
JSON
MethodPOST
URL/apps/APP_ID/dtypes.json
Request body{"rest_api_key":"API_KEY", "values": {"entity_id" : ENTITY_ID, "id" : ID, "aNW4nkW5bdUjldO8oKuSku":"3", "aMW4HKWR9bnOoGWQbpWQS4":"b","cMW6pcTSjbWOFdTCkBtmkN":"c"}}
Response: returns form information
{"record":
{
"id":"bYWQnuBajdBOkAW4BdMmki",
"app_id":"ddIbpcNSncW5xcHxpdHCoW",
"entity_id":"aEWQZdIXfahOqWvcvwrGTP",
"values":{"aNW4nkW5bdUjldO8oKuSku":"3",
"aMW4HKWR9bnOoGWQbpWQS4":"b",
"cMW6pcTSjbWOFdTCkBtmkN":"c"},
"approved":false,
"created_at":"2011-09-17T10:40:40-05:00",
"updated_at":"2011-09-17T10:40:40-05:00"
}
}
XML
MethodPOST
URL/apps/APP_ID/dtypes.xml
Request body
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<values>{"aNW4nkW5bdUjldO8oKuSku"=>3,"entity_id"=>ENTITY_ID, "id"=>ID,"aMW4HKWR9bnOoGWQbpWQS4"=>"b", "cMW6pcTSjbWOFdTCkBtmkN"=>"c"}</values><
<rest_api_key>API_KEY</rest_api_key>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<record>
<id>bYWQnuBajdBOkAW4BdMmki</id>
<app-id>ddIbpcNSncW5xcHxpdHCoW</app-id>
<entity-id>aEWQZdIXfahOqWvcvwrGTP</entity-id>
<values>
<aNW4nkW5bdUjldO8oKuSku>3</aNW4nkW5bdUjldO8oKuSku>
<aMW4HKWR9bnOoGWQbpWQS4>b</aMW4HKWR9bnOoGWQbpWQS4>
<cMW6pcTSjbWOFdTCkBtmkN>c</cMW6pcTSjbWOFdTCkBtmkN>
</values>
<approved type="boolean">false</approved>
<created-at type="datetime">2011-09-17T10:40:40-05:00</created-at>
<updated-at type="datetime">2011-09-17T10:40:40-05:00</updated-at>
</record>
Search
your API key
APP_IDYou have to know your database identifier in order to fetch database information. You can find ID using Fetch All Databases call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/ID.json to /apps/aOWO_dVXHdHie1WeGFE8k2.json
ENTITY_IDYou have to know your form identifier in order to fetch form information. You can find ID using Fetch All Forms call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/APP_ID/entities.json to /apps/aOWO_dVXHdHie1WeGFE8k2/entities.json
viewYou have to know your report id in order to fetch records. (Optional)
searchWould you like a flick on the table? "SEARCH_TERM", "o" => "SEARCH_CRITERIA"}]].
PROPERTY_ID - field identifier by which we are searching ( -ALL - - to search all columns),
SEARCH_TERM - the value we are looking for,
SEARCH_CRITERIA - criterion for a message, maybe one of them:
is, is_not, is_empty, is_not_empty, starts_with, ends_with, like, contains, not_contains.
For regular numbers and dates : less_than, greater_than, less_than_or_equal_to, greater_than_or_equal_to.
For a date for about an hour : before, after, this_day_and_before, this_day_and_after, yesterday, today, tomorrow, today_or_later, last_7_days, last_30_days,
last_60_days, last_90_days, last_120_days, next_7_days, next_30_days, next_60_days, next_90_days, next_120_days, next_n_days, last_n_days,
last_week, this_week, next_week, current_and_prev_week, current_and_next_week, next_n_weeks, last_n_weeks, last_month, this_month, next_month,
current_and_prev_month, current_and_next_month, next_n_months, last_n_months, last_year, this_year, last_2_years, next_2_years, current_and_prev_year,
current_and_next_year, next_n_years, last_n_years.
System columns : added_by, created_at, updated_at, ip.
If you want to search in several columns with a unifying "AND" criterion, then these criteria should be placed in one array, if "OR", then into a separate one, for example:
[[{"a" => "PROPERTY_ID_1", "b" => "A", "o" => "is"}, {"a" => "PROPERTY_ID_2", "b" => "A", "o" => "is"}],
[{"a" => "PROPERTY_ID_3", "b" => "B", "o" => "SEARCH_CRITERIA"}]]
the search formula will be: "Find all records where PROPERTY_ID_1 AND PROPERTY_ID_2 are equal to A OR PROPERTY_ID_3 is equal to B"
The number of records in the search results, the maximum is 200.
JSON
MethodPOST
URL/search/APP_ID.json
Request body{"rest_api_key":"API_KEY", "entity_id" => "ENTITY_ID", "search": [[{"a"=>"aNW4nkW5bdUjldO8oKuSku", "b"=>"value name 1", "o"=>"is"}]]}
Response
{"records":[
{
"id":"bYWQnuBajdBOkAW4BdMmki",
"app_id":"ddIbpcNSncW5xcHxpdHCoW",
"entity_id":"aEWQZdIXfahOqWvcvwrGTP",
"values":{"value name 1":"2",
"aNW4nkW5bdUjldO8oKuSku":"value name 1",
"value name 2":"aaa",
"aMW4HKWR9bnOoGWQbpWQS4":"value name 2",
"value name 3":"ddd",
"cMW6pcTSjbWOFdTCkBtmkN":"value name 3"},
"approved":false,
"created_at":"2011-09-17T10:40:40-05:00",
"updated_at":"2011-09-17T10:40:40-05:00"
},
{
"id":"bYWQnuBajdBOkAW4BdMmki",
"app_id":"ddIbpcNSncW5xcHxpdHCoW",
"entity_id":"aEWQZdIXfahOqWvcvwrGTP",
"values":{"value name 1":"2",
"aNW4nkW5bdUjldO8oKuSku":"value name 1",
"value name 2":"aaa",
"aMW4HKWR9bnOoGWQbpWQS4":"value name 2",
"value name 3":"ddd",
"cMW6pcTSjbWOFdTCkBtmkN":"value name 3"},
"approved":false,
"created_at":"2011-09-17T10:40:40-05:00",
"updated_at":"2011-09-17T10:40:40-05:00"
}
]
}
Relationships
In order to update link between records your have to pass separate hash into CREATE or UPDATE record call.
curl -H 'Content-Type: application/json' -X PUT -d '{"rel":{REL_ID:RECORD_ID}}' "https://quintadb.com/apps/APP_ID/dtypes/CURRENT_RECORD_ID.json?rest_api_key=API_KEY"
This hash should be like 'rel' => {rel_id => RECORD_ID} or 'rel' => {rel_id => [RECORD_ID, RECORD_ID2]} if you have many-to-many relationship. Where RECORD_ID it's a record's ID with which you want to link current record. Please, see below how to get rel_id.
your API key
PROPERTY_IDYou have to know your field identifier in order to update field settings. You can find ID using Fetch All Form Fields call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/APP_ID/entities/ENTITY_ID/properties/ID.json to /apps/qweWO_dVXHdHie1WeGFE8k2/entities/aOWO_dVXHdHie1WeGFE8k2/properties/asdasddVXHdHie1WeGFE8k2.json
ENTITY_IDYou have to know your field's form identifier in order to update field settings. You can find ENTITY_ID using Fetch All Forms call. Once you know it, you'll need to add this ENTITY_ID to URL in the link below, i.e. change /apps/APP_ID/entities/ENTITY_ID/properties.json to /apps/qweWO_dVXHdHie1WeGFE8k2/entities/aOWO_dVXHdHie1WeGFE8k2/properties.json
JSON
MethodGET
URL/entities/ENTITY_ID/get_rel_id/PROPERTY_ID.json?rest_api_key=API_KEY
Request body{"rest_api_key":"API_KEY", {"entity_id" : ENTITY_ID, "property_id" : PROPERTY_ID}}
Response
11842
Such report attributes can be accessible via REST API.
ID
nameName
App ID
entity_idTable (Form) ID
created_atTime when record was created.
updated_atTime when record was last updated.
Get Reports
your API key
APP_IDApp ID
ENTITY_IDTable (Form) ID
JSON
MethodGET
URL/apps/APP_ID/entities/ENTITY_ID/views/index.json
Request body{"rest_api_key":"API_KEY"}
Response: returns all table reports.
{"reports":[
{"id" : "aOWO_dVXHdHie1WeGFE8k2"
"name" : "Report Name 1",
"created_at" : "2011-08-16T05:42:40-05:00",
"updated_at" : "2011-08-16T05:42:40-05:00",
"entity_id" : 'aEWQZdIXfahOqWvcvwrGTP',
"app_id" : 'ddIbpcNSncW5xcHxpdHCoW'
},
{"id" : "aOWO3eVXHdHie1WeGFE8k2"
"name" : "Report Name 2",
"created_at" : "2011-04-29T01:26:22-05:00",
"updated_at" : "2011-08-16T00:47:56-05:00",
"entity_id" : 'RtWQZdIXfahOqWvcvwrGTP',
"app_id" : 'ddIbpcNSncW5xcHxpdHCoW'
} ]}
XML
MethodGET
URL/apps/APP_ID/entities/ENTITY_ID/views/index.xml
Request body: returns all table reports.
<?xml version="1.0" encoding="UTF-8"?>
<api_call_params>
<rest_api_key>API_KEY</rest_api_key>
</api_call_params>
<?xml version="1.0" encoding="UTF-8"?>
<reports type="array">
<report>
<id>bYWQnuBajdBOkAW4BdMmki</id>
<app-id>ddIbpcNSncW5xcHxpdHCoW</app-id>
<entity-id>aEWQZdIXfahOqWvcvwrGTP</entity-id>
<created-at type="datetime">2011-09-17T10:40:40-05:00</created-at>
<updated-at type="datetime">2011-09-17T10:40:40-05:00</updated-at>
</record>
<record>
<id>dcQSkdWO1odA5HAmkYWOix</id>
<app-id>ddIbpcNSncW5xcHxpdHCoW</app-id>
<entity-id>aEWQZdIXfahOqWvcvwrGTP</entity-id>
<created-at type="datetime">2011-09-17T04:28:10-05:00</created-at>
<updated-at type="datetime">2011-09-17T04:28:10-05:00</updated-at>
</report>
</reports>
Get file URL
Upload files
require 'open-uri'
require 'openssl'
require 'net/http'
require 'json'
require 'securerandom'
#MultipartPost
class MultipartPost
BOUNDARY = "-----------RubyMultipartPost"
EOL = "\r\n"
def initialize uri, &block
@params = Array.new
@uri = URI.parse uri
instance_eval &block if block
end
def params_part key, value
@params << multipart_text(key, value)
end
def files_part key, filename, mime_type, content
@params << multipart_file(key, filename, mime_type, content)
end
def request_body
body = @params.map{|p| "--#{BOUNDARY}#{EOL}" << p}.join ""
body << "#{EOL}--#{BOUNDARY}--#{EOL}"
end
def run
https = Net::HTTP.new @uri.host, @uri.port
https.use_ssl = true
https.verify_mode = (OpenSSL::SSL::VERIFY_PEER)
request = Net::HTTP::Post.new @uri.request_uri
request.body = request_body
request.set_content_type "multipart/form-data", {"boundary" => BOUNDARY}
res = https.request request
res.body
end
private
def multipart_text key, value
content = "Content-Disposition: form-data; name=\"#{key}\"" <<
EOL <<
EOL <<
"#{value}" << EOL
end
def multipart_file key, filename, mime_type, content
content = "Content-Disposition: form-data; name=\"#{key}\"; filename=\"#{filename}\"#{EOL}" <<
"Content-Type: #{mime_type}\r\n" <<
EOL <<
"#{content}" << EOL
end
end #MultipartPost
def call_quinta(url, format, method, params={})
uri = URI.parse(url)
req = case method
when "get"
Net::HTTP::Get.new(uri.path)
when "post"
Net::HTTP::Post.new(uri.path)
when "put"
Net::HTTP::Put.new(uri.path)
when "delete"
Net::HTTP::Delete.new(uri.path)
end
req.body = case format
when "json"
JSON.generate(params)
else
"no"
end
req["Content-Type"] = "application/#{format}"
https = Net::HTTP.new(uri.host, uri.port)
https.use_ssl = (uri.scheme == 'https')
https.verify_mode = (OpenSSL::SSL::VERIFY_PEER)
https.start do |htt|
htt.request(req)
end
end
dtype_id = SecureRandom.urlsafe_base64
app_id = "bsx8kgWR9jWOBdUftcRXf9"
entity_id = "arjadcLJzeWOi1WPddL8ol"
property_id = "bwW68wWP1cSikQqSkhl04I"
post_url = "https://localhost:3001/entities/#{app_id}/upload_file/#{property_id}.json?dtype_id=#{dtype_id}"
# Path to your file
file_path = "/home/igor/Pictures/Selection_001.png"
file = File.open file_path
# getting file's content type, i.e. 'image/png'
file_content_type = `file --b --mime-type '#{file_path}'`.strip
multi_part = MultipartPost.new post_url do
params_part "rest_api_key", rest_api_key
files_part "dtype[#{property_id}]", "Selection_001.png",
file_content_type, file.read
end
p multi_part.run
# And below is the example of how to upload the file to Subform
rest_api_key = "API_KEY"
subform_field_id = "dcL8kXB8npd5pdRmk7BCoR"
subform_file_field_id = "aVWR3cNtvdUikQn8o3yCo1"
subform_form_id = "cCcxjdWRXpWPTLWOjvWPfO"
subform_dtype_id = SecureRandom.urlsafe_base64
file_path = "/home/igor/Pictures/Selection_002.png"
file = File.open file_path
# getting file's content type, i.e. 'image/png'
file_content_type = `file --b --mime-type '#{file_path}'`.strip
post_url = "https://quintadb.com/entities/#{app_id}/upload_file/#{subform_file_field_id}.json?dtype_id=#{subform_dtype_id}"
# upload file into subform record
multi_part = MultipartPost.new post_url do
params_part "rest_api_key", rest_api_key
params_part "subform_field", subform_field_id
params_part "property_id", subform_file_field_id
params_part "subform_dtype_id", subform_dtype_id
files_part "subforms[#{subform_field_id}][#{subform_dtype_id}][#{subform_file_field_id}]", "Selection_002.png",
file_content_type, file.read
end
p multi_part.run
text_field_on_a_form = "agW6rGWQHiWPvdWPL0oCoj"
text_field_on_a_subform = "dcV8k6y8nhWP4JF0r6W5LI"
params = {
:page => 1,
:rest_api_key => rest_api_key,
values: {entity_id: entity_id, id: dtype_id, text_field_on_a_form => "Test"},
subforms: {subform_field_id => {entity_id: subform_form_id, subform_dtype_id => { text_field_on_a_subform => "Test2"}}}
}
response = call_quinta "https://quintadb.com/apps/#{app_id}/dtypes.json", "json", "post", params
puts response.body
your API key
APP_IDYou have to know your database identifier in order to fetch database information. You can find ID using Fetch All Databases call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/ID.json to /apps/aOWO_dVXHdHie1WeGFE8k2.json
property_idYou have to know your field identifier in order to update field settings. You can find ID using Fetch All Form Fields call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/APP_ID/entities/ENTITY_ID/properties/ID.json to /apps/qweWO_dVXHdHie1WeGFE8k2/entities/aOWO_dVXHdHie1WeGFE8k2/properties/asdasddVXHdHie1WeGFE8k2.json
dtype_idYou have to know your record identifier. You can find ID using Fetch All Records call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/APP_ID/dtypes/ID.json to /apps/aOWO_dVXHdHie1WeGFE8k2/dtypes/asd987asdasd97asd.json
JSON
MethodPOST
URL/entities/APP_ID/upload_file/PROPERTY_ID.json?dtype_id=DTYPE_ID
Request body{"rest_api_key"=>API_KEY, "filedata"="your_file_here", "dtype_id"=>"fRLA83jrnAUOi5TEQLyuGw", "app_id"=>"bsx8kgWR9jWOBdUftcRXf9"}
Uploaded
Remove files
your API key
APP_IDYou have to know your database identifier in order to fetch database information. You can find ID using Fetch All Databases call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/ID.json to /apps/aOWO_dVXHdHie1WeGFE8k2.json
property_idYou have to know your field identifier in order to update field settings. You can find ID using Fetch All Form Fields call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/APP_ID/entities/ENTITY_ID/properties/ID.json to /apps/qweWO_dVXHdHie1WeGFE8k2/entities/aOWO_dVXHdHie1WeGFE8k2/properties/asdasddVXHdHie1WeGFE8k2.json
DTYPE_IDYou have to know your record identifier. You can find ID using Fetch All Records call. Once you know it, you'll need to add this ID to URL in the link below, i.e. change /apps/APP_ID/dtypes/ID.json to /apps/aOWO_dVXHdHie1WeGFE8k2/dtypes/asd987asdasd97asd.json
SINGLE_FILE_NAMEFile name
JSON
MethodGET
URL/dtypes/delete_dtype_file/APP_ID/DTYPE_ID/PROPERTY_ID.json
Request body{"rest_api_key"=>API_KEY, "single_file_name"=>"Selection_002.png", "app_id"=>"bsx8kgWR9jWOBdUftcRXf9", "dtype_id"=>"wlS5MeyMqQiCv16FdG3ztQ", "property_id"=>"bwW68wWP1cSikQqSkhl04I"}
Response
File removed
require 'open-uri'
require 'openssl'
require 'net/http'
require 'json'
def call_mth(url, format, method, params={})
uri = URI.parse(url)
# Creating proper call with Method: GET/POST/PUT/DELETE
req = case method
when "get"
Net::HTTP::Get.new(uri.path)
when "post"
Net::HTTP::Post.new(uri.path)
when "put"
Net::HTTP::Put.new(uri.path)
when "delete"
Net::HTTP::Delete.new(uri.path)
end
# Convert the parameters into JSON/XML and set the content type as application/json or application/xml Notice the XML format for parameters, the root element is api_call_params
req.body = case format
when "xml"
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<api_call_params>
#{params.collect{|key, value| "<#{key}>#{value}#{key}>"}.join("")}
</api_call_params>"
when "json"
JSON.generate(params)
else
"no"
end
# Setting content type
req["Content-Type"] = "application/#{format}"
https = Net::HTTP.new(uri.host, uri.port)
# All calls via HTTPS and verifying SSL certificates
https.use_ssl = (uri.scheme == 'https')
https.verify_mode = (OpenSSL::SSL::VERIFY_PEER)
# Making request
https.start do |htt|
htt.request(req)
end
end
# Make sure to set your own API_KEY here
params = {
:page => 1,
:rest_api_key => "API_KEY"
}
response = call_mth "https://quintadb.ru/apps.json", "json", "get", params
# Response will be in response.body
puts response.body