Delete Records from List

DELETE https://restapi.actonsoftware.com/api/1/list/{listid}/{recordid}

This endpoint allows you to remove records from a list.

Parameters

Name Parameter
Type
Allow
Multiple
Required/
Optional
Data Type Description
Authorization: Header False Required String Insert your generated access token.
("Bearer {access token}")
listid Path False Required String Specify the list ID in which you would like to access.
contactids Query False Required String Specify the records (comma-delimited) you would like deleted.

Response

{
  "success_count": 1,
  "fail_count": 0,
  "failedList": []
}

Code Examples

cURLPython

curl -X DELETE https://restapi.actonsoftware.com/api/1/list/l-000e/record?contactids=l-000e:0 -H "Authorization: Bearer 12345678-9abc-defg-hijk-lmnopqrs"

import requests

url = "https://restapi.actonsoftware.com/api/1/list/l-000e/record?contactids=l-000e:0"

payload = {}
headers = {
  'Authorization': 'Bearer 12345678-9abc-defg-hijk-lmnopqrs'
}

response = requests.request("DELETE", url, headers=headers, data = payload)

print(response.text.encode('utf8'))