Hello Nyan Cat,
Thank you for reaching out to Microsoft Support!
Please try the following code:
# Define the custom headers
config = RequestConfiguration()
config.headers.add('Prefer', 'Content-Type="application/json"')
# Make the API call with custom headers
response = await graph_client.users.by_user_id('user-id').online_meetings.by_online_meeting_id('onlineMeeting-id').transcripts.by_call_transcript_id('callTranscript-id').content.get(config)
Reference document:
https://learn.microsoft.com/en-us/graph/api/calltranscript-get?view=graph-rest-1.0&tabs=python
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.