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. 

4 REPLIES 4
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.

Hello, I have the same question about setting the default content type. Did you manage to get it to work?

Helpful resources

Announcements
Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Users online (1,970)