View-Based DELETE

To delete a record from an object, send a DELETE request to any view which contains a delete link. Views that can accept a delete request include the following:

  • Tables
  • Lists
  • Searches
  • Calendars
  • Details

URL
DELETE https://api.knack.com/v1/pages/scene_xx/views/view_yy/records/record_ID

Parameters

Parameter

Explanation

Example

scene_xx

scene key

scene_3

view_yy

view key

view_5

record_ID

A record’s ID

575482d691e16d4235adcdb6

Headers

Key

Value

X-Knack-Application-Id

Your application ID

X-Knack-REST-API-KEY

knack

Authorization

A user tokenvalid for the view (if view is nested under a login)

Example Request

# NOTE: In order for this request to work, you will need to add a "delete" link to the View Company Details view (on the Company Details page)
curl -X DELETE "https://api.knack.com/v1/pages/scene_10/views/view_9/records/586504ff070097a1461db2ae" \
  -H "X-Knack-Application-Id: YOUR-APP-ID" \
  -H "X-Knack-REST-API-Key: knack"

Example Response (200 OK)

{
  "delete": true
}

What’s Next
Did this page help you?