Updating end user custom fields | Community
Skip to main content

Updating end user custom fields

  • October 15, 2022
  • 2 replies
  • 0 views

I am very familiar with working with various API's however cannot get the API to work for updating an end-user custom/user field.  No problems at all with update basic profile info (ex. name, email, etc) but am unable to update the custom fields on a user profile.

Cannot locate any specific documentation for update end user custom fields - have used various payload formats - the name always updates but not the custom fields;

examples;

{'user': {'name': 'Test user test1'}, 'user_fields': [{'id': '6920834812685', 'value': 'test}]}

{'user': {'name': 'Test user test2'}, 'user_fields': [{'id': ''<custom field name>', 'value': 'test}]}

{'user': {'name': 'Test user test3'}, 'user_fields': {'<custom field name>':'test'}}

Thanks

2 replies

Jack23
  • October 16, 2022

I think your formatting is wrong
Should be:

{
“user”: {
“name”: “Steve Jobs”,
“user_fields”: {
“my_user_field”: “value”
}
}
}


  • Author
  • October 16, 2022

@Appamondo Jack, yes, you are 100% correct - typo's are the bane of my existence :)

Thank you for the extra set of eyes.

Dennis