Bulk update - Company in Freshdesk

I tried the cURL command with only the domain and name fields, and it worked fine. However, the below cURL command, which includes four fields, is not working — even after trying without the custom_field.

I attempted to create a company using the below cURL command, but it shows a field error. I’m not sure why I’m facing this issue since the backend field names match those in the company module in Freshdesk. Attaching the cURL details, file, and error for reference.

CURL

curl --location ‘https://supportsandbox.freshdesk.com/api/v2/companies/imports’
–header ‘Authorization: Basic **’
–header ‘Content-Type: multipart/form-data’
–header ‘Cookie: __cf_bm=y..U–1.0.1.1-..; _x_m=x_c; _x_w=us’
–form ‘file=@“/Users/desivacoumar/Downloads/payload_export - payload_export (2).csv”’
–form ‘fields[domains]=“0”’
–form ‘fields[name]=“1”’
–form ‘fields[custom_fields][region]=“2”’
–form ‘fields[custom_fields][association_period]=“3”’

error

{

"description": "Validation failed",

“errors”: [

    {

“field”: “fields”,

“message”: “Invalid fields: custom_fields”,

“code”: “invalid_value”

    }

\]

}