APIs & Integrations

BKang6
Member

Can't I create properties of HubSpotuser field type through properties API?

Hello, I need help.

 

When trying to create a property of type "HubSpotuser", buy occur the errors “has no options but options are required!”

 

My goal is to create a new property by copying the existing property. However, if you inquire, the field type responds with a select type.

 

Can't I create properties of HubSpotuser field type through API?

 

Existing deal properties on hubspot

BKang6_0-1661762044002.png

 

Property Get Response

 

 

{
    ... 
    "name": "account_manager",
    "label": "Account Manager*",
    "type": "enumeration",
    "fieldType": "select",
    "description": "",
    "groupName": "[hubspot2.0]_deals_quote_request_required",
    "options": [],
    "calculated": false,
    "externalOptions": true,
    "archived": false,
    "hasUniqueValue": false,
    "hidden": false,
    "showCurrencySymbol": false,
    "modificationMetadata": {
        "archivable": true,
        "readOnlyDefinition": false,
        "readOnlyValue": false
    },
    "formField": false
},

 

 

 

 

Post Request parameters

{
  "name": "account_manager2",
  "label": "Account Manager*2",
  "groupName": "[hubspot2.0]_deals_quote_request_required",
  "type": "enumeration",
  "fieldType": "select"
}

Post Response

{
    "status": "error",
    "message": "Property 'account_manager2' has no options but options are required!",
    "propertiesErrorCode": "PROPERTY_INVALID"
}

 

 

 

 

 

 

0 Upvotes
1 Reply 1
Jaycee_Lewis
Community Manager
Community Manager

Can't I create properties of HubSpotuser field type through properties API?

Hi, @BKang6, thanks for reaching out. To confirm, this field-type can only be created in-app. I reviewed the dev documentation and did not find a mention of this being achievable via the API at this time. Thanks for the great question!

 

Best,

Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes