Nerdio icon

Nerdio

Manage Azure Virtual Desktop and Windows 365 with Nerdio Manager for MSP

Actions63

Scripted Action → Update

AI-generated

Summary

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]'

Links

Discussion