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.

Modify an object type

Last updated June 17, 2020

PUT /extensions/sales-objects/v1/object-types/:object-type-id

Method Details

HTTP Methods:

PUT

Content Type:

application/json

Response Format:

json

Requires Authentication?

Yes

Rate Limited?

Yes

Headers

User-Agent

Products:

Developer Tools

Required Scope:

integration-sync

Update the details for an existing object type. See creating an object type or the overview page for details on the required fields.

Note: The entire JSON structure for the object type must be provided in the request body. Anything not proviuded in the request body will be removed from the object type.

Required Parameters How to use Description
Developer HAPIkey hapikey=
used in the request URL
Your Developer HAPIkey. This must be a Developer HAPIkey associated with the Developer portal that the OAuth app was created in.
Object type id :object-type-id
used in the request URL
The id of the object type you want to update.
Object details Used in the request body The JSON representing the details for the object type.See creating an object type or the overview page for details on the required fields.

Returns a 200 response with the JSON for the updated object on success.