Updates deployment policy edit/sharing settings that control which users can edit deployment policies.
put /dcapi/patch/deploymentPolicy/shareSettings
https://{server-hostname}:8383/dcapi/patch/deploymentPolicy/shareSettings
PatchMgmt.UPDATECopied!
Authorization: d92d4xxxxxxxxxxxxx15f52
Whether all users can edit deployment policies
Whether editing is restricted based on user scope
curl --request PUT \
--url https://appdomain/dcapi/patch/deploymentPolicy/shareSettings \
--header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \
--header 'content-type: application/json' \
--data '{"isDPEditOnAllUsers":true,"isDPEditBasedOnScope":false}'import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.io.IOException;
import java.net.http.HttpTimeoutException;
public class Main {
public static void main(String[] args) {
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://appdomain/dcapi/patch/deploymentPolicy/shareSettings"))
.header("content-type", "application/json")
.header("Authorization", " d92d4xxxxxxxxxxxxx15f52")
.method("PUT", HttpRequest.BodyPublishers.ofString("{\"isDPEditOnAllUsers\":true,\"isDPEditBasedOnScope\":false}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
import http.client
conn = http.client.HTTPSConnection("appdomain")
payload = "{\"isDPEditOnAllUsers\":true,\"isDPEditBasedOnScope\":false}"
headers = {
'content-type': "application/json",
'Authorization': " d92d4xxxxxxxxxxxxx15f52"
}
conn.request("PUT", "/dcapi/patch/deploymentPolicy/shareSettings", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
headersMap = Map();
headersMap.put("Content-Type", "application/json");
headersMap.put("Accept", "application/json");
data=Map();
data.put("isDPEditOnAllUsers",true);
data.put("isDPEditBasedOnScope",true);
response = invokeUrl
[
url: "https://appDomain/dcapi/patch/deploymentPolicy/shareSettings"
type: PUT
headers: headersMap
body: data
connection: connection_name
]
info response;
$headers=@{}
$headers.Add("content-type", "application/json")
$headers.Add("Authorization", " d92d4xxxxxxxxxxxxx15f52")
$response = Invoke-WebRequest -Uri 'https://appdomain/dcapi/patch/deploymentPolicy/shareSettings' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{"isDPEditOnAllUsers":true,"isDPEditBasedOnScope":false}'Allow all users to edit deployment policies
{
"isDPEditOnAllUsers": true,
"isDPEditBasedOnScope": false
}
Share settings updated
{
"remarks": "Deployment policy share settings updated",
"status": "success"
}
![]()
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.
© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.
© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.