code: public ApiSuccessResponse updateNickname(String id, UpdateNicknameData updateNicknameData) throws ApiException {
          ApiResponse<ApiSuccessResponse> resp = updateNicknameWithHttpInfo(id, updateNicknameData);
          return resp.getData();
      }
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 ApiSuccessResponse
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body