Edit

Create configurationTemplate

Namespace: microsoft.graph

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

Create a configurationTemplate with an initial version and baseline.

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

Permission type Least privileged permissions Higher privileged permissions
Delegated (work or school account) ConfigurationMonitoring.ReadWrite.All Not available.
Delegated (personal Microsoft account) Not supported. Not supported.
Application ConfigurationMonitoring.ReadWrite.All Not available.

HTTP request

POST /admin/configurationManagement/configurationTemplates

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.
Content-Type application/json. Required.

Request body

Supply a JSON representation of a configurationTemplate. Use a deep insert to include exactly one version and its baseline. The service generates identifiers, the version number, tenant information, and audit properties. Add subsequent versions with Create version.

Property Type Description
description String The description of the template. Optional.
displayName String The display name of the template. Required.
versions configurationTemplateVersion collection Exactly one initial version, with its baseline populated. Required.

Response

If successful, this method returns a 201 Created response code and a configurationTemplate object in the response body.

Examples

Request

The following example shows a request.

POST https://graph.microsoft.com/beta/admin/configurationManagement/configurationTemplates
Content-Type: application/json

{
  "displayName": "Exchange organization template",
  "description": "Desired organization configuration for Contoso.",
  "versions": [
    {
      "baseline": {
        "displayName": "Exchange organization baseline",
        "resources": [
          {
            "displayName": "Organization configuration",
            "resourceType": "microsoft.exchange.organizationconfig",
            "properties": {
              "IsSingleInstance": "Yes",
              "SmtpActionableMessagesEnabled": true
            }
          }
        ]
      }
    }
  ]
}

Response

The following example shows the response.

HTTP/1.1 201 Created
Content-Type: application/json

{
  "@odata.type": "#microsoft.graph.configurationTemplate",
  "id": "11111111-2222-3333-4444-555555555555",
  "displayName": "Exchange organization template",
  "description": "Desired organization configuration for Contoso.",
  "tenantId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
  "createdDateTime": "2026-11-02T09:00:00Z",
  "lastModifiedDateTime": "2026-11-02T09:00:00Z"
}