Hi @Niku Ojala
If you are looking to automatically record Online Meeting you can use "recordAutomatically" property. Please refer to the below sample screenshot.
For events as of now this feature/functionality is not yet available with Graph API. I found one similar feature request idea you can upvote it, this will be monitored by Microsoft team and make the enhancements to Microsoft Graph APIs. I will also upvote for you.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.