PUT
/
companies
/
v2
/
companies
/
{companyId}
Update a company
curl --request PUT \
  --url https://api.hubapi.com/companies/v2/companies/{companyId} \
  --header 'Content-Type: application/json' \
  --data '{
  "properties": [
    {
      "name": "<string>",
      "value": "<string>"
    }
  ]
}'
"\nExample PUT URL:\nhttps://api.hubapi.com/companies/v2/companies/10444744\n\nExample PUT JSON:\n{\n  \"properties\": [\n    {\n      \"name\": \"description\",\n      \"value\": \"A far better description than before\"\n    }\n  ]\n}\n\nExample response:\nReturns a 200 response with an\nobject representing the updated company:\n{\n  \"portalId\": 62515,\n  \"additionalDomains\": [\n    \n  ],\n  \"properties\": {\n    \"hs_lastmodifieddate\": {\n      \"sourceId\": null,\n      \"timestamp\": 1485550052993,\n      \"versions\": [\n        {\n          \"timestamp\": 1485550052993,\n          \"sourceVid\": [\n            \n          ],\n          \"name\": \"hs_lastmodifieddate\",\n          \"value\": \"1485550052993\",\n          \"source\": \"CALCULATED\"\n        }\n      ],\n      \"value\": \"1485550052993\",\n      \"source\": \"CALCULATED\"\n    },\n    \"createdate\": {\n      \"sourceId\": \"API\",\n      \"timestamp\": 1485550052985,\n      \"versions\": [\n        {\n          \"name\": \"createdate\",\n          \"sourceId\": \"API\",\n          \"timestamp\": 1485550052985,\n          \"value\": \"1485550052985\",\n          \"source\": \"API\",\n          \"sourceVid\": [\n            \n          ]\n        }\n      ],\n      \"value\": \"1485550052985\",\n      \"source\": \"API\"\n    },\n    \"name\": {\n      \"sourceId\": null,\n      \"timestamp\": 1485550052985,\n      \"versions\": [\n        {\n          \"timestamp\": 1485550052985,\n          \"sourceVid\": [\n            \n          ],\n          \"name\": \"name\",\n          \"value\": \"A company name\",\n          \"source\": \"API\"\n        }\n      ],\n      \"value\": \"A company name\",\n      \"source\": \"API\"\n    },\n    \"description\": {\n      \"sourceId\": \"100097\",\n      \"timestamp\": 1485550869914,\n      \"versions\": [\n        {\n          \"name\": \"description\",\n          \"sourceId\": \"100097\",\n          \"timestamp\": 1485550869914,\n          \"value\": \"A far better description than before\",\n          \"source\": \"API\",\n          \"sourceVid\": [\n            \n          ]\n        }\n      ],\n      \"value\": \"A far better description than before\",\n      \"source\": \"API\"\n    }\n  },\n  \"isDeleted\": false,\n  \"companyId\": 266234266\n}"

Path Parameters

companyId
string
required

Unique identifier for a particular company.

Query Parameters

vidOffset
string

The vid to offset the query by.

count
string

Specifies the number of contacts to be returned.

Body

application/json

Response

200 - application/json

Successful response - Returns all of the contacts who have an associatedcompanyid contact property of :companyid

The response is of type object.