Waiting for engine...
Skip to main content

useUpdateEnvironmentExtensions()

useUpdateEnvironmentExtensions():

{ updateEnvironmentExtensions, isUpdating, updateError, +1 more }

Provides an imperative updateEnvironmentExtensions function to update a single environment extension record. Sets partial=true prior to update to indicate a partial update. Updates plugin config after completion.

Throws

If required inputs are missing or the update call fails.

Returns

Hook API exposing the update function and request state.

isUpdating
boolean

updateError
string

updatedExtension
EnvironmentExtensions

updateEnvironmentExtensions()

updateEnvironmentExtensions: (extension: EnvironmentExtensions, environmentId: string, extensionGroupId: string) => Promise<void>

Parameters

extension
EnvironmentExtensions Single EnvironmentExtensions object (not an array).

environmentId
string The environment ID the extension belongs to.

extensionGroupId
string The extension group ID (required by caller; currently unused here).

Returns

Promise<void>
On this Page