code: public ApiResponse<ApiSuccessResponse> logoutAgentStateWithHttpInfo(MediaLogoutData mediaLogoutData) throws ApiException {
          com.squareup.okhttp.Call call = logoutAgentStateValidateBeforeCall(mediaLogoutData, null, null);
          Type localVarReturnType = new TypeToken<ApiSuccessResponse>(){}.getType();
          return apiClient.execute(call, localVarReturnType);
      }
docs: Log out of all media channels
  Log out the current agent on all media channels. You can make a [/media/{mediatype}/ready](/reference/workspace/Media/index.html#readyAgentState) or [/media/{mediatype}/not-ready](/reference/workspace/Media/index.html#notReadyAgentState) request to log in to the media channel again.
  @param mediaLogoutData 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