There's a new version of the HubSpot API

As of November 30, 2022, HubSpot API keys are no longer a supported authentication method for accessing HubSpot APIs. Instead, you should use a private app access token or OAuth to authenticate API calls. Learn more about this change and how to migrate an API key integration to use a private app instead.

Update a Company Property

Last updated May 15, 2023

PUT /properties/v1/companies/properties/named/:property_name

Method Details

HTTP Methods:

PUT

Content Type:

application/json

Response Format:

json

Requires Authentication?

Yes

Rate Limited?

Yes

Headers

User-Agent

Products:

Marketing & CRM

Required Scope:

crm.schemas.companies.write

Update the specified company property. This does not update the value on a specified company, but instead changes the definition of the company property.

Required Parameters How to use Description
OAuth access token or private app access token Authorization: Bearer {token} header Used to authenticate the request. Please see this page for more details about authentication.
Property Name Used in the request URL You must include the property name in the URL that you're using to make the request. This property name can only include lower case letters and numbers, and MUST start with a lower case letter. Also, the name of the property that you include in your URL here MUST be identical to the property name that you include in the JSON request body (seen below)
Property JSON Used in the request body See the documentation for creating a company property for more details on the available options you can use.
Optional Parameters How to use Description
Enumerated options "options": {list of options}
Used in the request body.
The list of options for enumerated properties. NOTE: If you're including this field, it will OVERWRITE the existing options. There is not a way to just append or remove a single option, so you'll need to include all of the options you want to keep when updating a property.
Optional JSON data Used in the request body. See the documentation for creating a company property for more details on the available options you can use.