diff --git a/MPE_SP-CreateFolder.ps1 b/MPE_SP-CreateFolder.ps1 new file mode 100644 index 0000000..8b4c242 --- /dev/null +++ b/MPE_SP-CreateFolder.ps1 @@ -0,0 +1,28 @@ +## AI Generated + +# Replace with your actual values +$siteID = "mpeeng.sharepoint.com,a39156fa-de97-42ae-b37e-8d2798786586,2b81c888-6319-4649-b505-c26225324fb8" +$parentItemID = "your-parent-item-id" +$accessToken = "your-access-token" + +# API endpoint +$url = "https://graph.microsoft.com/v1.0/sites/$siteID/drive/items/$parentItemID/children" + +# Folder details +$folder = @{ + name = "New Folder" + folder = @{} + "@microsoft.graph.conflictBehavior" = "rename" +} + +# Convert folder details to JSON +$folderJSON = $folder | ConvertTo-Json + +# Create HTTP request +$response = Invoke-RestMethod -Uri $url -Method Post -Headers @{ + Authorization = "Bearer $accessToken" + 'Content-Type' = 'application/json' +} -Body $folderJSON + +# Output response +$response \ No newline at end of file diff --git a/SiteInfo.xml b/SiteInfo.xml new file mode 100644 index 0000000..4b84574 --- /dev/null +++ b/SiteInfo.xml @@ -0,0 +1 @@ +https://mpeeng.sharepoint.com/sites/MPEProjectEmails/_api/site<updated>2024-08-15T17:49:59Z</updated><author><name /></author><content type="application/xml"><m:properties><d:AllowCreateDeclarativeWorkflow m:type="Edm.Boolean">true</d:AllowCreateDeclarativeWorkflow><d:AllowDesigner m:type="Edm.Boolean">true</d:AllowDesigner><d:AllowMasterPageEditing m:type="Edm.Boolean">false</d:AllowMasterPageEditing><d:AllowRevertFromTemplate m:type="Edm.Boolean">false</d:AllowRevertFromTemplate><d:AllowSaveDeclarativeWorkflowAsTemplate m:type="Edm.Boolean">true</d:AllowSaveDeclarativeWorkflowAsTemplate><d:AllowSavePublishDeclarativeWorkflow m:type="Edm.Boolean">true</d:AllowSavePublishDeclarativeWorkflow><d:AllowSelfServiceUpgrade m:type="Edm.Boolean">true</d:AllowSelfServiceUpgrade><d:AllowSelfServiceUpgradeEvaluation m:type="Edm.Boolean">true</d:AllowSelfServiceUpgradeEvaluation><d:AuditLogTrimmingRetention m:type="Edm.Int32">90</d:AuditLogTrimmingRetention><d:ChannelGroupId m:type="Edm.Guid">00000000-0000-0000-0000-000000000000</d:ChannelGroupId><d:Classification></d:Classification><d:CompatibilityLevel m:type="Edm.Int32">15</d:CompatibilityLevel><d:CurrentChangeToken m:type="SP.ChangeToken"><d:StringValue>1;1;a39156fa-de97-42ae-b37e-8d2798786586;638593409991600000;764472517</d:StringValue></d:CurrentChangeToken><d:DisableAppViews m:type="Edm.Boolean">false</d:DisableAppViews><d:DisableCompanyWideSharingLinks m:type="Edm.Boolean">false</d:DisableCompanyWideSharingLinks><d:DisableFlows m:type="Edm.Boolean">false</d:DisableFlows><d:ExternalSharingTipsEnabled m:type="Edm.Boolean">false</d:ExternalSharingTipsEnabled><d:GeoLocation>CAN</d:GeoLocation><d:GroupId m:type="Edm.Guid">3eb82125-75ff-4010-8356-19df339c172b</d:GroupId><d:HubSiteId m:type="Edm.Guid">00000000-0000-0000-0000-000000000000</d:HubSiteId><d:Id m:type="Edm.Guid">a39156fa-de97-42ae-b37e-8d2798786586</d:Id><d:SensitivityLabelId m:null="true" /><d:SensitivityLabel m:type="Edm.Guid">00000000-0000-0000-0000-000000000000</d:SensitivityLabel><d:IsHubSite m:type="Edm.Boolean">false</d:IsHubSite><d:IsRestrictedAccessControlPolicyEnforcedOnSite m:type="Edm.Boolean">false</d:IsRestrictedAccessControlPolicyEnforcedOnSite><d:LockIssue m:null="true" /><d:MaxItemsPerThrottledOperation m:type="Edm.Int32">5000</d:MaxItemsPerThrottledOperation><d:MediaTranscriptionDisabled m:type="Edm.Boolean">false</d:MediaTranscriptionDisabled><d:NeedsB2BUpgrade m:type="Edm.Boolean">false</d:NeedsB2BUpgrade><d:ResourcePath m:type="SP.ResourcePath"><d:DecodedUrl>https://mpeeng.sharepoint.com/sites/MPEProjectEmails</d:DecodedUrl></d:ResourcePath><d:PrimaryUri>https://mpeeng.sharepoint.com/sites/MPEProjectEmails</d:PrimaryUri><d:ReadOnly m:type="Edm.Boolean">false</d:ReadOnly><d:RequiredDesignerVersion>15.0.0.0</d:RequiredDesignerVersion><d:SandboxedCodeActivationCapability m:type="Edm.Int32">2</d:SandboxedCodeActivationCapability><d:ServerRelativeUrl>/sites/MPEProjectEmails</d:ServerRelativeUrl><d:ShareByEmailEnabled m:type="Edm.Boolean">true</d:ShareByEmailEnabled><d:ShareByLinkEnabled m:type="Edm.Boolean">false</d:ShareByLinkEnabled><d:ShowUrlStructure m:type="Edm.Boolean">false</d:ShowUrlStructure><d:TrimAuditLog m:type="Edm.Boolean">true</d:TrimAuditLog><d:UIVersionConfigurationEnabled m:type="Edm.Boolean">false</d:UIVersionConfigurationEnabled><d:UpgradeReminderDate m:type="Edm.DateTime">1899-12-30T00:00:00</d:UpgradeReminderDate><d:UpgradeScheduled m:type="Edm.Boolean">false</d:UpgradeScheduled><d:UpgradeScheduledDate m:type="Edm.DateTime">1753-01-01T00:00:00</d:UpgradeScheduledDate><d:Upgrading m:type="Edm.Boolean">false</d:Upgrading><d:Url>https://mpeeng.sharepoint.com/sites/MPEProjectEmails</d:Url><d:WriteLocked m:type="Edm.Boolean">false</d:WriteLocked></m:properties></content></entry> \ No newline at end of file