How to update custom fields?

I am able to post and update email, firstName, lastName and phoneNumber but unable to post/update the custom fields for my contacts using the API v3?

What would the structure look like for updating custom fields?

Thank you!

@flockjay Did you found any solutions for this?