/scripts/save

Updates or creates a new script. If an id is provided, the corresponding script will be updated. Otherwise, a new script will be created.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string

If set, the script with the corresponding id will be updated.

string

Name of the script. Prepend your name with "lib-" to define your script as a module.

string | null

Name of the branch to associate with the script.

string | null

Javascript source code of the script.

string | null

Markdown description of the script.

manifest
object | null

JSON script manifest.

Headers
string

ID of the org that is perfoming the operation (not necessary when using a third party key)

Responses

400

Branch doesn't exist or script not found.

402

Maximum amount of scripts reached. Please upgrade your plan to unlock more slots for your scripts.

409

A script with the same name already exists.

412

No difference with existing code, manifest and markdown.

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json