The following macros are not currently supported in the header:
  • style

POST /companies

Resource URL

Create a new company object.

POST /companies
ANY /companies?_method=post

Parameters

Table of allowed parameters.

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

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

Sample Response

POST /companies.json?name=BobsHouse
{
   "response" : { 
		 "name" : "BobsHouse",
         "id" : "4"
    },
   "meta" : {
      "status" : "ok",
      "message" : "Everything executed as expected."
   }
}