v1

latestOpenAPI 3.0.0ISC2026-07-26782347.5 KB
scripts

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

post/scripts/save

Headers

X-Phantombuster-Orgstring

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

Request body

idstring

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

namestring

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

branchstring nullable

Name of the branch to associate with the script.

codestring nullable

Javascript source code of the script.

markdownstring nullable

Markdown description of the script.

Response

Script updated or inserted successfully.

idstring required
namestring required