R/update_group.R

#' Update Groups
#'
#' @param resource_details Named nested list. Required. Must provide:
#' id, snippet title
#' @param \dots Additional arguments passed to \code{\link[tubern]{tubern_PUT}}.
#'
#' @return named list
#'
#' @export
#'
#' @references \url{https://developers.google.com/youtube/analytics/reference/groups/update}
#'
#' @examples
#'
#' \dontrun{
#' update_group(list(id="ABZZzGSIAAA", snippet = list(title ="hello")))
#' }

update_group <- function (resource_details, ...) {
  assert_list(resource_details, .var.name = "resource_details")

  json_arg <- toJSON(resource_details, auto_unbox = TRUE)
  tubern_PUT("groups", body = json_arg, encode = "json", ...)
}

Try the tubern package in your browser

Any scripts or data that you put into this service are public.

tubern documentation built on April 12, 2026, 5:07 p.m.