# Bulk update page security settings via API

**URL:** <https://community.hubspot.com/t/bulk-update-page-security-settings-via-api/123437>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [January 7, 2025, 5:52pm UTC](https://community.hubspot.com/t/bulk-update-page-security-settings-via-api/123437 "2025-01-07T17:52:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anya23](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@Anya23](https://community.hubspot.com/u/Anya23)\
**Post date:** [January 7, 2025, 5:52pm UTC](https://community.hubspot.com/t/bulk-update-page-security-settings-via-api/123437/1 "2025-01-07T17:52:36Z")

</div>

Is there a way to iterate through all the pages on a subdomain and change the security to require SSO using the API?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [January 8, 2025, 5:45pm UTC](https://community.hubspot.com/t/bulk-update-page-security-settings-via-api/123437/2 "2025-01-08T17:45:34Z")

</div>

Hi, @Anya23 👋 Thanks for the interesting question. I’d like to invite some of our community champions to the conversation — hey @alyssamwilie @Anton @GiantFocal have you done this using the [**Pages API**](https://developers.hubspot.com/docs/reference/api/cms/pages#patch-%2Fcms%2Fv3%2Fpages%2Fsite-pages%2F%7Bobjectid%7D)?

Thank you very much for taking a look! — Jaycee

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [January 8, 2025, 8:24pm UTC](https://community.hubspot.com/t/bulk-update-page-security-settings-via-api/123437/3 "2025-01-08T20:24:52Z")

</div>

Hey @Anya23,

as [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) mentioned, the [Update a batch of Site Pages API](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) and [Update a batch of Landing Pages API](https://developers.hubspot.com/docs/reference/api/cms/pages#post-%2Fcms%2Fv3%2Fpages%2Flanding-pages%2Fbatch%2Fupdate) Endpoint(s) will do this job.

Another option could be to create a [flex-redirect rule.](https://knowledge.hubspot.com/domains-and-urls/set-up-a-flexible-pattern-url-redirect)

But you should be careful with this option since it might have a negative impact on tech. SEO since it might cause so-called redirect-loops.

best,

Anton

@Anya23
