| set_vanity_url | R Documentation |
Set the vanity URL for a piece of content.
set_vanity_url(content, url, force = FALSE)
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 |
An updated Content object
Other content functions:
content_delete(),
content_item(),
content_title(),
content_update(),
create_random_name(),
dashboard_url(),
delete_thumbnail(),
delete_vanity_url(),
deploy_repo(),
get_associations(),
get_bundles(),
get_environment(),
get_image(),
get_job(),
get_jobs(),
get_log(),
get_thumbnail(),
get_vanity_url(),
git,
has_thumbnail(),
lock_content(),
permissions,
search_content(),
set_image_path(),
set_integrations(),
set_run_as(),
set_thumbnail(),
swap_vanity_url(),
swap_vanity_urls(),
terminate_jobs(),
verify_content_name()
## Not run:
bnd <- bundle_dir("~/my/directory")
connect() %>%
deploy(bnd) %>%
set_vanity_url("a/vanity/url")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.