Delete Custom Fields

To delete custom field using the id.

Delete one or more custom fields.

Below is a Sample cURL request to delete particular custom fields.

curl --location 'localhost:4000/v1/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"
        }
   ]
}
'

POSThttps://api.evitalrx.in/v1/custom_fields/add_update_custom_field

Request Body

NameTypeDescription

apikey*

String

Authentication token

entity

Number

type of the entity

custom_fields

Array

Array of custom field object containing id, attribute key and module name For ex: {id: string, attribute_key: string, module: string} Valid module are: sales and customers

action

String

delete

{
    "status_code": "1",
    "status_message": "Success",
    "datetime": "2024-10-01 10:24:18",
    "data": null
}

Last updated