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