Run a stored Python script via the scheduler
POST
/api/v1/{tenantId}/scripts/{scriptId}/execute
Wraps the script in a transient scheduler operation and dispatches it. Returns the scheduler ThreadId for log polling. The schedule is not persisted to the user’s saved-schedule list.
Plugin API access: this operation accepts a plugin JWT (PluginBearer) for its own tenant.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” scriptId
required
string
tenantId
required
string
Responses
Section titled “ Responses ”OK
object
executionId
string
threadId
integer format: int64
execution
object
id
string
threadId
integer format: int64
status
integer format: int32
startedAt
string format: date-time
completedAt
string format: date-time
exitCode
integer format: int32
errorMessage
string
startedByUserId
string
lineCount
integer format: int64
stdErrLineCount
integer format: int64
firstSequenceNumber
integer format: int64
lastSequenceNumber
integer format: int64
scriptSnapshot
object
scriptId
string
name
string
content
string
parentFolderId
string
version
integer format: int32
contentHash
string
Bad Request
object
message
string
code
string
Too Many Requests
object
message
string
code
string