cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Advocate III
Advocate III

How to set TimeZone settings for a SiteCollection

Hi,

 

I'm trying to set the SiteCollection TimeZone setting via Flow (Power Automate) but I'm not there yet.

 

I'm trying it with REST:

_api/Web/RegionalSettings/TimeZone

 

Reading "GET" works fine and delivers these JSON result:

{
"d": {
"__metadata": {
"id": "https://xxx.sharepoint.com/sites/TEST_5920/_api/Web/RegionalSettings/TimeZone",
"uri": "https://xxx.sharepoint.com/sites/TEST_5920/_api/Web/RegionalSettings/TimeZone",
"type": "SP.TimeZone"
},
"Description": "(UTC-08:00) Pacific Time (US and Canada)",
"Id": 13,
"Information": {
"__metadata": {
"type": "SP.TimeZoneInformation"
},
"Bias": 480,
"DaylightBias": -60,
"StandardBias": 0
}
}
}

 

I would like to change the SP.TimeZone from "ID 13" to "ID 4" but I'm struggling with the POST request.

Found this and at least a POST is mentioned:

https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-visio/jj247008(v%3Doffice.15)

 

Do you have an idea how to set the TimeZone? (Via Flow / REST API)? I know I could also use PowerShell but it should be with Flow or Logic App directly.

 

Thanks for your help.

Stefan

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Hi @cgru3eejc2 ,

 

As @Pstork1  said, I'm afraid that there is no any way to achieve the requirement with REST currently.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Dual Super User III
Dual Super User III

I don't think you can set the Timezone settings via REST.  Although the documentation mentions a POST command, it clear states that this is just to GET the Timezone.  Setting the timezone is never mentioned. I've seen ways to do this in CSOM, but never seen it done in REST.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Highlighted
Community Support
Community Support

Hi @cgru3eejc2 ,

 

As @Pstork1  said, I'm afraid that there is no any way to achieve the requirement with REST currently.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (11,268)