UpdateAddressBook

Updates an address book by ID

This method updates a specified address book within your account. The information entered will replace any existing information for the address book in terms of its name and/or visibility.

Address book names have a limit of 128 characters.

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

πŸ“˜

Input and output parameters

The input and output parameters for this method are:

Input parameters

  • Address Book
    • Id - required; integer
    • Name - required; string
    • Visibility - optional; string with restriction ('Private', 'Public')

Output parameters

  • CreateAddressBookResult
    • Id - integer
    • Name - string
    • Visibility - string ('Private', 'Public')
    • Contacts - integer

Example

using (var client = new ApiServiceClient())
{
	client.ClientCredentials.UserName.UserName = "username";
	client.ClientCredentials.UserName.Password = "password";

	var addressBook = client.GetAddressBookById(1);
	addressBook.Name = "TestAddressBook";
	var updatedAddressBook = client.UpdateAddressBook(addressBook);
}