Delete a replication policy

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

Permanently deletes a replication policy by ID.

Request URL

https://{serverurl}/dcapi/som/replication-policies/{replication_policy_id}

Scope

DesktopCentralCloud.SOM.DELETECopied!

Header

Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52

Request Parameters

- Request Headers

AcceptstringMandatory
application/replicationPolicyDeletedStatus.v1+jsonapplication/replicationPolicyDeletedStatus.v1+jsonCopied!

- Path Parameters

replication_policy_idstringMandatory

Unique identifier of the replication policy, get replication policy id from the Replication Policies api response(replicationPolicyID)

Sample Request

Curl
Java
Python
Deluge
PowerShell
Copied!
curl --request DELETE \
  --url https://appdomains/dcapi/som/replication-policies/{replication_policy_id} \
  --header 'Accept: application/replicationPolicyDeletedStatus.v1+json' \
  --header 'Authorization: Zoho-oauthtoken  d92d4xxxxxxxxxxxxx15f52'

Response Parameters

- HTTP code 200

Response Body - application/json
JSON Object
Hide Sub-Attributes
statusboolean

Indicates whether the replication policy update or deletion completed successfully

messagestring

Descriptive message confirming the operation or explaining the reason for failure (e.g., 'Replication policy - Business Hours Only has been updated successfully')

- HTTP code 404

Response Body - application/json
JSON Object
Hide Sub-Attributes
statusCodestring

HTTP status code (404)

errorCodestring

Error code identifying the resource that was not found

messagestring

Error message describing the missing resource

- HTTP code 412

Response Body - application/json
JSON Object
Hide Sub-Attributes
statusCodestring

HTTP status code (412)

errorCodestring

Precondition failed error code identifying the business logic violation

messagestring

Error message describing the precondition failed while processing request

Possible Response Codes

200HTTP code
404HTTP code
412HTTP code

Sample Response: HTTP 200

Policy deleted

Copied!
  {
    "message": "Replication policy - Business Hours Only has been deleted successfully",
    "status": true
  }
                
Show full

Sample Response: HTTP 404

Replication policy not found

Copied!
  {
    "errorCode": "30027",
    "message": "Replication policy does not exist",
    "statusCode": 404
  }
                
Show full

Sample Response: HTTP 412

Policy is associated with remote offices

Copied!
  {
    "errorCode": "30026",
    "message": "Cannot delete policy. It is associated with one or more remote offices",
    "statusCode": 412
  }
                
Show full

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.