The Class CustomScriptDto.
name | data type | constraints | description |
---|---|---|---|
disabled | boolean | Is entity disabled. Value is ignored in Update action - use enable/disable API instead. | |
type | ScriptSourceTypeEnum | The type. | |
id | number | The id. | |
reuse | boolean | Shall same script instance be utilized in repeated calls | |
auditableField | array of AuditableFieldDto | ||
script | string | The script. | |
code | string | required | The code |
description | string | The description | |
updatedCode | string | The updated code. |
Example
{ "disabled" : true, "type" : "JAVA_CLASS", "id" : 12345, "reuse" : true, "auditableField" : [ { "entityClass" : "...", "fieldName" : "...", "id" : 12345, "changeOrigin" : "...", "auditableField" : [ { }, { } ], "originName" : "...", "code" : "...", "previousState" : "...", "currentState" : "...", "description" : "...", "created" : "...", "updatedCode" : "...", "actor" : "..." }, { "entityClass" : "...", "fieldName" : "...", "id" : 12345, "changeOrigin" : "...", "auditableField" : [ { }, { } ], "originName" : "...", "code" : "...", "previousState" : "...", "currentState" : "...", "description" : "...", "created" : "...", "updatedCode" : "...", "actor" : "..." } ], "script" : "...", "code" : "...", "description" : "...", "updatedCode" : "..." }