Edit

Create configurationTemplateVersion

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 new configurationTemplateVersion with a desired-state baseline.

A template can contain at most three versions. Creating a version doesn't change the version referenced by existing monitors.

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/{configurationTemplate-id}/versions

Request headers

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

Request body

Supply the baseline relationship inline. The service generates version, templateId, createdBy, and createdDateTime; don't supply these properties.

Property Type Description
baseline configurationBaseline The desired-state baseline for the version. Required.

Response

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

Examples

Request

The following example shows a request.

POST https://graph.microsoft.com/beta/admin/configurationManagement/configurationTemplates/11111111-2222-3333-4444-555555555555/versions
Content-Type: application/json

{
  "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.configurationTemplateVersion",
  "version": "1",
  "templateId": "11111111-2222-3333-4444-555555555555",
  "createdDateTime": "2026-11-02T09:00:00Z"
}