Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Resource URL

Create a new company object.

Code Block
languagebash
POST /companies
ANY /companies?_method=post

Parameters

Table of allowed paramatersparameters.

namestringThe newly created companies name. For example, Bob's Burger Hut.
parent_idunsigned intAn id of another company who will be the new company's parent.
standingstringThe standing of the new company. This can be active, interested, inactive or prospect.
status_idunsigned intAn id of a company status.
websitestringThe new company's website
phonestringThe new company's phone number.
faxstringThe new company's fax.
notesstringNotes to be stored against the new company.
profile.**Custom profile value against company.
_fieldspartial stringAllows you to specify optional fields and linked objects to include in the response.

Handling the response

Below is a table of available response fields and objects that are returned within the response object of the returned object. The optional fields and objects can be requested in the _fields paramater; see included examples. Underlined values are default.

...

Please see get company for details regarding handling of the response.

Sample Response

Code Block
languagebash
POST /companies.json?name=BobsHouse

...