Hi @Marskar, Tore
You should create column definitions in a site. Here are the permissions you need:
Code snippet:
var graphClient = new GraphServiceClient(requestAdapter);
var requestBody = new ColumnDefinition
{
Description = "test2",
EnforceUniqueValues = false,
Hidden = false,
Indexed = false,
Name = "Title2",
Text = new TextColumn
{
AllowMultipleLines = false,
AppendChangesToExistingText = false,
LinesForEditing = 0,
MaxLength = 255,
},
};
var result = await graphClient.Sites["{site-id}"].Columns.PostAsync(requestBody);
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.