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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (3,177)