/// <summary>
        /// Create a new relation 
        /// </summary>
        /// <param name="ID">Unique ID</param>
        /// <param name="body">Message-Body</param>
        /// <returns></returns>
        public ServiceHasConsumer createServiceHasConsumer(string ID, Consumer body)
        {
            // create path and map variables
            var path = "/consumers/{ID}/serviceHasConsumers".Replace("{format}","json").Replace("{" + "ID" + "}", apiClient.escapeString(ID.ToString()));

            // query params
            var queryParams = new Dictionary<String, String>();
            var headerParams = new Dictionary<String, String>();

            // verify required params are set
            if (ID == null ) {
                throw new ApiException(400, "missing required params");
            }
            string paramStr = null;
            try {
                var response = apiClient.invokeAPI(path, "POST", queryParams, body, headerParams);
                if(response != null){
                    return (ServiceHasConsumer) ApiClient.deserialize(response, typeof(ServiceHasConsumer));
                }
                else {
                    return null;
                }
            } catch (ApiException ex) {
                if(ex.ErrorCode == 404) {
                    return null;
                }
                else {
                    throw ex;
                }
            }
        }
        /// <summary>
        /// Create a new User Group 
        /// </summary>
        /// <param name="body">Message-Body</param>
        /// <returns></returns>
        public Consumer createConsumer(Consumer body)
        {
            // create path and map variables
            var path = "/consumers".Replace("{format}","json");

            // query params
            var queryParams = new Dictionary<String, String>();
            var headerParams = new Dictionary<String, String>();

            string paramStr = null;
            try {
                var response = apiClient.invokeAPI(path, "POST", queryParams, body, headerParams);
                if(response != null){
                    return (Consumer) ApiClient.deserialize(response, typeof(Consumer));
                }
                else {
                    return null;
                }
            } catch (ApiException ex) {
                if(ex.ErrorCode == 404) {
                    return null;
                }
                else {
                    throw ex;
                }
            }
        }