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}"
Returns all of the contacts who have an associatedcompanyid contact property of :companyid. For more on how contacts are associated with companies, check out our Companies API Overview. This will return 20 contacts by default. You can get up to 100 contacts per request using the count= parameter. You can use the “vidoffset”: field returned in the results with the vidOffset= parameter to get the next set of results.
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}"
Unique identifier for a particular company.
The vid to offset the query by.
Specifies the number of contacts to be returned.
Successful response - Returns all of the contacts who have an associatedcompanyid contact property of :companyid
The response is of type object
.
Was this page helpful?