API Reference – Marketing API – Deleting Custom Fields

Marketing API Method Documentation

©2009-2017 SocketLabs, Inc., Version 0.1, Last Edit: May 25, 2017

DELETE /customfields/{customFieldNameId}


Deletes an existing custom field from your server.

Recommended Usage:

This DELETE method is used to delete an existing custom field from your server.  Please note – when a custom field is deleted, all recipient data associated with the custom field is also deleted.  This may affect any Mailings or Drip Campaigns that reference your custom field. Once the custom field is deleted this data cannot be restored.

Request Information

HTTP Method:




Response Format Types:


Request Parameters:

The unique ID of the custom field that you wish to delete.  This ID is returned when the custom field is created or when you retrieve a list of all your fields.

Example Request:

DELETE /marketing/v1/customfields/4321 HTTP/1.1
Host: api.socketlabs.com
Authorization: Basic XXXXXXXXXXXXXXXXXXXx==
Cache-Control: no-cache

Response Parameters

A successful call will return an HTTP 204 (No Content) indicating that the request was successful.  If the customFieldNameId does not exist for your server an HTTP 404 (Not Found) response is returned instead.  This may happen if the custom field has already been deleted for your server, or if it never existed.

Customers Who Trust in SocketLabs

You’re in good company when working with SocketLabs. Here are some companies who have also trusted SocketLabs.

Why SocketLabs?

What Our Customers Are Saying!