Hi I am trying to update the contact on the other_companies field.
Docs mention an array of hashes, not sure what this means. What is the correct syntax?
I tried:
curl -u ${fd_api_key}:X -X PUT -H "Content-Type: application/json" -d '{"other_companies":["company_id": "30000147482"]}' "https://dataserviceshub.freshdesk.com/api/v2/contacts/30009644980"
error: {“code”:“invalid_json”,“message”:“Request body has invalid json format”}
Also tried
curl -u ${fd_api_key}:X -X PUT -H "Content-Type: application/json" -d '{"other_companies":["30000147482"]}' "https://dataserviceshub.freshdesk.com/api/v2/contacts/30009644980"
Error: {“description”:“Validation failed”,“errors”:[{“field”:“other_companies”,“message”:“It should contain elements of type key/value pair only”,“code”:“datatype_mismatch”}]}
please help.