Update Custom Field

To update a particular custom field using the id.

Update a custom field

Below is sample cURL request to update a custom field. Use raw JSON format to call the API. Length of the array while update action should be one only.

curl --location 'https://api.evitalrx.in/v1/custom_fields/add_update_custom_field' \
--header 'Content-Type: application/json' \
--data '{
  "apikey":"**************",
  "action": "update",
   "custom_fields": [
    {
      "id": "oyESErpn5eM/lQZPgEvxRw==",
      "attribute_key": "patient_mapped_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 of length one containing id attribute key and module. Update one custom field at a time. For ex: {id: string, attribute_key: string, module: string } Valid modules are: sales and customers

action

String

update

{
    "status_code": "1",
    "status_message": "Success",
    "datetime": "2024-09-24 15:14:36",
    "data": null
}

Last updated