Create and return a copy of a new property for the specified object type.
Supported products
Required Scopes
The access token received from the authorization server in the OAuth 2.0 flow.
Controls how the property appears in HubSpot.
booleancheckbox, calculation_equation, checkbox, date, file, html, number, phonenumber, radio, select, text, textarea The name of the property group the property belongs to.
A human-readable property label that will be shown in HubSpot.
The internal property name, which must be used when referencing the property via the API.
The data type of the property.
bool, date, datetime, enumeration, number, phone_number, string Represents a formula that is used to compute a calculated property.
highly_sensitive, non_sensitive, sensitive A description of the property that will be shown as help text in HubSpot.
Properties are displayed in order starting with the lowest positive integer value. Values of -1 will cause the property to be displayed after any positive values.
Applicable only for 'enumeration' type properties. Should be set to true in conjunction with a 'referencedObjectType' of 'OWNER'. Otherwise false.
Whether or not the property can be used in a HubSpot form.
Whether or not the property's value must be unique. Once set, this can't be changed.
If true, the option will not be shown in forms, bots, or meeting scheduling pages. Supported for contact, company, ticket, and custom object enumeration properties.
A list of valid options for the property. This field is required for enumerated properties.
Should be set to 'OWNER' when 'externalOptions' is true, which causes the property to dynamically pull option values from the current HubSpot users.
successful operation
A HubSpot property
{
"displayOrder": 2,
"fieldType": "select",
"formField": true,
"groupName": "contactinformation",
"hasUniqueValue": false,
"hidden": false,
"label": "My Contact Property",
"modificationMetadata": {
"archivable": true,
"readOnlyDefinition": false,
"readOnlyOptions": false,
"readOnlyValue": false
},
"name": "my_contact_property",
"options": [
{
"description": "Choice number one",
"displayOrder": 1,
"hidden": false,
"label": "Option A",
"value": "A"
},
{
"description": "Choice number two",
"displayOrder": 2,
"hidden": false,
"label": "Option B",
"value": "B"
}
],
"type": "enumeration"
}