Remove

Parameters

Key

Type

REQUIRED

collection

String (Collection Name)

upload

String (Upload Name)

rows

Array of data integers

Example

The example below removes rows 1,2 & 5 from "Upload 1" in the collection "Collection 1"

curl -X POST \
  v1/data/remove\
  -H 'Authorization: Basic <Your Base64 Encoded Token>'\
  -d '{
    "collection" : "My Collection",
    "upload"     : "Upload 1",
    "rows"       : [1,2,5]
}'

Success Response

The response return number of deletes and rows that were removed. If the row number does not exist the row is ignored.

{
    "status": "success",
    "data": {
        "deletes": 3,
        "removed": [
            "1",
            "2",
            "5"
        ],
        "warnings": 0,
        "messages": []
    },
    "hash": "376e9a516439c0a7b420612180b1d602",
    "response_time": 0.13455486297607422
}

Last updated