code: public ApiSuccessResponse accept(String mediatype, String id, AcceptData6 acceptData) throws ApiException {
          ApiResponse<ApiSuccessResponse> resp = acceptWithHttpInfo(mediatype, id, acceptData);
          return resp.getData();
      }
docs: Accept an incoming interaction
  Accept the specified interaction.
  @param mediatype The media channel. (required)
  @param id The ID of the interaction to accept. (required)
  @param acceptData Request parameters. (optional)
  @return ApiSuccessResponse
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body