Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Creation of Content Types vai REST API or GRAPH

Im trying to create content type and assign custom site columns / fields to it via REST API in SharePoint Online. The HTTP action works partially as all new CT are create with PARENT CT item... I dont know how to pass the Parent info in the call... Could you please help with that? The next step is to assign some fields/site columns to created Content Type dont know how to deal with that to... If there is a better way to do it via MS Graph Im more than happy to try it.
Know how to do it with CSOM or PnP PS but would like to achive that with Flow that is why thinking to use REST or GRAPH
Till now I tried to use _api/web/contenttypes and
'__metadata': {'type': 'SP.ContentType'},
'Description': 'TestDesc2',
'Name': 'ContentType New7',
'Group': '_GroupCustom',
'Parent': {'__metadata': { 'type': 'SP.ContentType' },
'Id':{'__metadata': { 'type': 'SP.ContentTypeId' },

RookieI Resolver I
Resolver I

Re: Creation of Content Types vai REST API or GRAPH

Frequent Visitor

Re: Creation of Content Types vai REST API or GRAPH

Thank you for replying but Im not sure how it should help with my question.

I posted also query in the techcommunity as made my investigation and did not find the answer in the internet... 
That is why I open new topic here.

anton-khrit Helper V
Helper V

Re: Creation of Content Types vai REST API or GRAPH



You can use PnP templates in Microsoft Flow to provision content types.


This article doesn't describe how to provision content types, but it explains how to work with PnP templates from Microsoft Flow. 


You can find description of content type declaration in the PnP Provisioning Schema.


Note, this is provided as an action in the Plumsail SP connector, which is a part of Plumsail Actions product. It is a paid product.


Best regards, 

Anton Khritonenkov

Helpful resources


New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!


Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (6,614)