POST https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/contentTypes/addCopy
Content-Type: application/json
{
"contentType": "https://graph.microsoft.com/v1.0/sites/{site-id}/contentTypes/0x0101"
}
var graphClient = new GraphServiceClient(requestAdapter);
var requestBody = new Microsoft.Graph.Sites.Item.Lists.Item.ContentTypes.AddCopy.AddCopyPostRequestBody
{
ContentType = "https://graph.microsoft.com/v1.0/sites/{site-id}/contentTypes/0x0101",
};
var result = await graphClient.Sites["{site-id}"].Lists["{list-id}"].ContentTypes.AddCopy.PostAsync(requestBody);
<?php
// THIS SNIPPET IS A PREVIEW FOR THE KIOTA BASED SDK. NON-PRODUCTION USE ONLY
$graphServiceClient = new GraphServiceClient($requestAdapter);
$requestBody = new AddCopyPostRequestBody();
$requestBody->setContentType('https://graph.microsoft.com/v1.0/sites/{site-id}/contentTypes/0x0101');
$requestResult = $graphServiceClient->sitesById('site-id')->listsById('list-id')->contentTypes()->addCopy()->post($requestBody);