I'm not able to see your screenshot, but you can specify alert timezone in the initial create call using the following:
"alertDefinitions":[{"alertType":"JOBSTREAM_ALERT_TIMEZONE","timeZone":"US/Pacific","severity":"Critical"}]
Depending on how you want your alerts set, that can get more complex. In this example, a Late alert is being set along with a **** window.
"alertDefinitions":[
{
"alertType":"JOBSTREAM_LATE",
"alertFrequency":null,
"timeChange":null,
"durationChange":null,
"severity":"critical",
"alertDistributionTypes":["SNMP","SMTP"]
},
{
"alertType":"JOBSTREAM_ALERT_TIMEZONE",
"timeZone":"US/Hawaii",
"severity":"Critical"
},
{
"alertType":"JOBSTREAM_ALERT_BLACKOUT_PERIOD",
"severity":"Critical",
"startDay":"Saturday",
"startTime":"08:00",
"endDay":"Sunday",
"endTime":"20:00"
}
]
For defining a specific SLA time, the second call is required (The jobstream must be created first before a specific SLA can be set).
------------------------------
Mike Kruse
Automation Capability Specialist
Agile Operations Division, Broadcom Software
micheal.kruse@broadcom.com------------------------------
Original Message:
Sent: Aug 15, 2025 11:37 AM
From: Jehan Barona
Subject: Define/Add jobstream with description and timezone via rest api
Thanks Mike,
This is great help however I was looking for 1 POST that can include both actions if possible. I need that to be defined on the Alert Criteria tab as below snaps
[cid:image001.png@01DC0DD8.FEF33140]
Regards,
Jehan
Original Message:
Sent: 8/15/2025 11:12:00 AM
From: Mike Kruse
Subject: RE: Define/Add jobstream with description and timezone via rest api
Hi Jehan,
To define a jobstream with a specific SLA time + timezone you'll make two REST calls. The payload examples below are simple and can be expanded based on your SLA requirements.
The first call to define the SLA (substituting target job ID and scheduler ID)
POST /jobstreams
payload:
{
"name":"my new sla",
"monitorable":true,
"forecastable":true,
"critical":true,
"annotation":"this is the description field",
"autoTrimOptions":{},
"businessAreas":["root"],
"targetJobKey":{"jobId":<jobID>,"schedulerId":<schedID>,"name":"test_job"}
}
The second call to set the specific SLA w/ timezone (using the jobstream ID returned from first call)
PUT /jobstreams/<jobstreamID>
payload:
{
"annotation":"this is an updated description field!",
"name":"my new sla",
"lateTimeOfDay":"15:00:00",
"endTimeZone":"US/Hawaii",
"businessAreas":["root"]
}
------------------------------
Mike Kruse
Automation Capability Specialist
Agile Operations Division, Broadcom Software
micheal.kruse@broadcom.com
Original Message:
Sent: Aug 14, 2025 12:49 PM
From: Jehan Barona
Subject: Define/Add jobstream with description and timezone via rest api
Hi Community,
Can you please help me to define/add jobstream with description and timezone via rest api? Please suggest!
Regards,
Jehan
-------------------------------------------