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