Empty List

This API is used to empty users in a given list.

API Details

URL Schema:
US IDC:
https://api.netcoresmartech.com/apiv2

Indian IDC:
https://apiin.netcoresmartech.com/apiv2

EU IDC:
https://jsonapi.eu-north-1.eu.netcoresmartech.com/apiv2

Method:
POST

Header:

KeyValue
Content-Typeapplication/x-www-form-urlencoded

Parameters:

ParameterDecriptionData TypeRequiredParameter Type
activityActivity refers to the action that is being performed through the API, that is, add, delete, update, and so on.
Value here: emptylist
StringYesQuery Parameter
typeHere type is lists StringYesQuery Parameter
listnameEach list in Netcore CE has a unique name assigned to it to identify. Passing this name is required to let the API know to which list the list is supposed to be emptied.StringYesQuery Parameter
apikeyYou can obtain the API key from the Netcore CE panel. Log in to your Netcore CE panel and go to Admin. Enable the API Mode in Account Configuration under Advance details. Now, go to Sub Admin and click Edit on your user name. You can view your API key here.StringYesQuery Parameter
asyncPass the value as 1.BooleanNoQuery Parameter

Request:

http://api.netcoresmartech.com/apiv2?activity=emptylist&listname=xx&apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&type=lists
http://api.netcoresmartech.com/apiv2?activity=emptylist&listname=xx&apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&type=lists&async=1

*Response:

Success :
{
    "status": "success",
    "details": "List name xx emptied successfully"
}
Success :
{
    "status": "success",
    "details": "Your request was accepted successfully. It may take a few minutes to process your request. To find out the list count, use the "getalllist" API."
}