Zum Hauptinhalt springen
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>"
    }
  ]
}
'
[
  {
    "properties": [
      {
        "name": "description",
        "value": "A far better description than before"
      }
    ]
  },
  {
    "sourceId": null,
    "timestamp": 1485550052993,
    "versions": [
      {
        "timestamp": 1485550052993,
        "sourceVid": [],
        "name": "hs_lastmodifieddate",
        "value": "1485550052993",
        "source": "CALCULATED"
      }
    ],
    "value": "1485550052993",
    "source": "CALCULATED"
  },
  {
    "sourceId": "API",
    "timestamp": 1485550052985,
    "versions": [
      {
        "name": "createdate",
        "sourceId": "API",
        "timestamp": 1485550052985,
        "value": "1485550052985",
        "source": "API",
        "sourceVid": []
      }
    ],
    "value": "1485550052985",
    "source": "API"
  },
  {
    "sourceId": null,
    "timestamp": 1485550052985,
    "versions": [
      {
        "timestamp": 1485550052985,
        "sourceVid": [],
        "name": "name",
        "value": "A company name",
        "source": "API"
      }
    ],
    "value": "A company name",
    "source": "API"
  },
  {
    "sourceId": "100097",
    "timestamp": 1485550869914,
    "versions": [
      {
        "name": "description",
        "sourceId": "100097",
        "timestamp": 1485550869914,
        "value": "A far better description than before",
        "source": "API",
        "sourceVid": []
      }
    ],
    "value": "A far better description than before",
    "source": "API"
  }
]

Pfadparameter

companyId
string
erforderlich

Unique identifier for a particular company.

Abfrageparameter

vidOffset
string

The vid to offset the query by.

count
string

Specifies the number of contacts to be returned.

Body

application/json
properties
object[]
erforderlich

A list of properties to update for the company.

Antwort

200 - application/json

Successful response

The response is of type object.

Last modified on April 9, 2026