Renames an app, changes its entrypoint, or publishes a new bundle.
func (
r *CustomAppService) Update(ctx context.Context,
customAppID string,
body CustomAppUpdateParams,
opts ...option.RequestOption) (res *CustomApp,
err error
)Renames an app, changes its entrypoint, or publishes a new bundle. Sending files replaces the whole bundle: the new version goes live for every viewer at once, and the previous version is not kept. A request without files, such as a rename, does not publish. Files, when sent, must include the entrypoint. Without files, a changed entrypoint must name a file in the current bundle. A new name already used by another app in the same workspace, or by another organization-scoped app for an app shared with the organization, is refused with 409, as is an update that races another update of the same app. On a plan limited to one app, publishing files to an app that has never been deployed is refused with 403 and code custom_app_limit_reached when the organization already has a deployed app.
| Name | Type | Description |
|---|---|---|
ctx* | context.Context | |
customAppID* | string | |
body* | CustomAppUpdateParams | |
opts* | ...option.RequestOption |