Forum Discussion
liao_ben
Jun 29, 2022Copper Contributor
How to set booking page langaue and time zone in graph api ?
Hi,
I want to change the language and time zone of the booking page. I can't find the api information. Does the graph api support this function?
3 Replies
Sort By
- Renato_MartinsCopper Contributor
liao_ben I've searched a lot about that.. you can update timezone and language information in this method: https://learn.microsoft.com/en-us/graph/api/user-update-mailboxsettings?view=graph-rest-1.0&tabs=http
This information is related to the account not to the booking calendar.
I hope it can help you.
Renato Martins- AntoineGenotCopper Contributor
Hi Liao, I can confirm using graph API mailboxSettings, it works great.
My code:
$mailboxSettingsBody = @{ language = @{ locale = 'fr-FR' } timeFormat = 'HH:mm' dateFormat = 'dd/MM/yyyy' timeZone = 'Romance Standard Time' } | ConvertTo-Json Invoke-MgGraphRequest -Method PATCH -Uri ('https://graph.microsoft.com/v1.0/users/{0}/mailboxSettings' -f $BookingsAccountId) -Body $mailboxSettingsBody | Out-Null
Best regards.
- AntoineGenotCopper ContributorSame issue here using Microsoft.Graph V1.17.0 and following cmdlet:
Update-MgBookingBusiness -BookingBusinessId XXX -BodyParameter @{ LanguageTag = 'fr-FR' }
No error but nothing happens