Skip to main content
Account Scripts & Files

Update an account script

Numeric id, or the slug string from script list or detail responses (unique per script).

PATCH
/account/scripts/{scriptId}
Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

scriptIdstringrequired

Numeric id or slug

Body

application/json

User script to be created

contentstringrequired

The script

descriptionstring

Description of the script

filenamestringrequired

Filename of the script

labelsstring[]

Labels to attach to the script

namestringrequired

Name of the script

Response

application/json

The updated account script

contentstring

Script content

descriptionstring

Script description

filenamestring

Script filename

idinteger

Script ID

labelsstring[]

Script labels

namestring

Script name

slugstring

Unique slug: sanitized filename base plus '-' and script id (e.g. my-install-sh-42). Use this value when referencing a script by slug in API paths or deploy bodies; numeric id still accepted.