code: public ApiResponse<ApiSuccessResponse> updateNicknameWithHttpInfo(String id, UpdateNicknameData updateNicknameData) throws ApiException {
          com.squareup.okhttp.Call call = updateNicknameValidateBeforeCall(id, updateNicknameData, null, null);
          Type localVarReturnType = new TypeToken<ApiSuccessResponse>(){}.getType();
          return apiClient.execute(call, localVarReturnType);
      }
docs: Update an agent&#39;s nickname
  Update the agent&#39;s nickname for the specified chat.
  @param id The ID of the chat interaction. (required)
  @param updateNicknameData Request parameters. (optional)
  @return ApiResponse&lt;ApiSuccessResponse&gt;
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body