Once an API has been deployed to Posit Cloud, deploying something with the
same name will not automatically update the existing API. Instead, you must
supply the appId
argument to rsconnect::deployApp()
, and not the
appName
argument. This function walks you through that process.
Usage
redeploy_pkg_api(
package,
folder_name,
app_id,
...,
cookie_endpoint_src = NULL,
server = "posit.cloud"
)
Arguments
- package
Character. The name of the package that contains the API.
- folder_name
Character. The name of the folder that contains the API.
- app_id
Character or numeric. The number that identifies your API. You can find this number in the URL of your API's page on Posit Cloud. For example, for the app at
posit.cloud/content/12345
, the id is "12345".- ...
Additional arguments to
rsconnect::deployApp()
.- cookie_endpoint_src
Character. The source code for the cookie endpoint, such as those returned by
cookie_endpoint_httr2()
andcookie_endpoint_simple()
. By default this isNULL
here to remove the cookie endpoint.- server
Character. The server to deploy to. Defaults to "posit.cloud".