# Creating "Phone number" custom property doesn't work via API

**URL:** <https://community.hubspot.com/t/creating-phone-number-custom-property-doesnt-work-via-api/89632>\
**Category:** APIs & Integrations\
**Tags:** developer-tools, contacts\
**Created:** [September 14, 2023, 9:23am UTC](https://community.hubspot.com/t/creating-phone-number-custom-property-doesnt-work-via-api/89632 "2023-09-14T09:23:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sachavskyi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sachavskyi/32/39641_2.png) [@Sachavskyi](https://community.hubspot.com/u/Sachavskyi)\
**Post date:** [September 14, 2023, 9:23am UTC](https://community.hubspot.com/t/creating-phone-number-custom-property-doesnt-work-via-api/89632/1 "2023-09-14T09:23:42Z")

</div>

Can’t create “Phone number” custom property via API.  
My request:

```lia-code-sample
{
 "label": "custom_phone22",
 "name": "custom_phone",
 "entity": "contacts",
 "groupName": "contactinformation",
 "formField": true,
 "type": "string",
 "fieldType": "phonenumber"
}

```

Response from HubSpot API:

```lia-code-sample
{
 "status": "error",
 "message": "Invalid input JSON on line 1, column 147: Enum type must be one of: [calculation_equation, checkbox, number, textarea, booleancheckbox, file, text, date, radio, select]",
 "correlationId": "7f908a30-dc7a-4f51-bd69-544ef052702a",
 "category": "VALIDATION_ERROR"
}

```

The same for html (Rich text).

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [September 14, 2023, 9:41pm UTC](https://community.hubspot.com/t/creating-phone-number-custom-property-doesnt-work-via-api/89632/2 "2023-09-14T21:41:51Z")

</div>

Hey, @Sachavskyi 👋 I have this post marked for more research. I’ll follow up here. I believe there was another recent similar post that might be helpful to add to our case.

Talk soon! —Jaycee

---

<div class="post-metadata">

**Author:** ![Sachavskyi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sachavskyi/32/39641_2.png) [@Sachavskyi](https://community.hubspot.com/u/Sachavskyi)\
**Post date:** [September 19, 2023, 9:43am UTC](https://community.hubspot.com/t/creating-phone-number-custom-property-doesnt-work-via-api/89632/3 "2023-09-19T09:43:26Z")

</div>

[@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) any news?

---

<div class="post-metadata">

**Author:** ![zach\_threadint](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zach_threadint/32/46318_2.png) [@zach\_threadint](https://community.hubspot.com/u/zach_threadint)\
**Post date:** [February 29, 2024, 7:18am UTC](https://community.hubspot.com/t/creating-phone-number-custom-property-doesnt-work-via-api/89632/4 "2024-02-29T07:18:41Z")

</div>

Hi [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) 👋

I’ve just encountered this same issue on both single and batch create Contact property endpoints. Is there any update on if/when this might be addressed? Thanks 🙌

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [March 5, 2024, 3:38pm UTC](https://community.hubspot.com/t/creating-phone-number-custom-property-doesnt-work-via-api/89632/5 "2024-03-05T15:38:09Z")

</div>

Hey, [@zach\_threadint](https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811) 👋 I took this to the team that owns the CRM endpoints. I’ll post here when I get a reply.

Talk soon! — Jaycee

---

<div class="post-metadata">

**Author:** ![matheus\_jiran](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/matheus_jiran/32/222_2.png) [@matheus\_jiran](https://community.hubspot.com/u/matheus_jiran)\
**Post date:** [November 10, 2023, 5:48pm UTC](https://community.hubspot.com/t/creating-phone-number-custom-property-doesnt-work-via-api/89632/6 "2023-11-10T17:48:00Z")

</div>

This issue is still happening. The workaround is creating the phonenumber properties manually.

Upvote and comment for visibility, since this seems to be a bug.  
Edit: the property object was read from an existing property in HubSpot itself, so it is not a matter of configuration. It is really an issue.

---

<div class="post-metadata">

**Author:** ![Julien7720](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/julien7720/32/99678_2.png) [@Julien7720](https://community.hubspot.com/u/Julien7720)\
**Post date:** [May 30, 2024, 9:04am UTC](https://community.hubspot.com/t/creating-phone-number-custom-property-doesnt-work-via-api/89632/7 "2024-05-30T09:04:35Z")

</div>

any news we have the same problem
