Creator API

REST API - Delete Records

URL

When accessed by the application owner:

https://creator.zoho.com/api/<ownername>/<format>/<applicationName>/form/<formName>/record/delete/

When accessed by a shared user:

https://creator.zoho.com/api/<ownername>/<format>/<applicationName>/view/<viewName>/record/delete/

where <applicationName>, <formName> and <viewName> are the link names of your application, form and view as can be referred to here and <format> is the type of response format as listed below.

Formats

xml, json

HTTP Method

POST

Parameters

Parameter Name Usage Description
authtoken Required. A valid API authtoken. Refer https://api.creator.zoho.com/Generate-Auth-Token.html for generating authtoken.
scope Required Specify the value as creatorapi
criteria Required.

The criteria must be specified in the format <criteria column name> <operator> <value>
where <criteria column name> is the link name of the field to check <value> against
and <operator> is the operator to use. Some of the expamples for the operators supported are
!=, <=, >=,<, >, =

Example : (Name == "Jean" && DOB == "20-Jul-1981")

Refer to this page for the link names used in your applications.

Prerequisites

Notes

  • 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.

Sample Request

<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">
</form>

Sample Response

XML response

<response>
     <result>
        <form name="Employee">
             <delete>
                  <criteria>Name=Gary</criteria>
                       <status>Success</status>
             </delete>
        </form>
    </result>
</response>

JSON response

{"formname":["RestAPI",{"operation":["delete",{"criteria":"Name=Gary","status":"Success"}]}]}

Error Codes

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 for the list of error codes. If the operation is successful, the response message will be displayed with status as "Success".

Top