v1

latestOpenAPI 3.0.0ISC2026-07-26782347.5 KB
Script

Update an existing script or create a new one if it does not exist (in this case, the new script ID is returned in the data field).

post/script/{name}

Path parameters

namestring required

Name of the script to update or create, with its extension (.js or .coffee).

Query parameters

textstring required

Full text contents of the script. This parameter must be in the request body in x-www-form-urlencoded format.

insertOnlyboolean

If true, make sure that we don’t update an existing script (optional). An error will be returned if a script with the same name already exists.

Response

Success

statusstring
datanumber

Example response

{
  "status": "success",
  "data": 345
}