Updating custom fields using API