Delete a custom field (apiDeleteSubscriberField)
Using this function, you can delete a personalization field.
Request
| Name | Type | Example | Required | Comment |
|---|---|---|---|---|
| customFieldID | Integer | 123456789 | yes | apiGetSubscriberFieldsprovides all specified fields. |
Error Response
| Code | Interpretation |
|---|---|
| 404 | No valid CustomFieldID was passed. |
PHP Example
try{
$customField = array('customFieldID' => 123456789);
$response=$client->apiDeleteSubscriberField($customField);
}
catch (SoapFault $exception) {
echo ($exception->getMessage());
}