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: acl_add_user(), content_delete(), content_item(), content_title(), content_update(), create_random_name(), dashboard_url_chr(), dashboard_url(), delete_vanity_url(), deploy_repo(), get_acl_user(), get_bundles(), get_environment(), get_image(), get_jobs(), get_vanity_url(), git, permissions, set_image_path(), set_run_as(), swap_vanity_url(), verify_content_name()

Examples

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

## End(Not run)


connectapi documentation built on Feb. 16, 2023, 7:46 p.m.