Skip to main content
Account Scripts & Files

Create an account script

Create an account script

POST
/account/scripts
Authorizationstringheaderrequired

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

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 newly created 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.