Deleting records

From DreamFactory
Jump to: navigation, search
DreamFactoryTutorialsDeleting records
(Created page with "### Tutorial DELETE multiple records to a SQL or NoSQL database. Try these examples in the 'API Docs' tab of the DreamFactory Admin Console or from the command line with cURL...")
Line 1: Line 1:
### Tutorial
+
=== Tutorial ===
  
 
DELETE multiple records to a SQL or NoSQL database. Try these examples in the 'API Docs' tab of the DreamFactory Admin Console or from the command line with cURL.
 
DELETE multiple records to a SQL or NoSQL database. Try these examples in the 'API Docs' tab of the DreamFactory Admin Console or from the command line with cURL.
  
### API Endpoint
+
=== API Endpoint ===
  
 
<pre>DELETE https://{url}/api/v2/{api_name}/_table/{table_name}</pre>
 
<pre>DELETE https://{url}/api/v2/{api_name}/_table/{table_name}</pre>
  
### API Docs Screenshot
+
=== API Docs Screenshot ===
  
 
[[File:Swagger-delete-records.png|1000px]]
 
[[File:Swagger-delete-records.png|1000px]]
  
### Example - DELETE multiple contact records
+
=== Example - DELETE multiple contact records ===
  
 
* Table name: contact
 
* Table name: contact

Revision as of 17:51, 3 February 2016

Tutorial

DELETE multiple records to a SQL or NoSQL database. Try these examples in the 'API Docs' tab of the DreamFactory Admin Console or from the command line with cURL.

API Endpoint

DELETE https://{url}/api/v2/{api_name}/_table/{table_name}

API Docs Screenshot

Swagger-delete-records.png

Example - DELETE multiple contact records

  • Table name: contact
  • Body parameter in API call:
    {
"resource": [ { "id": 107 }, { "id": 108 } ] }
  • Request URL:
    https://foo.com/api/v2/db/_table/contact