/// <summary>
    /// Update a dictionary Update an existing dictionary.
    /// </summary>
    /// <param name="DictionaryId">Dictionary Id</param>/// <param name="Input">Input with dictionary id</param>
    /// <returns>DictionaryUpdateResponse</returns>
    public async Task<DictionaryUpdateResponse> ResourcesDictionaryUpdatePostAsync (string DictionaryId, DictionaryUpdateBody Input) {

      
          // verify the required parameter 'DictionaryId' is set
          if (DictionaryId == null) throw new ApiException(400, "Missing required parameter 'DictionaryId' when calling ResourcesDictionaryUpdatePost");
      
          // verify the required parameter 'Input' is set
          if (Input == null) throw new ApiException(400, "Missing required parameter 'Input' when calling ResourcesDictionaryUpdatePost");
      

      var path = "/resources/dictionary/update";
      path = path.Replace("{format}", "json");
      

      var queryParams = new Dictionary<String, String>();
      var headerParams = new Dictionary<String, String>();
      var formParams = new Dictionary<String, String>();
      var fileParams = new Dictionary<String, String>();
      String postBody = null;

       if (DictionaryId != null) queryParams.Add("dictionaryId", apiClient.ParameterToString(DictionaryId)); // query parameter
      
      
      
      postBody = apiClient.Serialize(Input); // http body (model) parameter
      

      // authentication setting, if any
      String[] authSettings = new String[] { "accessToken", "apiKey" };

      // make the HTTP request
      IRestResponse response = (IRestResponse) await apiClient.CallApiAsync(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
      if (((int)response.StatusCode) >= 400) {
        throw new ApiException ((int)response.StatusCode, "Error calling ResourcesDictionaryUpdatePost: " + response.Content, response.Content);
      }
      return (DictionaryUpdateResponse) apiClient.Deserialize(response.Content, typeof(DictionaryUpdateResponse));
    }
        public void ResourcesDictionaryUpdatePostTest()
        {
            EntriesListResponse entriesListResponse = new EntriesListResponse();

            DictionaryUpdateBody dictionaryUpdateBody = new DictionaryUpdateBody();
            DictionaryUpdateInput dictionaryUpdateInput = new DictionaryUpdateInput();
            dictionaryUpdateInput.Comments = "This dictionary has been created and updated for csharp client testing purposes";
            dictionaryUpdateBody.Dictionary = dictionaryUpdateInput;

            DictionaryUpdateResponse dictionaryUpdateResponse = new DictionaryUpdateResponse();
            dictionaryUpdateResponse = dictionaryApi.ResourcesDictionaryUpdatePost(dictionaryId, dictionaryUpdateBody);
            Assert.IsNotNull(dictionaryUpdateResponse.Updated);
        }