Create session by code: error

Hi, I’m trying to create a recurring session and the session is being created as well without any error but the status of session is undefined always. Am I missing something ? can you help ?

{"end":{"localDateTime":        
{"year":2022,"monthOfYear":2,"dayOfMonth":24,"hourOfDay":2,"minutesOfHour":30}},"_id":"531ed9facda441b8b87abe907a6ac3cb-b1b67120faaf45fb86ee7f954a23cd6e","notes":"","recurrence":"FREQ=WEEKLY;INTERVAL=1;BYDAY=TH;UNTIL=20230101T000000Z","scheduleId":"531ed9fa-cda4-41b8-b87a-be907a6ac3cb","scheduleOwnerId":"28a99209-64c9-4e27-a24b-cdba79e43cf9","start":{"localDateTime":{"year":2022,"monthOfYear":2,"dayOfMonth":24,"hourOfDay":0,"minutesOfHour":30}},
"status":"UNDEFINED","tags":[],"type":"WORKING_HOURS"}