REST API - Delete Records
Table of Contents
When accessed by the application owner:
When accessed by a shared user:
|<ownername>||This is the admin username which can be obtained using zoho.adminuser or zoho.appuri variables (refer this page). You can also view your app URL in the URL bar of your browser for example, <https://creator.zoho.com/<ownername>/<applicationname>/...> to obtain it.|
|<applicationName> , <formName> and <viewName>||These are the link names of your application, form and report (that is shared with the users), respectively. They can be referred from here.|
|<format>||This is the type of response format as listed below.|
|authtoken||Required||A valid API authtoken. Refer this page for generating authtoken.|
|scope||Required||Specify the value as creatorapi|
The criteria must be specified in the format <criteria column name> <operator> <value>
Example : (Name == "Jean" && DOB == "20-Jul-1981")
Refer to this page for the link names used in your applications.
- The owner of the application with a valid auth token can delete a record in a Form.
- A user with a valid auth token and share permission can delete a record in a View with record deleting enabled.
<form method="POST" action="https://creator.zoho.com/api/sampleapps/xml/sample/form/Employee/record/delete">
<input type="hidden" name ="authtoken" value="************">
<input type="hidden" name ="scope" id="scope" value="creatorapi">
<input type="text" name="criteria" value="Name=Gary">
<input type="submit" value="Delete Record">
If there is an error in the request format, the corresponding error code with error message will be displayed. Please refer to the topic Error codes and descriptions to know about them. If the operation is successful, the response message will be displayed with status as "Success".