Delete one or more custom fields.
Below is a Sample cURL request to delete particular custom fields.
Copy curl --location 'localhost: 4000 /v 1 /custom_fields/add_update_custom_field' \
--header 'Content-Type: application/json' \
--data '{
"apikey" : "**************" ,
"action" : "delete" ,
"custom_fields" : [
{
"id" : "5wP6t/dlZrIzNqssQLUUbQ==" ,
"attribute_key" : "zipcode" ,
"module" : "customers"
} ,
{
"id" : "iZ4zlQnA1LpIEiZ+i0D25Q==" ,
"attribute_key" : "prescription_id" ,
"module" : "customers"
}
]
}
'
OK Success Invalid id of attribute
Copy {
"status_code" : "1" ,
"status_message" : "Success" ,
"datetime" : "2024-10-01 10:24:18" ,
"data" : null
}
Copy {
"status_code" : "0" ,
"status_message" : "deleting failed" ,
"datetime" : "2024-10-01 10:25:52" ,
"data" : null
}