# Update Contact's custom property

**URL:** <https://community.hubspot.com/t/update-contacts-custom-property/23377>\
**Category:** APIs & Integrations\
**Tags:** cms-content\
**Created:** [July 24, 2020, 8:29pm UTC](https://community.hubspot.com/t/update-contacts-custom-property/23377 "2020-07-24T20:29:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jandrews](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jandrews/32/99949_2.png) [@jandrews](https://community.hubspot.com/u/jandrews)\
**Post date:** [July 24, 2020, 8:29pm UTC](https://community.hubspot.com/t/update-contacts-custom-property/23377/1 "2020-07-24T20:29:40Z")

</div>

Hello,

I’m using the[API documentation](https://developers.hubspot.com/docs/api/crm/contacts) to update a single property of a contact. I keep getting the below error message:

`Error: One or more parameters provided did not match the function signature`

My function signature mirrors tat of the documentation. and I cannot figure out what I am doing wrong. The custom property I am trying to update is a string value. Please help.

 ![29623i886425DE683F605E.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/c/6cbabf156c49be079b58bc50cf2ff9323fa6ece5.png)

---

<div class="post-metadata">

**Author:** ![WendyGoh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wendygoh/32/42320_2.png) [@WendyGoh](https://community.hubspot.com/u/WendyGoh)\
**Post date:** [July 27, 2020, 8:48am UTC](https://community.hubspot.com/t/update-contacts-custom-property/23377/2 "2020-07-27T08:48:52Z")

</div>

Hey @jandrews,

In order for me to further troubleshoot this, could you share with me the following:

1. Are you using the PATCH **/crm/v3/objects/contacts/{contactId}** endpoint?

2. If so, what’s the exact POST body that you’re using?

3. What’s the authentication type that you’re using - API key/OAuth?

4. What’s the portal ID in question?

---

<div class="post-metadata">

**Author:** ![jandrews](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jandrews/32/99949_2.png) [@jandrews](https://community.hubspot.com/u/jandrews)\
**Post date:** [July 27, 2020, 2:20pm UTC](https://community.hubspot.com/t/update-contacts-custom-property/23377/3 "2020-07-27T14:20:28Z")

</div>

Hi Wendy,

Below are my responses:

1. Yes, I am using the PATCH /crm/v3/objects/contacts/{contactId} endpoint
2. 

```auto

```

({  
method: ‘PATCH’,  
url: ‘[https://api.hubapi.com/crm/v3/objects/contacts](https://api.hubapi.com/crm/v3/objects/contacts)’ + hubspotID,  
headers: {  
‘content-type’: ‘application/json’  
},  
queryParams: {  
‘hapikey’: TEST\_HUBSPOT\_API\_KEY  
},  
body: JSON.stringify({  
‘properties’: {  
‘stripe’: stripeID  
}  
}),  
json: true  
});Varaibles in the above code: hubspotID = vid and stripeID = customer id

```auto
1. I'm using hapikey for authorization
1. portal ID is 7296433
```

---

<div class="post-metadata">

**Author:** ![WendyGoh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wendygoh/32/42320_2.png) [@WendyGoh](https://community.hubspot.com/u/WendyGoh)\
**Post date:** [July 28, 2020, 3:38am UTC](https://community.hubspot.com/t/update-contacts-custom-property/23377/4 "2020-07-28T03:38:50Z")

</div>

Hey @jandrews,

On my end, when I test out the following:

PATCH crm/v3/objects/contacts/11801

POST body

```auto
{
 "properties": {
 "stripe": 123
 }
 }

```

I was able to a 200 response.

In this case, it seems that the url that you’re using may be missing a ‘/’. Right now you’re using:

```auto
 url: 'https://api.hubapi.com/crm/v3/objects/contacts' + hubspotID,

```

however after contacts there should be a ‘/’. As such, could you try the following:

```auto
 url: 'https://api.hubapi.com/crm/v3/objects/contacts/' + hubspotID,

```

and see if it works?

---

<div class="post-metadata">

**Author:** ![jandrews](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jandrews/32/99949_2.png) [@jandrews](https://community.hubspot.com/u/jandrews)\
**Post date:** [July 28, 2020, 6:33pm UTC](https://community.hubspot.com/t/update-contacts-custom-property/23377/5 "2020-07-28T18:33:06Z")

</div>

@WendyGoh , unfortunately, the “/” did not make a difference. I still get the response

`Error: One or more parameters provided did not match the function signature`

---

<div class="post-metadata">

**Author:** ![jandrews](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jandrews/32/99949_2.png) [@jandrews](https://community.hubspot.com/u/jandrews)\
**Post date:** [July 29, 2020, 12:40am UTC](https://community.hubspot.com/t/update-contacts-custom-property/23377/6 "2020-07-29T00:40:26Z")

</div>

Got it working! thanks for your help
