Can I post Company (Name, not relation) via the rest api?

I’m trying to post the Company (Text field, not relationship to data type Company) via the REST API to no avail - is it possible? What is the data format to do that?

Justin

Hi @JustinHandley, we currently just support the company data type as a field on the contact. This is because the company text field could potentially be ambiguous (not linked to any existing company). If you prefer using that field, I believe you should be able to use the xmlrpc api to update that using the ContactService.update method

example:

<?xml version='1.0' encoding='UTF-8'?>
<methodCall>
<methodName>ContactService.update</methodName>
  <params>
    <param>
      <value><string>{{APIKey}}</string></value>
    </param>
    <param>
      <value><int>{{ContactId}}</int></value>
    </param>
    <param>
      <value><struct>
        <member><name>Company</name> //Company text field
          <value><string>theXMLway</string></value> //Text value
        </member>
      </struct></value>
    </param>
  </params>
</methodCall>

Carlos