Skip to main content

recently our slack integration broken due to an empty response of index intio schedule.final_schedule.rendered_schedule_entries, does something has changed recently which is causing this issue?


how to reproduce?

curl --request GET

–url https://api.pagerduty.com/schedules/

–header ‘Accept: application/json’

–header ‘Authorization: Token token=’

–header ‘Content-Type: application/json’

Hi @niranjan bommu


I don’t think it’s a recent change. schedule.final_schedule.rendered_schedule_entries is only populated if you add a timeframe to your query.


from the docs:



rendered_schedule_entries: arrayrobject]

This is a list of entries on the computed layer for the current time range. Since or until must be set in order for this field to be populated.



So you’ll want to add those parameters to your query. I added a python example to my github here.


HTH,

–mandi


Reply