Update a StackScript

Updates a StackScript.

Once a StackScript is made public, it cannot be made private.

Permissions and scopes

To call this operation, you need the following:

  • Identity and access permissions. Your user needs these roles assigned. Learn more.

    • Roles: stackscript_admin
  • OAuth scopes. Your user needs these scopes assigned. Learn more.

    • Scopes: stackscripts:read_write

CLI

linode-cli stackscripts update 10079 \
  --label a-stackscript \
  --description "This StackScript installs \
    and configures MySQL" \
  --images "linode/debian13" \
  --images "linode/debian13" \
  --is_public true \
  --rev_note "Set up MySQL" \
  --script '#!/bin/bash'

Learn more

Path Params
string
enum
required

Enum Call either the v4 URL, or v4beta for operations still in Beta.

Allowed:
string
required

The ID of the StackScript to look up.

Body Params

A StackScript on your account, which you can use to automatically deploy a fully configured application.

string

Filterable A description for the StackScript.

images
array of strings

An array of Image IDs. These are the Images that can be deployed with this StackScript.

any/all indicates that all available Images, including private Images, are accepted.

images
boolean

Filterable This determines whether other users can use your StackScript. Once a StackScript is made public, it cannot be made private.

string
length between 3 and 128

Filterable The StackScript's label is for display purposes only.

string

Filterable This field allows you to add notes for the set of revisions made to this StackScript.

string

The script to execute when provisioning a new Linode with this StackScript.

Responses

Language
Credentials
LoadingLoading…
Response
Choose an example:
application/json