Actions63
- Account Actions
- Auto-Scale Profile Actions
- Backup Actions
- Cost Estimator Actions
- Desktop Image Actions
- Group Actions
- Host Actions
- Host Pool Actions
- Job Actions
- Network Actions
- Recovery Vault Actions
- Reservation Actions
- Resource Group Actions
- Schedule Actions
- Scripted Action Actions
- Secure Variable Actions
- Storage Actions
- Test Actions
- User Actions
- User Session Actions
Scripted Action → Update
AI-generatedSummary
Updates the name, description, or PowerShell script of an existing account- or MSP-level scripted action.
Inputs
- scope (required) — Whether to operate on account-level or MSP-level scripted actions. Defaults to 'account'.
- accountId (required) — The account to operate on. Required when scope is 'account'.
- actionId (required) — The scripted action to operate on. Required for 'get', 'update', and 'delete' operations.
- updateFields — A collection of fields to update. Options include 'Name' (new name), 'Description' (description), and 'Script' (PowerShell script).
Output shape
a single record containing the updated scripted action details
If the update triggers an asynchronous job, the response includes the job ID; setting 'Wait for Completion' to true will poll for job status up to the configured maximum wait time.
Examples
Example 1: Update an account-level scripted action's name and description
Scope: Account, Account ID: [Selected Account], Action ID: [Selected Action], Update Fields: Name: 'New Action Name', Description: 'Updated description'
Example 2: Update an MSP-level scripted action's PowerShell script
Scope: MSP, Action ID: [Selected Action], Update Fields: Script: '[Updated PowerShell Script]'