set_vanity_url: Set the Vanity URL

View source: R/deploy.R

set_vanity_urlR Documentation

Set the Vanity URL

Description

Sets the Vanity URL for a piece of content.

Usage

set_vanity_url(content, url, force = FALSE)

Arguments

content

A Content object

url

The path component of the URL

force

optional. Default FALSE. Whether to force-reassign a vanity URL that already exists

Value

An updated Content object

See Also

Other content functions: content_delete(), content_item(), content_title(), content_update(), create_random_name(), dashboard_url(), dashboard_url_chr(), delete_thumbnail(), delete_vanity_url(), deploy_repo(), get_bundles(), get_environment(), get_image(), get_job(), get_jobs(), get_thumbnail(), get_vanity_url(), git, has_thumbnail(), permissions, set_image_path(), set_run_as(), set_thumbnail(), swap_vanity_url(), terminate_jobs(), verify_content_name()

Examples

## Not run: 
bnd <- bundle_dir("~/my/directory")
connect() %>%
  deploy(bnd) %>%
  set_vanity_url("a/vanity/url")

## End(Not run)


rstudio/connectapi documentation built on Dec. 20, 2024, 1:48 p.m.