# Initiate AD synchronization for a domain Initiates an immediate AD synchronization for a specific domain. Returns whether the sync was successfully started or is already in progress. ## Endpoint `POST /dcapi/som/domains/{domain_id}/sync` ## Request ### Request URL `https://`[{serverurl}](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html)`/dcapi/som/domains/{domain_id}/sync` ### Scope `DesktopCentralCloud.SOM.CREATE` ### Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Request Headers - **Accept** `string` — **Mandatory** - `application/domainTreeSyncStatus.v1+json` #### Path Parameters - **domain_id** `string` — **Mandatory** - Unique Domain ID. Get the domain ID from the [Get Domains](https://www.manageengine.com/products/desktop-central/help/api/cloud/domains-list-domains.html) `resourceID` field in the response. ### Sample Request ```curl curl --request POST \ --url https://appdomains/dcapi/som/domains/{domain_id}/sync \ --header 'Accept: application/domainTreeSyncStatus.v1+json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP Code 202 #### Response Body — `application/json` `JSON Object` - **isDomainAdSyncInProgress** `boolean` - Indicates whether the Active Directory synchronization process is now running for this domain. - **status** `boolean` - Indicates whether the synchronization request was accepted and initiated successfully. - **message** `string` - Descriptive message confirming the sync initiation or explaining why it could not be started (e.g., “Domain sync is already in progress”). #### Sample Response Sync initiated successfully ```json { "message": "Domain sync initiated for ECSOM", "isDomainAdSyncInProgress": true, "status": true } ``` ### HTTP Code 412 #### Response Body — `application/json` `JSON Object` - **statusCode** `string` - HTTP status code (412). - **errorCode** `string` - Precondition failed error code identifying the business logic violation. - **message** `string` - Error message describing the precondition failed while processing request. #### Sample Response Domain sync is already in progress ```json { "errorCode": "10015", "message": "AD Domain Sync is already in progress. Sync attempt failed.", "statusCode": 412 } ``` Daily sync limit reached ```json { "errorCode": "30104", "message": "Reached daily limit to initiate domain Sync", "statusCode": 412 } ``` ## Rate Limits ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **Duration:** 1 minute | **Threshold:** 30 | **Lock period:** 5 minutes Duration - Time window for the threshold. Threshold - Number of API calls allowed within the specified duration. Lock Period - Wait time before consecutive API requests.