cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
landonjochim
Resolver I
Resolver I

Adding a Content Type to a document library using Send HTTP Request

Hello Community, 

 

I am wondering if it is possible to add an existing content type to a document library using the SharePoint Send HTTP Request? I have a flow that gets a list of new sites, and I would like to automatically cycle through those and add a content type to their default document library.  

 

If this is not possible, is it possible to add an existing managed metadata column to a document library using the Send HTTP Request?

 

Thanks for the help. Always appreciated. 

3 REPLIES 3
Expiscornovus
Super User
Super User

Hi @landonjochim,

 

If the content type already exists on the site and on the library the management of content types is allowed you could use the addavailablecontenttype method to add it.

 

Below is an example of that:

addavailablecontenttype.png

Thanks for the response that helped! Is there a method to set the default content type?

Expiscornovus
Super User
Super User

Hi @landonjochim,

 

It might be possible via the uniqueContentTypeOrder method:

https://sharepoint.stackexchange.com/questions/273329/managing-content-type-using-rest-api

 

But I haven't tried that myself to be honest.

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (994)