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.
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