# POST new contact

**URL:** <https://community.hubspot.com/t/post-new-contact/102102>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [March 8, 2024, 7:15pm UTC](https://community.hubspot.com/t/post-new-contact/102102 "2024-03-08T19:15:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RCarvalho](https://avatars.discourse-cdn.com/v4/letter/r/977dab/32.png) [@RCarvalho](https://community.hubspot.com/u/RCarvalho)\
**Post date:** [March 8, 2024, 7:15pm UTC](https://community.hubspot.com/t/post-new-contact/102102/1 "2024-03-08T19:15:46Z")

</div>

Hi guys,

I need help here.  
I’m using this code to add a new contact in HUbspot

```lia-code-sample
headers = {
 'Authorization': f'Bearer {token}',
 'Content-Type': 'application/json'
}

url = f'https://api.hubapi.com/contacts/v1/contact/'

# Dados do contato a serem inseridos
contact_data = {
 "properties": [
 {
 "property": "email",
 "value": "testingapis@hubspot.com"
 },
 {
 "property": "firstname",
 "value": "Adrian"
 },
 {
 "property": "lastname",
 "value": "Mott"
 },
 {
 "property": "segmento",
 "value": "Industria e Comercio"
 },
 {
 "property": "company",
 "value": "HubSpot"
 },
 {
 "property": "phone",
 "value": "555-122-2323"
 },
 {
 "property": "cargo_dropdown",
 "value": "CEO/Sócio/Proprietário"
 },
 {
 "property": "annualrevenue",
 "value": "Menor que 4,8 milhões"
 },
 ]
}

# Realiza a solicitação POST para criar o contato
response = requests.post(url, json=contact_data, headers=headers)

```

And is working, except for the property: annualrevenue  
the value for her is empty in Hubspot contact page, but the others informations are ok.

can someone help me?

---

<div class="post-metadata">

**Author:** ![Berangere](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/berangere/32/220784_2.png) [@Berangere](https://community.hubspot.com/u/Berangere)\
**Post date:** [March 11, 2024, 10:19am UTC](https://community.hubspot.com/t/post-new-contact/102102/2 "2024-03-11T10:19:14Z")

</div>

Hi @RCarvalho,  
Thank you for asking the Community!  
I understand that you’d like to create a new contact via API and add a value to the [“Annual revenue” contact property](https://knowledge.hubspot.com/properties/hubspots-default-contact-properties#contact) at the same time but this property “annual revenue” is not updating.  
1. What is the response when making this API call, please?  
2. If you try to create a contact and add this same value vie the HubSpot interface (instead of the API), does this work?  
3. If you go to the HubSpot interface, after making the API call, and you look at the details of this property, is there any information?  
You should be able to update this contact property from what I can see.  
I also wanted to invite a couple of subject matter experts to this conversation: Hi @Teun, [@zach\_threadint](https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811) and @ChrisoKlepke do you have suggestions to help @RCarvalho, please?  
Also, if anybody else has anything to add and/or share, please feel free to join in the conversation 🙂  
Thank you so much and have a wonderful day!  
Best,  
Bérangère

---

<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:** [March 12, 2024, 11:45pm UTC](https://community.hubspot.com/t/post-new-contact/102102/3 "2024-03-12T23:45:21Z")

</div>

Hi @RCarvalho 👋

I’ve not been able to replicate the issue you’re experiencing. The only thing I can think of is to try your request again, but this time without the trailing comma after the annualrevenue property assignment.

```lia-code-sample
headers = {
 'Authorization': f'Bearer {token}',
 'Content-Type': 'application/json'
}

url = f'https://api.hubapi.com/contacts/v1/contact/'

# Dados do contato a serem inseridos
contact_data = {
 "properties": [
 {
 "property": "email",
 "value": "testingapis@hubspot.com"
 },
 {
 "property": "firstname",
 "value": "Adrian"
 },
 {
 "property": "lastname",
 "value": "Mott"
 },
 {
 "property": "segmento",
 "value": "Industria e Comercio"
 },
 {
 "property": "company",
 "value": "HubSpot"
 },
 {
 "property": "phone",
 "value": "555-122-2323"
 },
 {
 "property": "cargo_dropdown",
 "value": "CEO/Sócio/Proprietário"
 },
 {
 "property": "annualrevenue",
 "value": "Menor que 4,8 milhões"
 }
 ]
}

# Realiza a solicitação POST para criar o contato
response = requests.post(url, json=contact_data, headers=headers)

```

I hope this proves helpful. Please let me know if you have any follow-up questions.
