/// <summary>
        /// Create a new metadata column.
        /// </summary>
        /// <param name="name">The name of the new metadata column.</param>
        /// <param name="type">The metadata column type.</param>
        /// <returns>An entity representation of the new column.</returns>
        public Responses.MetadataColumnEntity CreateMetadataColumn(string name, MetadataColumnType type)
        {
            Requests.MetadataColumnEntity requestBody = new Requests.MetadataColumnEntity();
            requestBody.Name = name;
            switch (type)
            {
            case MetadataColumnType.MultiNumber:
                requestBody.Type = "multi number";
                break;

            case MetadataColumnType.MultiString:
                requestBody.Type = "multi string";
                break;

            case MetadataColumnType.SingleNumber:
                requestBody.Type = "single number";
                break;

            case MetadataColumnType.SingleString:
                requestBody.Type = "single string";
                break;

            case MetadataColumnType.SumNumber:
                requestBody.Type = "sum number";
                break;
            }

            return(this.connection.Call <Responses.MetadataColumnEntity>("POST", "contactmanager/metadata", null, requestBody));
        }
 /// <summary>
 /// Rename a metadata column.
 /// </summary>
 /// <param name="columnID">The ID of the column to rename.</param>
 /// <param name="name">The new name of the column.</param>
 /// <returns>An entity representation of the updated column.
 /// </returns>
 public Responses.MetadataColumnEntity RenameMetadataColumn(string columnID, string name)
 {
     Requests.MetadataColumnEntity requestBody = new Requests.MetadataColumnEntity();
     requestBody.Name = name;
     return(this.connection.Call <Responses.MetadataColumnEntity>("POST", "contactmanager/metadata/" + columnID, null, requestBody));
 }