Skip to main content
Delete All Collections
Fin avatar
Written by Fin
Updated over 2 years ago

Delete All Collections

URL:

https://app.detrack.com/api/v1/collections/delete/all.json

HTTP POST REQUEST

Note: the request structure below is for Method #1: Name/Value Pair (NVP) + JSON String. For Method #2: Custom Header + JSON Body, please refer to the json parameter only.

Field

Description

date

The collection date. Format: YYYY-MM-DD e.g. 2014-02-28. Required field.

HTTP POST RESPONSE (JSON)

Field

Description

status

The status of the request. The value will be β€œok” if request is processed successfully or β€œfailed” if the key or json parameter is missing.

failed

The number of collections that are not deleted due to error.

deleted

The number of collections that deleted.

SAMPLE REQUEST JSON

{
   "date":"2014-02-13"
}

SAMPLE RESPONSE JSON #1

{
   "info":{
      "status":"ok",
      "failed":0,
      "deleted":2
   }
}

SAMPLE RESPONSE JSON #2

{
   "info":{
      "status":"ok",
      "failed":0,
      "deleted":0
   }
}

Did this answer your question?