| set_thumbnail | R Documentation |
Set the thumbnail for a content item.
set_thumbnail(content, path)
content |
A content item. |
path |
Either a path to a local file or a URL to an image available over
HTTP/HTTPS. If |
The content item (invisibly).
Other thumbnail functions:
delete_thumbnail(),
get_thumbnail(),
has_thumbnail()
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_vanity_url(),
swap_vanity_url(),
swap_vanity_urls(),
terminate_jobs(),
verify_content_name()
## Not run:
client <- connect()
item <- content_item(client, "8f37d6e0-3395-4a2c-aa6a-d7f2fe1babd0")
set_thumbnail(item, "resources/image.png")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.