Delete Custom Field

Delete Custom Field 


Following almost the same pattern of deleting subscriber and list, you can use the API service to delete the custom field. Following section will elaborate it further with a sample request and returned Json responses both successful and unsuccessful.

Required to Submit Json Request


The email that account holder uses to login MUMARA

API Token

The API token user has generated using API Configuration section of MUMARA, also mentioned above.


Method being called (Post)


Path to the API file being called ('http//


Field Details






The only required field to delete particular custom field is its ID.


Sample Request

The sample code in the following section has valid API token, username and path to delete the custom field list ID “9”.


$postData['list_id']  = '9';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,'');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 60);
curl_setopt($ch, CURLOPT_POST, count($postData));
curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);
curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'APIToken: 343b1b831066a40e308e0af92e0f06f0', 'Login:'));
$data = curl_exec($ch);
if (curl_errno($ch)) {
print "Error: " . curl_error($ch);
} else {
// Show me the result
print ($data);


Success Response


Upon providing appropriate information such as API token, username, path and valid custom field ID, you will get your custom field deleted and will be given the following response.


Status value for successfully deleted List will be- “success”
Data Returned-"Custom Field ID" 

{"status":"success","response":{"Custom Field ID":"9"}}

Erroneous Response


When you submit request with inappropriate, incorrect information.


Status value for unsuccessful submission will be-"error” 
Data Returned- Text based message describing reason of unsuccessful response

{"status":"error","response":"Custom Field ID is required to delete custom field"}
Have more questions? Submit a request


Powered by Zendesk