Create a company

You can create a new company

     

Request Path Parameters
Parameter Type Required Description
org_id number Yes The unique identifier of your organization

     

Request Body Parameter
Attribute Type Required Description
company_name string Yes The name of the company
phone_number string No Company phone number
city string No
state string No
postal_code string No
description string No
linked_in_company_page string No
company_industry string No The industry that this company operates in.

Example Request & Response


$ curl https://api.custerem.com/<org_id>/companies/ \
-X POST \
-H 'Authorization: X-API-KEY <Your API Key>' \
-H 'Content-Type: application/json' \
-d '{
    "company_name": "Custerem",
    "phone_number": "+46",
    "city": "Helsingborg",
    "state": "Skåne",
    "postal_code": "11111",
    "description": "Simple, fast and powerful cloud CRM",
    "linked_in_company_page": "https://linkedin.com/",
    "company_industry": "Manufacturing"
}'

 

201 Created

{
    "company_industry": "Manufacturing",
    "contacts": [],
    "number_of_employees": null,
    "annual_revenue": null,
    "company_name": "Custerem",
    "phone_number": "+46",
    "city": "Helsingborg",
    "state": "Skåne",
    "postal_code": "11111",
    "description": "Simple, fast and powerful cloud CRM",
    "linked_in_company_page": "https://linkedin.com/"
}

 

400 Bad Request

{
    "company_name": [
        "This field may not be blank."
    ],
    "status_code": 400
}