Create script
Creates a script and returns it with its server-assigned id and version.
Send the fields at the top level of the body. Don’t send id or version.num; version.change_description is required. Anything this script refers to must already exist.
Authentication
AuthorizationBearer
JWT bearer token authentication. Include the Configuration API key in the Authorization header as ‘Bearer <token>’.
Request
This endpoint expects an object.
signature
The script's name, description, input arguments and result schema. The name is the key the script is referenced by.
code
Script code. Inputs are available by their argument names, and the last line must be an expression whose value is returned.
version
Document version. On update, send back the num from your last read.
secrets
Secrets the script can read by name.
Response
The created script
id
Unique identifier of the script, assigned by the server.
signature
The script's name, description, input arguments and result schema. The name is the key the script is referenced by.
language
Programming language of the script. Set to PYTHON for scripts created through this API.
code
Script code. Inputs are available by their argument names, and the last line must be an expression whose value is returned.
secrets
Secrets the script can read by name.
updated_time
When the configuration was last updated.
updated_by
Who last updated the configuration.
version
Document version. On update, send back the num from your last read.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error