I’m trying to update custom fields with the REST API on a contact. When I make the request my response message is
"description"=>"Validation failed"
All of my custom fields have the same error on them:
"errors"=>
[{"field"=>"cf_payment_status", "message"=>"Unexpected/invalid field in request", "code"=>"invalid_field"}]
I’m not sure what the invalid field refers to. All of my custom fields are created in FreshChat and FreshDesk. Is there a specific structure to the request Params that I need to follow? There isn’t any documentation on updating custom_fields.
Here is a sample of my params:
{:cf_payment_status=>nil,
:cf_contact_payment_gateway_identifier=>"REDACTED",
:cf_order_number=>nil,
:cf_order_id=>nil,
:cf_team_id=>"REDACTED",
:cf_team_name=>"My Demo Team",
:cf_product_name=>nil,
:cf_subdomain=>"nopreferenceshere",
:cf_currency=>"USD",
:cf_confirming_gateways=>"false"}
I’ve also tried nesting the params under a custon_fields
key, but this still results in the invalid field validation error.