# How do I update custom fields?

**URL:** <https://integration.keap.com/t/how-do-i-update-custom-fields/67722>\
**Category:** API Q&A\
**Created:** [April 21, 2019, 8:24pm UTC](https://integration.keap.com/t/how-do-i-update-custom-fields/67722 "2019-04-21T20:24:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vesh\_RedoxPeople.com](https://avatars.discourse-cdn.com/v4/letter/v/278dde/32.png) [@Vesh\_RedoxPeople.com](https://integration.keap.com/u/Vesh_RedoxPeople.com)\
**Post date:** [April 21, 2019, 8:24pm UTC](https://integration.keap.com/t/how-do-i-update-custom-fields/67722/1 "2019-04-21T20:24:01Z")

</div>

How do I update custom fields?

```
	$contactdata = array(
		custom_fields => [content => $row[1], id =>'3'],[content => $row[2], id =>'1'],[content => $row[3], id =>'15'],[content => $row[4], id =>'17']
	);

	$contact = $infusionsoft->restfulRequest('GET', "https://api.infusionsoft.com/crm/rest/v1/contacts/$contactid", ['contactid'=>$contactid, 'contact'=>$contactdata, 'update_mask'=>'custom_fields']);

```
