#' Update experiment
#'
#' Updates an experiment.
#'
#' @param experimentId ID of experiment.
#' @param properties Properties to set on the experiment.
#' @export
#' @examples
#' \dontrun{
#' updateExperiment(experimentId, list("name" = "my experiment"))
#' }
updateExperiment <- function(experimentId, properties = list()) {
stopIfParamIsNull(experimentId)
experimentId <- lookupByName("/api/v1/experiments", experimentId)
body <- jsonlite::toJSON(properties, null = "null", auto_unbox = TRUE)
basePatch(paste0("/api/v1/experiments/", experimentId), body)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.