// Script Modules

Update a script module

Update a script module's body, language, or metadata.

PUT/api/script-module

Description

Updates the script module. Pass only the fields to change.

Parameters

NameInTypeRequiredDescription
scriptModuleId body string yes ID of the script module.
name body string no New name.
description body string no New description.
script body string no New script body.
scriptLanguage body string no New script language.

Errors

StatusMeaning
400 Invalid scriptModuleId or validation failure.
401 Missing or invalid Basic auth credentials, or the service account lacks the required role.