UpdatePreference

Updates a preference or preference category that has a given ID

This method updates the preference or preference category that has a given ID.

SOAP action: http://apiconnector.com/v2/ApiService/UpdatePreference

📘

Input and output parameters

Input parameters

  • PreferenceID - required; integer
  • PrivateName - string
  • PublicName - string
  • Order - integer or string ('top' or 'bottom')
  • IsPublic - boolean
  • CategoryID - integer

Example

using (var client = new ApiServiceClient())
{
    client.ClientCredentials.UserName.UserName = "username";
    client.ClientCredentials.UserName.Password = "password";               
    var preference = new ApiPreference()
    {
        Id = 1,
        IsPreference = true,
        PrivateName = "Preference name",
        PublicName = "Preference name",
    Order = 0,
    IsPublic = true
        CategoryId = 5,
    };

 var result = client.UpdatePreference(preference);
}