Update synchronizationTemplate

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.

Update (override) the synchronization template associated with a given application.

Permissions

One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

Permission type Permissions (from least to most privileged)
Delegated (work or school account) Directory.ReadWrite.All
Delegated (personal Microsoft account) Not supported.
Application Application.ReadWrite.OwnedBy, Directory.ReadWrite.All

HTTP Request

PATCH applications/{id}/synchronization/templates/{templateId}

Request headers

Name Type Description
Authorization string Bearer {token}. Required.

Request body

In the request body, supply the synchronizationTemplate object to replace the existing template. Make sure all properties are provided. Missing properties will be erased.

Response

If successful, this method returns a 204 No Content response code. It does not return anything in the response body.

Examples

Request

The following is an example of a request.

Note: The request object shown here is shortened for readability. Include all the properties in an actual call.

PUT https://graph.microsoft.com/beta/applications/{id}/synchronization/templates/{templateId}
Authorization: Bearer <token>
Content-type: application/json

{
    "id": "Slack",
    "applicationId": "{id}",
    "factoryTag": "CustomSCIM"
}
Response

The following is an example of a response.

HTTP/1.1 204 No Content