Delete Record from Custom Table

DELETE/api/thirdparty/customtable/{table_name}/{id}

Deletes a record from the specified custom table by its ID.

Headers

FieldTypeDescription
authtoken String Authentication token, generated from admin area

Parameters

FieldTypeDescription
table_name String Name of the custom database table (exact table name as it exists in the database)
id Number Record ID
curl -X DELETE "https://yoursite.com/api/thirdparty/customtable/TABLE_NAME/123" \
  -H "authtoken: YOUR_API_TOKEN"

Success-Response:

HTTP/1.1 200 OK
{
  "status": true,
  "message": "Record deleted successfully"
}

Error-Response (Record Not Found):

HTTP/1.1 404 Not Found
{
  "status": false,
  "message": "Record not found"
}
MethodDELETE
Path/api/thirdparty/customtable/{table_name}/{id}
GroupThirdparty
Sincev0.3.0
Defined inmodules/api/controllers/Thirdparty.php