/// <summary>
    /// Update an entry Update an entry in an existing dictionary.
    /// </summary>
    /// <param name="DictionaryId">Dictionary Id</param>/// <param name="Input">Input with dictionary id + entry id (src or tgt) to delete</param>
    /// <returns>EntryUpdateResponse</returns>
    public async Task<EntryUpdateResponse> ResourcesDictionaryEntryUpdatePostAsync (string DictionaryId, EntryUpdateBody Input) {

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

      var path = "/resources/dictionary/entry/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 ResourcesDictionaryEntryUpdatePost: " + response.Content, response.Content);
      }
      return (EntryUpdateResponse) apiClient.Deserialize(response.Content, typeof(EntryUpdateResponse));
    }
        public void ResourcesDictionaryEntryUpdatePostTest()
        {
            EntriesListFilters entriesListFilters = new EntriesListFilters();
            EntriesListResponse entriesListResponse = new EntriesListResponse();
            entriesListResponse = dictionaryApi.ResourcesDictionaryEntryListPost(dictionaryId, entriesListFilters);

            EntryUpdateBody entryUpdateBody = new EntryUpdateBody();
            EntryUpdateInput entryUpdateInput = new EntryUpdateInput();
            EntryUpdateResponse entryUpdateResponse = new EntryUpdateResponse();
            entryUpdateBody.SourceId = entriesListResponse.Entries[0].SourceId;
            entryUpdateBody.TargetId = entriesListResponse.Entries[0].TargetId;

            entryUpdateInput.Priority = "";
            entryUpdateInput.Type = "";
            entryUpdateInput.SourcePos = "";
            entryUpdateInput.TargetPos = "";
            entryUpdateInput.Source = "example";
            entryUpdateInput.Target = "exemple";
            entryUpdateInput.TargetLang = "fr";
            entryUpdateInput.SourceLang = "en";
            entryUpdateBody.Update = entryUpdateInput;

            entryUpdateResponse = dictionaryApi.ResourcesDictionaryEntryUpdatePost(dictionaryId, entryUpdateBody);
            Assert.IsNotNull(entryUpdateResponse.TargetId);
        }