Skip to main content
POST
/
v2
/
data
/
delete
Delete Data (v2)
curl --request POST \
  --url https://api.example.com/v2/data/delete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data @- <<EOF
{
  "delete_condition": "id = '1000'"
}
EOF
{
  "code": 200,
  "data": {},
  "exception": null,
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Include the token in the Authorization header as 'Bearer '

Body

application/json

The delete condition

delete_condition
string | null
default:""

SQL WHERE clause to filter which rows to delete. If not provided, all rows will be deleted.

Example:

"video_id = 1000"

Response

Data successfully deleted.

code
integer<int32>
required

HTTP status code.

Required range: x >= 0
success
boolean
required

Whether the request was successful.

data
object
exception
object