Create and Update Trigger
POST/createUpdateTrigger
This API call can be used to create and update a trigger for a particular "jobgroup" in SSM.
The Authorization
must have Bearer
followed by Token
.
Mandatory params:
jobname
triggername
jobgroup
cronexpression
Optional params:
valueMap
- sample for triggerChainJob - { "savtriggerorderform": "TESTCONN,WSRETRY", "onFailureForm": "Stop" }
To know more on list of parameters that can be passed in valueMap, see Parameters for Job Trigger APIs
Request
- application/json
Body
Array [
]
triggers
object[]
cronexpressionstring
Example:
0 33 14 * * ? 2060
jobgroupstring
Example:
utility
jobnamestring
Example:
TriggerChainJob
triggernamestring
Example:
TriggerchainUI
valueMap
object
onFailureFormstring
Example:
Stop
savtriggerorderformstring
Example:
TESTCONN,WSRETRY
Responses
- 200
Create and Update Trigger
Response Headers
Date
string
Set-Cookie
string
Strict-Transport-Security
string
Vary
string
X-Content-Type-Options
string
- application/json
- Schema
- Example (from schema)
- Create and Update Trigger
Schema
errorCodestring
Example:
0
msgstring
Example:
Success
{
"errorCode": "0",
"msg": "Success"
}
{
"errorCode": "0",
"msg": "Success"
}