#' Update gate family
#'
#' Updates a gate family.
#'
#' @param experimentId ID of experiment.
#' @param gid Gate family ID
#' @param properties Properties to set on the gate.
#' @param params Optional query parameters.
#' @export
#' @examples
#' \dontrun{
#' updateGateFamily(experimentId, gid, list("name" = "new gate name"))
#' }
#'
updateGateFamily <- function(experimentId, gid, properties = list(), params = list()) {
stopIfParamIsNull(experimentId)
experimentId <- lookupByName("/api/v1/experiments", experimentId)
stopIfParamIsNull(gid)
body <- jsonlite::toJSON(properties, null = "null", auto_unbox = TRUE)
url <- sprintf("/api/v1/experiments/%s/gates?gid=%s", experimentId, gid)
basePatch(url, body, params)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.