script
create script
Changed onCreates a new script at a path that does not already hold one. Supplying parent_hash instead deploys a new version of the script that hash names, and a path differing from that version's moves the script there. POST /w/{workspace}/scripts/update/{path} does the same, naming the superseded version in its URL.
post/w/{workspace}/scripts/create
Request
- Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
- URL: /api/w/{workspace}/scripts/create
- Auth: one of:
- HTTP bearer
- API key in cookie token
Path parameters
workspacestring required
Request body
Response
script created
Changes
- info
added the new optional request property
- info
- info
added the new optional request property
- info