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.

POST{{apiUrl}}custom_fields/add_update_custom_field

Request Body

Name
Type
Description

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

Was this helpful?