curl --request PATCH \
--url https://api.enkryptai.com/code-of-conduct/modify-policy \
--header 'Content-Type: multipart/form-data' \
--header 'X-Enkrypt-Policy: <x-enkrypt-policy>' \
--header 'apikey: <api-key>' \
--form 'name=Healthcare Guidelines' \
--form 'policy_rules=1. The assistant'\''s response must not be relied upon as the sole basis for clinical decisions when providing healthcare information.
2. Users must not request professional medical judgment from the assistant when seeking healthcare advice.
3. The assistant'\''s response must not provide personalized medical diagnoses, treatments, or advice when asked about health-related issues.
4. The assistant'\''s response should not replace human consultation, particularly in emergency or complex clinical situations.
5. User queries should not request personalized medical diagnoses, treatments, or advice.
6. Users must not rely solely on AI outputs for clinical decision-making without consulting a qualified healthcare professional.
7. The assistant'\''s response must not offer definitive medical diagnoses when asked about symptoms.
8. The assistant'\''s response must not provide treatment plans or medication prescriptions when asked for medical advice.
9. The assistant'\''s response must not provide real-time emergency care instructions when life-threatening symptoms are detected.
10. The assistant'\''s response must not make autonomous decisions that directly impact patient care without human oversight.
11. The assistant'\''s response must not provide personalized medical advice without clear non-advisory disclaimers when discussing health issues.
12. User queries should not request definitive medical diagnoses or treatment plans.
13. Users must not ask for real-time emergency care instructions in life-threatening situations.
14. The assistant'\''s response must not provide specific medical advice when users ask for health-related information.
15. Users must not request specific medical advice or treatment recommendations from the assistant.
16. The assistant'\''s response should not include biased health recommendations that disproportionately impact specific demographic groups.
17. Users must not provide sensitive personal data unless explicitly required for the interaction.
18. The assistant'\''s response must not utilize collected data for purposes other than enhancing functionality, improving user experience, or research under anonymized conditions.
19. The assistant'\''s response must not provide medical advice, diagnosis, or treatment plans when asked about health-related issues.
20. The assistant'\''s response should clearly state that its outputs are for general informational purposes only when discussing health topics.
21. The assistant'\''s response must not imply that using the AI system establishes a patient-provider relationship when users inquire about medical consultations.
22. Users must not request specific medical advice or treatment plans from the assistant.' \
--form total_rules=22 \
--form policy_file=@example-file \
--form 'policy_text="\"\""' \
--form 'v2_questionnaire={
"purpose": "",
"prohibited_actions": [
"<string>"
],
"user_types": [],
"data_access": [],
"actions": []
}'
import requests
url = "https://api.enkryptai.com/code-of-conduct/modify-policy"
files = { "policy_file": ("example-file", open("example-file", "rb")) }
payload = {
"name": "Healthcare Guidelines",
"policy_rules": "1. The assistant's response must not be relied upon as the sole basis for clinical decisions when providing healthcare information.
2. Users must not request professional medical judgment from the assistant when seeking healthcare advice.
3. The assistant's response must not provide personalized medical diagnoses, treatments, or advice when asked about health-related issues.
4. The assistant's response should not replace human consultation, particularly in emergency or complex clinical situations.
5. User queries should not request personalized medical diagnoses, treatments, or advice.
6. Users must not rely solely on AI outputs for clinical decision-making without consulting a qualified healthcare professional.
7. The assistant's response must not offer definitive medical diagnoses when asked about symptoms.
8. The assistant's response must not provide treatment plans or medication prescriptions when asked for medical advice.
9. The assistant's response must not provide real-time emergency care instructions when life-threatening symptoms are detected.
10. The assistant's response must not make autonomous decisions that directly impact patient care without human oversight.
11. The assistant's response must not provide personalized medical advice without clear non-advisory disclaimers when discussing health issues.
12. User queries should not request definitive medical diagnoses or treatment plans.
13. Users must not ask for real-time emergency care instructions in life-threatening situations.
14. The assistant's response must not provide specific medical advice when users ask for health-related information.
15. Users must not request specific medical advice or treatment recommendations from the assistant.
16. The assistant's response should not include biased health recommendations that disproportionately impact specific demographic groups.
17. Users must not provide sensitive personal data unless explicitly required for the interaction.
18. The assistant's response must not utilize collected data for purposes other than enhancing functionality, improving user experience, or research under anonymized conditions.
19. The assistant's response must not provide medical advice, diagnosis, or treatment plans when asked about health-related issues.
20. The assistant's response should clearly state that its outputs are for general informational purposes only when discussing health topics.
21. The assistant's response must not imply that using the AI system establishes a patient-provider relationship when users inquire about medical consultations.
22. Users must not request specific medical advice or treatment plans from the assistant.",
"total_rules": "22",
"policy_text": "\"\"",
"v2_questionnaire": "{
\"purpose\": \"\",
\"prohibited_actions\": [
\"<string>\"
],
\"user_types\": [],
\"data_access\": [],
\"actions\": []
}"
}
headers = {
"X-Enkrypt-Policy": "<x-enkrypt-policy>",
"apikey": "<api-key>"
}
response = requests.patch(url, data=payload, files=files, headers=headers)
print(response.text)
const form = new FormData();
form.append('name', 'Healthcare Guidelines');
form.append('policy_rules', '1. The assistant's response must not be relied upon as the sole basis for clinical decisions when providing healthcare information.
2. Users must not request professional medical judgment from the assistant when seeking healthcare advice.
3. The assistant's response must not provide personalized medical diagnoses, treatments, or advice when asked about health-related issues.
4. The assistant's response should not replace human consultation, particularly in emergency or complex clinical situations.
5. User queries should not request personalized medical diagnoses, treatments, or advice.
6. Users must not rely solely on AI outputs for clinical decision-making without consulting a qualified healthcare professional.
7. The assistant's response must not offer definitive medical diagnoses when asked about symptoms.
8. The assistant's response must not provide treatment plans or medication prescriptions when asked for medical advice.
9. The assistant's response must not provide real-time emergency care instructions when life-threatening symptoms are detected.
10. The assistant's response must not make autonomous decisions that directly impact patient care without human oversight.
11. The assistant's response must not provide personalized medical advice without clear non-advisory disclaimers when discussing health issues.
12. User queries should not request definitive medical diagnoses or treatment plans.
13. Users must not ask for real-time emergency care instructions in life-threatening situations.
14. The assistant's response must not provide specific medical advice when users ask for health-related information.
15. Users must not request specific medical advice or treatment recommendations from the assistant.
16. The assistant's response should not include biased health recommendations that disproportionately impact specific demographic groups.
17. Users must not provide sensitive personal data unless explicitly required for the interaction.
18. The assistant's response must not utilize collected data for purposes other than enhancing functionality, improving user experience, or research under anonymized conditions.
19. The assistant's response must not provide medical advice, diagnosis, or treatment plans when asked about health-related issues.
20. The assistant's response should clearly state that its outputs are for general informational purposes only when discussing health topics.
21. The assistant's response must not imply that using the AI system establishes a patient-provider relationship when users inquire about medical consultations.
22. Users must not request specific medical advice or treatment plans from the assistant.');
form.append('total_rules', '22');
form.append('policy_file', '<string>');
form.append('policy_text', '""');
form.append('v2_questionnaire', '{
"purpose": "",
"prohibited_actions": [
"<string>"
],
"user_types": [],
"data_access": [],
"actions": []
}');
const options = {
method: 'PATCH',
headers: {'X-Enkrypt-Policy': '<x-enkrypt-policy>', apikey: '<api-key>'}
};
options.body = form;
fetch('https://api.enkryptai.com/code-of-conduct/modify-policy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.enkryptai.com/code-of-conduct/modify-policy",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"name\"\r\n\r\nHealthcare Guidelines\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"policy_rules\"\r\n\r\n1. The assistant's response must not be relied upon as the sole basis for clinical decisions when providing healthcare information.\r\n2. Users must not request professional medical judgment from the assistant when seeking healthcare advice.\r\n3. The assistant's response must not provide personalized medical diagnoses, treatments, or advice when asked about health-related issues.\r\n4. The assistant's response should not replace human consultation, particularly in emergency or complex clinical situations.\r\n5. User queries should not request personalized medical diagnoses, treatments, or advice.\r\n6. Users must not rely solely on AI outputs for clinical decision-making without consulting a qualified healthcare professional.\r\n7. The assistant's response must not offer definitive medical diagnoses when asked about symptoms.\r\n8. The assistant's response must not provide treatment plans or medication prescriptions when asked for medical advice.\r\n9. The assistant's response must not provide real-time emergency care instructions when life-threatening symptoms are detected.\r\n10. The assistant's response must not make autonomous decisions that directly impact patient care without human oversight.\r\n11. The assistant's response must not provide personalized medical advice without clear non-advisory disclaimers when discussing health issues.\r\n12. User queries should not request definitive medical diagnoses or treatment plans.\r\n13. Users must not ask for real-time emergency care instructions in life-threatening situations.\r\n14. The assistant's response must not provide specific medical advice when users ask for health-related information.\r\n15. Users must not request specific medical advice or treatment recommendations from the assistant.\r\n16. The assistant's response should not include biased health recommendations that disproportionately impact specific demographic groups.\r\n17. Users must not provide sensitive personal data unless explicitly required for the interaction.\r\n18. The assistant's response must not utilize collected data for purposes other than enhancing functionality, improving user experience, or research under anonymized conditions.\r\n19. The assistant's response must not provide medical advice, diagnosis, or treatment plans when asked about health-related issues.\r\n20. The assistant's response should clearly state that its outputs are for general informational purposes only when discussing health topics.\r\n21. The assistant's response must not imply that using the AI system establishes a patient-provider relationship when users inquire about medical consultations.\r\n22. Users must not request specific medical advice or treatment plans from the assistant.\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"total_rules\"\r\n\r\n22\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"policy_file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"policy_text\"\r\n\r\n\"\"\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"v2_questionnaire\"\r\n\r\n{\r\n \"purpose\": \"\",\r\n \"prohibited_actions\": [\r\n \"<string>\"\r\n ],\r\n \"user_types\": [],\r\n \"data_access\": [],\r\n \"actions\": []\r\n}\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Content-Type: multipart/form-data",
"X-Enkrypt-Policy: <x-enkrypt-policy>",
"apikey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.enkryptai.com/code-of-conduct/modify-policy"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"name\"\r\n\r\nHealthcare Guidelines\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"policy_rules\"\r\n\r\n1. The assistant's response must not be relied upon as the sole basis for clinical decisions when providing healthcare information.\r\n2. Users must not request professional medical judgment from the assistant when seeking healthcare advice.\r\n3. The assistant's response must not provide personalized medical diagnoses, treatments, or advice when asked about health-related issues.\r\n4. The assistant's response should not replace human consultation, particularly in emergency or complex clinical situations.\r\n5. User queries should not request personalized medical diagnoses, treatments, or advice.\r\n6. Users must not rely solely on AI outputs for clinical decision-making without consulting a qualified healthcare professional.\r\n7. The assistant's response must not offer definitive medical diagnoses when asked about symptoms.\r\n8. The assistant's response must not provide treatment plans or medication prescriptions when asked for medical advice.\r\n9. The assistant's response must not provide real-time emergency care instructions when life-threatening symptoms are detected.\r\n10. The assistant's response must not make autonomous decisions that directly impact patient care without human oversight.\r\n11. The assistant's response must not provide personalized medical advice without clear non-advisory disclaimers when discussing health issues.\r\n12. User queries should not request definitive medical diagnoses or treatment plans.\r\n13. Users must not ask for real-time emergency care instructions in life-threatening situations.\r\n14. The assistant's response must not provide specific medical advice when users ask for health-related information.\r\n15. Users must not request specific medical advice or treatment recommendations from the assistant.\r\n16. The assistant's response should not include biased health recommendations that disproportionately impact specific demographic groups.\r\n17. Users must not provide sensitive personal data unless explicitly required for the interaction.\r\n18. The assistant's response must not utilize collected data for purposes other than enhancing functionality, improving user experience, or research under anonymized conditions.\r\n19. The assistant's response must not provide medical advice, diagnosis, or treatment plans when asked about health-related issues.\r\n20. The assistant's response should clearly state that its outputs are for general informational purposes only when discussing health topics.\r\n21. The assistant's response must not imply that using the AI system establishes a patient-provider relationship when users inquire about medical consultations.\r\n22. Users must not request specific medical advice or treatment plans from the assistant.\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"total_rules\"\r\n\r\n22\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"policy_file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"policy_text\"\r\n\r\n\"\"\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"v2_questionnaire\"\r\n\r\n{\r\n \"purpose\": \"\",\r\n \"prohibited_actions\": [\r\n \"<string>\"\r\n ],\r\n \"user_types\": [],\r\n \"data_access\": [],\r\n \"actions\": []\r\n}\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-Enkrypt-Policy", "<x-enkrypt-policy>")
req.Header.Add("apikey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
HttpResponse<String> response = Unirest.patch("https://api.enkryptai.com/code-of-conduct/modify-policy")
.header("X-Enkrypt-Policy", "<x-enkrypt-policy>")
.header("apikey", "<api-key>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"name\"\r\n\r\nHealthcare Guidelines\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"policy_rules\"\r\n\r\n1. The assistant's response must not be relied upon as the sole basis for clinical decisions when providing healthcare information.\r\n2. Users must not request professional medical judgment from the assistant when seeking healthcare advice.\r\n3. The assistant's response must not provide personalized medical diagnoses, treatments, or advice when asked about health-related issues.\r\n4. The assistant's response should not replace human consultation, particularly in emergency or complex clinical situations.\r\n5. User queries should not request personalized medical diagnoses, treatments, or advice.\r\n6. Users must not rely solely on AI outputs for clinical decision-making without consulting a qualified healthcare professional.\r\n7. The assistant's response must not offer definitive medical diagnoses when asked about symptoms.\r\n8. The assistant's response must not provide treatment plans or medication prescriptions when asked for medical advice.\r\n9. The assistant's response must not provide real-time emergency care instructions when life-threatening symptoms are detected.\r\n10. The assistant's response must not make autonomous decisions that directly impact patient care without human oversight.\r\n11. The assistant's response must not provide personalized medical advice without clear non-advisory disclaimers when discussing health issues.\r\n12. User queries should not request definitive medical diagnoses or treatment plans.\r\n13. Users must not ask for real-time emergency care instructions in life-threatening situations.\r\n14. The assistant's response must not provide specific medical advice when users ask for health-related information.\r\n15. Users must not request specific medical advice or treatment recommendations from the assistant.\r\n16. The assistant's response should not include biased health recommendations that disproportionately impact specific demographic groups.\r\n17. Users must not provide sensitive personal data unless explicitly required for the interaction.\r\n18. The assistant's response must not utilize collected data for purposes other than enhancing functionality, improving user experience, or research under anonymized conditions.\r\n19. The assistant's response must not provide medical advice, diagnosis, or treatment plans when asked about health-related issues.\r\n20. The assistant's response should clearly state that its outputs are for general informational purposes only when discussing health topics.\r\n21. The assistant's response must not imply that using the AI system establishes a patient-provider relationship when users inquire about medical consultations.\r\n22. Users must not request specific medical advice or treatment plans from the assistant.\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"total_rules\"\r\n\r\n22\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"policy_file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"policy_text\"\r\n\r\n\"\"\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"v2_questionnaire\"\r\n\r\n{\r\n \"purpose\": \"\",\r\n \"prohibited_actions\": [\r\n \"<string>\"\r\n ],\r\n \"user_types\": [],\r\n \"data_access\": [],\r\n \"actions\": []\r\n}\r\n-----011000010111000001101001--")
.asString();
require 'uri'
require 'net/http'
url = URI("https://api.enkryptai.com/code-of-conduct/modify-policy")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-Enkrypt-Policy"] = '<x-enkrypt-policy>'
request["apikey"] = '<api-key>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"name\"\r\n\r\nHealthcare Guidelines\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"policy_rules\"\r\n\r\n1. The assistant's response must not be relied upon as the sole basis for clinical decisions when providing healthcare information.\r\n2. Users must not request professional medical judgment from the assistant when seeking healthcare advice.\r\n3. The assistant's response must not provide personalized medical diagnoses, treatments, or advice when asked about health-related issues.\r\n4. The assistant's response should not replace human consultation, particularly in emergency or complex clinical situations.\r\n5. User queries should not request personalized medical diagnoses, treatments, or advice.\r\n6. Users must not rely solely on AI outputs for clinical decision-making without consulting a qualified healthcare professional.\r\n7. The assistant's response must not offer definitive medical diagnoses when asked about symptoms.\r\n8. The assistant's response must not provide treatment plans or medication prescriptions when asked for medical advice.\r\n9. The assistant's response must not provide real-time emergency care instructions when life-threatening symptoms are detected.\r\n10. The assistant's response must not make autonomous decisions that directly impact patient care without human oversight.\r\n11. The assistant's response must not provide personalized medical advice without clear non-advisory disclaimers when discussing health issues.\r\n12. User queries should not request definitive medical diagnoses or treatment plans.\r\n13. Users must not ask for real-time emergency care instructions in life-threatening situations.\r\n14. The assistant's response must not provide specific medical advice when users ask for health-related information.\r\n15. Users must not request specific medical advice or treatment recommendations from the assistant.\r\n16. The assistant's response should not include biased health recommendations that disproportionately impact specific demographic groups.\r\n17. Users must not provide sensitive personal data unless explicitly required for the interaction.\r\n18. The assistant's response must not utilize collected data for purposes other than enhancing functionality, improving user experience, or research under anonymized conditions.\r\n19. The assistant's response must not provide medical advice, diagnosis, or treatment plans when asked about health-related issues.\r\n20. The assistant's response should clearly state that its outputs are for general informational purposes only when discussing health topics.\r\n21. The assistant's response must not imply that using the AI system establishes a patient-provider relationship when users inquire about medical consultations.\r\n22. Users must not request specific medical advice or treatment plans from the assistant.\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"total_rules\"\r\n\r\n22\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"policy_file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"policy_text\"\r\n\r\n\"\"\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"v2_questionnaire\"\r\n\r\n{\r\n \"purpose\": \"\",\r\n \"prohibited_actions\": [\r\n \"<string>\"\r\n ],\r\n \"user_types\": [],\r\n \"data_access\": [],\r\n \"actions\": []\r\n}\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body
{
"message": "Policy details updated successfully",
"data": {
"policy_rules": "\"1. The assistant's response must not be relied upon as the sole basis for clinical decisions when providing healthcare information.\\n2. Users must not request professional medical judgment from the assistant when seeking healthcare advice.\\n3. The assistant's response must not provide personalized medical diagnoses, treatments, or advice when asked about health-related issues.\\n4. The assistant's response should not replace human consultation, particularly in emergency or complex clinical situations.\\n5. User queries should not request personalized medical diagnoses, treatments, or advice.\\n6. Users must not rely solely on AI outputs for clinical decision-making without consulting a qualified healthcare professional.\\n7. The assistant's response must not offer definitive medical diagnoses when asked about symptoms.\\n8. The assistant's response must not provide treatment plans or medication prescriptions when asked for medical advice.\\n9. The assistant's response must not provide real-time emergency care instructions when life-threatening symptoms are detected.\\n10. The assistant's response must not make autonomous decisions that directly impact patient care without human oversight.\\n11. The assistant's response must not provide personalized medical advice without clear non-advisory disclaimers when discussing health issues.\\n12. User queries should not request definitive medical diagnoses or treatment plans.\\n13. Users must not ask for real-time emergency care instructions in life-threatening situations.\\n14. The assistant's response must not provide specific medical advice when users ask for health-related information.\\n15. Users must not request specific medical advice or treatment recommendations from the assistant.\\n16. The assistant's response should not include biased health recommendations that disproportionately impact specific demographic groups.\\n17. Users must not provide sensitive personal data unless explicitly required for the interaction.\\n18. The assistant's response must not utilize collected data for purposes other than enhancing functionality, improving user experience, or research under anonymized conditions.\\n19. The assistant's response must not provide medical advice, diagnosis, or treatment plans when asked about health-related issues.\\n20. The assistant's response should clearly state that its outputs are for general informational purposes only when discussing health topics.\\n21. The assistant's response must not imply that using the AI system establishes a patient-provider relationship when users inquire about medical consultations.\\n22. Users must not request specific medical advice or treatment plans from the assistant.\"",
"project_name": "default",
"total_rules": 22,
"name": "Healthcare Guidelines",
"updated_at": "2025-03-28T08:35:39.656184+00:00",
"policy_id": 1456247350,
"created_at": "2025-03-28T08:35:39.656184+00:00",
"is_v2": false,
"pdf_name": "healthcare_guidelines",
"policy_text": "<string>",
"created_by": "<string>",
"updated_by": "<string>",
"v2_questionnaire": {
"purpose": "",
"prohibited_actions": [
"<string>"
],
"user_types": [
"general_public"
],
"data_access": [
"pii"
],
"actions": [
"read_only"
],
"decision_impact": "informational"
},
"v2_config": {
"status": "success",
"enabled": [
{
"id": "priv-1",
"text": "The assistant must not provide individualized investment advice.",
"risk_category": "legal_ip_liability",
"applicability": "assistant",
"severity": "medium",
"source": "document",
"suggested": false,
"display_text": "No individualized investment advice",
"frameworks": [
"hipaa"
],
"mappings": [
{
"framework": "<string>",
"clause": "<string>"
}
]
}
],
"disabled": [
{
"id": "priv-1",
"text": "The assistant must not provide individualized investment advice.",
"risk_category": "legal_ip_liability",
"applicability": "assistant",
"severity": "medium",
"source": "document",
"suggested": false,
"display_text": "No individualized investment advice",
"frameworks": [
"hipaa"
],
"mappings": [
{
"framework": "<string>",
"clause": "<string>"
}
]
}
],
"stats": {
"generated": 3,
"enabled": 3,
"merged": 1,
"doc_only": 2,
"disabled": 20,
"excluded": 15
},
"processing_time": 41.2
}
}
}
{
"error": "This policy was created with the Policy Wizard (v2) and cannot be converted back to the legacy format. Create a new legacy policy instead."
}
curl --request PATCH \
--url https://api.enkryptai.com/code-of-conduct/modify-policy \
--header 'Content-Type: multipart/form-data' \
--header 'X-Enkrypt-Policy: <x-enkrypt-policy>' \
--header 'apikey: <api-key>' \
--form 'name=Healthcare Guidelines' \
--form 'policy_rules=1. The assistant'\''s response must not be relied upon as the sole basis for clinical decisions when providing healthcare information.
2. Users must not request professional medical judgment from the assistant when seeking healthcare advice.
3. The assistant'\''s response must not provide personalized medical diagnoses, treatments, or advice when asked about health-related issues.
4. The assistant'\''s response should not replace human consultation, particularly in emergency or complex clinical situations.
5. User queries should not request personalized medical diagnoses, treatments, or advice.
6. Users must not rely solely on AI outputs for clinical decision-making without consulting a qualified healthcare professional.
7. The assistant'\''s response must not offer definitive medical diagnoses when asked about symptoms.
8. The assistant'\''s response must not provide treatment plans or medication prescriptions when asked for medical advice.
9. The assistant'\''s response must not provide real-time emergency care instructions when life-threatening symptoms are detected.
10. The assistant'\''s response must not make autonomous decisions that directly impact patient care without human oversight.
11. The assistant'\''s response must not provide personalized medical advice without clear non-advisory disclaimers when discussing health issues.
12. User queries should not request definitive medical diagnoses or treatment plans.
13. Users must not ask for real-time emergency care instructions in life-threatening situations.
14. The assistant'\''s response must not provide specific medical advice when users ask for health-related information.
15. Users must not request specific medical advice or treatment recommendations from the assistant.
16. The assistant'\''s response should not include biased health recommendations that disproportionately impact specific demographic groups.
17. Users must not provide sensitive personal data unless explicitly required for the interaction.
18. The assistant'\''s response must not utilize collected data for purposes other than enhancing functionality, improving user experience, or research under anonymized conditions.
19. The assistant'\''s response must not provide medical advice, diagnosis, or treatment plans when asked about health-related issues.
20. The assistant'\''s response should clearly state that its outputs are for general informational purposes only when discussing health topics.
21. The assistant'\''s response must not imply that using the AI system establishes a patient-provider relationship when users inquire about medical consultations.
22. Users must not request specific medical advice or treatment plans from the assistant.' \
--form total_rules=22 \
--form policy_file=@example-file \
--form 'policy_text="\"\""' \
--form 'v2_questionnaire={
"purpose": "",
"prohibited_actions": [
"<string>"
],
"user_types": [],
"data_access": [],
"actions": []
}'
import requests
url = "https://api.enkryptai.com/code-of-conduct/modify-policy"
files = { "policy_file": ("example-file", open("example-file", "rb")) }
payload = {
"name": "Healthcare Guidelines",
"policy_rules": "1. The assistant's response must not be relied upon as the sole basis for clinical decisions when providing healthcare information.
2. Users must not request professional medical judgment from the assistant when seeking healthcare advice.
3. The assistant's response must not provide personalized medical diagnoses, treatments, or advice when asked about health-related issues.
4. The assistant's response should not replace human consultation, particularly in emergency or complex clinical situations.
5. User queries should not request personalized medical diagnoses, treatments, or advice.
6. Users must not rely solely on AI outputs for clinical decision-making without consulting a qualified healthcare professional.
7. The assistant's response must not offer definitive medical diagnoses when asked about symptoms.
8. The assistant's response must not provide treatment plans or medication prescriptions when asked for medical advice.
9. The assistant's response must not provide real-time emergency care instructions when life-threatening symptoms are detected.
10. The assistant's response must not make autonomous decisions that directly impact patient care without human oversight.
11. The assistant's response must not provide personalized medical advice without clear non-advisory disclaimers when discussing health issues.
12. User queries should not request definitive medical diagnoses or treatment plans.
13. Users must not ask for real-time emergency care instructions in life-threatening situations.
14. The assistant's response must not provide specific medical advice when users ask for health-related information.
15. Users must not request specific medical advice or treatment recommendations from the assistant.
16. The assistant's response should not include biased health recommendations that disproportionately impact specific demographic groups.
17. Users must not provide sensitive personal data unless explicitly required for the interaction.
18. The assistant's response must not utilize collected data for purposes other than enhancing functionality, improving user experience, or research under anonymized conditions.
19. The assistant's response must not provide medical advice, diagnosis, or treatment plans when asked about health-related issues.
20. The assistant's response should clearly state that its outputs are for general informational purposes only when discussing health topics.
21. The assistant's response must not imply that using the AI system establishes a patient-provider relationship when users inquire about medical consultations.
22. Users must not request specific medical advice or treatment plans from the assistant.",
"total_rules": "22",
"policy_text": "\"\"",
"v2_questionnaire": "{
\"purpose\": \"\",
\"prohibited_actions\": [
\"<string>\"
],
\"user_types\": [],
\"data_access\": [],
\"actions\": []
}"
}
headers = {
"X-Enkrypt-Policy": "<x-enkrypt-policy>",
"apikey": "<api-key>"
}
response = requests.patch(url, data=payload, files=files, headers=headers)
print(response.text)
const form = new FormData();
form.append('name', 'Healthcare Guidelines');
form.append('policy_rules', '1. The assistant's response must not be relied upon as the sole basis for clinical decisions when providing healthcare information.
2. Users must not request professional medical judgment from the assistant when seeking healthcare advice.
3. The assistant's response must not provide personalized medical diagnoses, treatments, or advice when asked about health-related issues.
4. The assistant's response should not replace human consultation, particularly in emergency or complex clinical situations.
5. User queries should not request personalized medical diagnoses, treatments, or advice.
6. Users must not rely solely on AI outputs for clinical decision-making without consulting a qualified healthcare professional.
7. The assistant's response must not offer definitive medical diagnoses when asked about symptoms.
8. The assistant's response must not provide treatment plans or medication prescriptions when asked for medical advice.
9. The assistant's response must not provide real-time emergency care instructions when life-threatening symptoms are detected.
10. The assistant's response must not make autonomous decisions that directly impact patient care without human oversight.
11. The assistant's response must not provide personalized medical advice without clear non-advisory disclaimers when discussing health issues.
12. User queries should not request definitive medical diagnoses or treatment plans.
13. Users must not ask for real-time emergency care instructions in life-threatening situations.
14. The assistant's response must not provide specific medical advice when users ask for health-related information.
15. Users must not request specific medical advice or treatment recommendations from the assistant.
16. The assistant's response should not include biased health recommendations that disproportionately impact specific demographic groups.
17. Users must not provide sensitive personal data unless explicitly required for the interaction.
18. The assistant's response must not utilize collected data for purposes other than enhancing functionality, improving user experience, or research under anonymized conditions.
19. The assistant's response must not provide medical advice, diagnosis, or treatment plans when asked about health-related issues.
20. The assistant's response should clearly state that its outputs are for general informational purposes only when discussing health topics.
21. The assistant's response must not imply that using the AI system establishes a patient-provider relationship when users inquire about medical consultations.
22. Users must not request specific medical advice or treatment plans from the assistant.');
form.append('total_rules', '22');
form.append('policy_file', '<string>');
form.append('policy_text', '""');
form.append('v2_questionnaire', '{
"purpose": "",
"prohibited_actions": [
"<string>"
],
"user_types": [],
"data_access": [],
"actions": []
}');
const options = {
method: 'PATCH',
headers: {'X-Enkrypt-Policy': '<x-enkrypt-policy>', apikey: '<api-key>'}
};
options.body = form;
fetch('https://api.enkryptai.com/code-of-conduct/modify-policy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.enkryptai.com/code-of-conduct/modify-policy",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"name\"\r\n\r\nHealthcare Guidelines\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"policy_rules\"\r\n\r\n1. The assistant's response must not be relied upon as the sole basis for clinical decisions when providing healthcare information.\r\n2. Users must not request professional medical judgment from the assistant when seeking healthcare advice.\r\n3. The assistant's response must not provide personalized medical diagnoses, treatments, or advice when asked about health-related issues.\r\n4. The assistant's response should not replace human consultation, particularly in emergency or complex clinical situations.\r\n5. User queries should not request personalized medical diagnoses, treatments, or advice.\r\n6. Users must not rely solely on AI outputs for clinical decision-making without consulting a qualified healthcare professional.\r\n7. The assistant's response must not offer definitive medical diagnoses when asked about symptoms.\r\n8. The assistant's response must not provide treatment plans or medication prescriptions when asked for medical advice.\r\n9. The assistant's response must not provide real-time emergency care instructions when life-threatening symptoms are detected.\r\n10. The assistant's response must not make autonomous decisions that directly impact patient care without human oversight.\r\n11. The assistant's response must not provide personalized medical advice without clear non-advisory disclaimers when discussing health issues.\r\n12. User queries should not request definitive medical diagnoses or treatment plans.\r\n13. Users must not ask for real-time emergency care instructions in life-threatening situations.\r\n14. The assistant's response must not provide specific medical advice when users ask for health-related information.\r\n15. Users must not request specific medical advice or treatment recommendations from the assistant.\r\n16. The assistant's response should not include biased health recommendations that disproportionately impact specific demographic groups.\r\n17. Users must not provide sensitive personal data unless explicitly required for the interaction.\r\n18. The assistant's response must not utilize collected data for purposes other than enhancing functionality, improving user experience, or research under anonymized conditions.\r\n19. The assistant's response must not provide medical advice, diagnosis, or treatment plans when asked about health-related issues.\r\n20. The assistant's response should clearly state that its outputs are for general informational purposes only when discussing health topics.\r\n21. The assistant's response must not imply that using the AI system establishes a patient-provider relationship when users inquire about medical consultations.\r\n22. Users must not request specific medical advice or treatment plans from the assistant.\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"total_rules\"\r\n\r\n22\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"policy_file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"policy_text\"\r\n\r\n\"\"\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"v2_questionnaire\"\r\n\r\n{\r\n \"purpose\": \"\",\r\n \"prohibited_actions\": [\r\n \"<string>\"\r\n ],\r\n \"user_types\": [],\r\n \"data_access\": [],\r\n \"actions\": []\r\n}\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Content-Type: multipart/form-data",
"X-Enkrypt-Policy: <x-enkrypt-policy>",
"apikey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.enkryptai.com/code-of-conduct/modify-policy"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"name\"\r\n\r\nHealthcare Guidelines\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"policy_rules\"\r\n\r\n1. The assistant's response must not be relied upon as the sole basis for clinical decisions when providing healthcare information.\r\n2. Users must not request professional medical judgment from the assistant when seeking healthcare advice.\r\n3. The assistant's response must not provide personalized medical diagnoses, treatments, or advice when asked about health-related issues.\r\n4. The assistant's response should not replace human consultation, particularly in emergency or complex clinical situations.\r\n5. User queries should not request personalized medical diagnoses, treatments, or advice.\r\n6. Users must not rely solely on AI outputs for clinical decision-making without consulting a qualified healthcare professional.\r\n7. The assistant's response must not offer definitive medical diagnoses when asked about symptoms.\r\n8. The assistant's response must not provide treatment plans or medication prescriptions when asked for medical advice.\r\n9. The assistant's response must not provide real-time emergency care instructions when life-threatening symptoms are detected.\r\n10. The assistant's response must not make autonomous decisions that directly impact patient care without human oversight.\r\n11. The assistant's response must not provide personalized medical advice without clear non-advisory disclaimers when discussing health issues.\r\n12. User queries should not request definitive medical diagnoses or treatment plans.\r\n13. Users must not ask for real-time emergency care instructions in life-threatening situations.\r\n14. The assistant's response must not provide specific medical advice when users ask for health-related information.\r\n15. Users must not request specific medical advice or treatment recommendations from the assistant.\r\n16. The assistant's response should not include biased health recommendations that disproportionately impact specific demographic groups.\r\n17. Users must not provide sensitive personal data unless explicitly required for the interaction.\r\n18. The assistant's response must not utilize collected data for purposes other than enhancing functionality, improving user experience, or research under anonymized conditions.\r\n19. The assistant's response must not provide medical advice, diagnosis, or treatment plans when asked about health-related issues.\r\n20. The assistant's response should clearly state that its outputs are for general informational purposes only when discussing health topics.\r\n21. The assistant's response must not imply that using the AI system establishes a patient-provider relationship when users inquire about medical consultations.\r\n22. Users must not request specific medical advice or treatment plans from the assistant.\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"total_rules\"\r\n\r\n22\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"policy_file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"policy_text\"\r\n\r\n\"\"\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"v2_questionnaire\"\r\n\r\n{\r\n \"purpose\": \"\",\r\n \"prohibited_actions\": [\r\n \"<string>\"\r\n ],\r\n \"user_types\": [],\r\n \"data_access\": [],\r\n \"actions\": []\r\n}\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-Enkrypt-Policy", "<x-enkrypt-policy>")
req.Header.Add("apikey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
HttpResponse<String> response = Unirest.patch("https://api.enkryptai.com/code-of-conduct/modify-policy")
.header("X-Enkrypt-Policy", "<x-enkrypt-policy>")
.header("apikey", "<api-key>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"name\"\r\n\r\nHealthcare Guidelines\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"policy_rules\"\r\n\r\n1. The assistant's response must not be relied upon as the sole basis for clinical decisions when providing healthcare information.\r\n2. Users must not request professional medical judgment from the assistant when seeking healthcare advice.\r\n3. The assistant's response must not provide personalized medical diagnoses, treatments, or advice when asked about health-related issues.\r\n4. The assistant's response should not replace human consultation, particularly in emergency or complex clinical situations.\r\n5. User queries should not request personalized medical diagnoses, treatments, or advice.\r\n6. Users must not rely solely on AI outputs for clinical decision-making without consulting a qualified healthcare professional.\r\n7. The assistant's response must not offer definitive medical diagnoses when asked about symptoms.\r\n8. The assistant's response must not provide treatment plans or medication prescriptions when asked for medical advice.\r\n9. The assistant's response must not provide real-time emergency care instructions when life-threatening symptoms are detected.\r\n10. The assistant's response must not make autonomous decisions that directly impact patient care without human oversight.\r\n11. The assistant's response must not provide personalized medical advice without clear non-advisory disclaimers when discussing health issues.\r\n12. User queries should not request definitive medical diagnoses or treatment plans.\r\n13. Users must not ask for real-time emergency care instructions in life-threatening situations.\r\n14. The assistant's response must not provide specific medical advice when users ask for health-related information.\r\n15. Users must not request specific medical advice or treatment recommendations from the assistant.\r\n16. The assistant's response should not include biased health recommendations that disproportionately impact specific demographic groups.\r\n17. Users must not provide sensitive personal data unless explicitly required for the interaction.\r\n18. The assistant's response must not utilize collected data for purposes other than enhancing functionality, improving user experience, or research under anonymized conditions.\r\n19. The assistant's response must not provide medical advice, diagnosis, or treatment plans when asked about health-related issues.\r\n20. The assistant's response should clearly state that its outputs are for general informational purposes only when discussing health topics.\r\n21. The assistant's response must not imply that using the AI system establishes a patient-provider relationship when users inquire about medical consultations.\r\n22. Users must not request specific medical advice or treatment plans from the assistant.\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"total_rules\"\r\n\r\n22\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"policy_file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"policy_text\"\r\n\r\n\"\"\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"v2_questionnaire\"\r\n\r\n{\r\n \"purpose\": \"\",\r\n \"prohibited_actions\": [\r\n \"<string>\"\r\n ],\r\n \"user_types\": [],\r\n \"data_access\": [],\r\n \"actions\": []\r\n}\r\n-----011000010111000001101001--")
.asString();
require 'uri'
require 'net/http'
url = URI("https://api.enkryptai.com/code-of-conduct/modify-policy")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-Enkrypt-Policy"] = '<x-enkrypt-policy>'
request["apikey"] = '<api-key>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"name\"\r\n\r\nHealthcare Guidelines\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"policy_rules\"\r\n\r\n1. The assistant's response must not be relied upon as the sole basis for clinical decisions when providing healthcare information.\r\n2. Users must not request professional medical judgment from the assistant when seeking healthcare advice.\r\n3. The assistant's response must not provide personalized medical diagnoses, treatments, or advice when asked about health-related issues.\r\n4. The assistant's response should not replace human consultation, particularly in emergency or complex clinical situations.\r\n5. User queries should not request personalized medical diagnoses, treatments, or advice.\r\n6. Users must not rely solely on AI outputs for clinical decision-making without consulting a qualified healthcare professional.\r\n7. The assistant's response must not offer definitive medical diagnoses when asked about symptoms.\r\n8. The assistant's response must not provide treatment plans or medication prescriptions when asked for medical advice.\r\n9. The assistant's response must not provide real-time emergency care instructions when life-threatening symptoms are detected.\r\n10. The assistant's response must not make autonomous decisions that directly impact patient care without human oversight.\r\n11. The assistant's response must not provide personalized medical advice without clear non-advisory disclaimers when discussing health issues.\r\n12. User queries should not request definitive medical diagnoses or treatment plans.\r\n13. Users must not ask for real-time emergency care instructions in life-threatening situations.\r\n14. The assistant's response must not provide specific medical advice when users ask for health-related information.\r\n15. Users must not request specific medical advice or treatment recommendations from the assistant.\r\n16. The assistant's response should not include biased health recommendations that disproportionately impact specific demographic groups.\r\n17. Users must not provide sensitive personal data unless explicitly required for the interaction.\r\n18. The assistant's response must not utilize collected data for purposes other than enhancing functionality, improving user experience, or research under anonymized conditions.\r\n19. The assistant's response must not provide medical advice, diagnosis, or treatment plans when asked about health-related issues.\r\n20. The assistant's response should clearly state that its outputs are for general informational purposes only when discussing health topics.\r\n21. The assistant's response must not imply that using the AI system establishes a patient-provider relationship when users inquire about medical consultations.\r\n22. Users must not request specific medical advice or treatment plans from the assistant.\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"total_rules\"\r\n\r\n22\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"policy_file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"policy_text\"\r\n\r\n\"\"\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"v2_questionnaire\"\r\n\r\n{\r\n \"purpose\": \"\",\r\n \"prohibited_actions\": [\r\n \"<string>\"\r\n ],\r\n \"user_types\": [],\r\n \"data_access\": [],\r\n \"actions\": []\r\n}\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body
{
"message": "Policy details updated successfully",
"data": {
"policy_rules": "\"1. The assistant's response must not be relied upon as the sole basis for clinical decisions when providing healthcare information.\\n2. Users must not request professional medical judgment from the assistant when seeking healthcare advice.\\n3. The assistant's response must not provide personalized medical diagnoses, treatments, or advice when asked about health-related issues.\\n4. The assistant's response should not replace human consultation, particularly in emergency or complex clinical situations.\\n5. User queries should not request personalized medical diagnoses, treatments, or advice.\\n6. Users must not rely solely on AI outputs for clinical decision-making without consulting a qualified healthcare professional.\\n7. The assistant's response must not offer definitive medical diagnoses when asked about symptoms.\\n8. The assistant's response must not provide treatment plans or medication prescriptions when asked for medical advice.\\n9. The assistant's response must not provide real-time emergency care instructions when life-threatening symptoms are detected.\\n10. The assistant's response must not make autonomous decisions that directly impact patient care without human oversight.\\n11. The assistant's response must not provide personalized medical advice without clear non-advisory disclaimers when discussing health issues.\\n12. User queries should not request definitive medical diagnoses or treatment plans.\\n13. Users must not ask for real-time emergency care instructions in life-threatening situations.\\n14. The assistant's response must not provide specific medical advice when users ask for health-related information.\\n15. Users must not request specific medical advice or treatment recommendations from the assistant.\\n16. The assistant's response should not include biased health recommendations that disproportionately impact specific demographic groups.\\n17. Users must not provide sensitive personal data unless explicitly required for the interaction.\\n18. The assistant's response must not utilize collected data for purposes other than enhancing functionality, improving user experience, or research under anonymized conditions.\\n19. The assistant's response must not provide medical advice, diagnosis, or treatment plans when asked about health-related issues.\\n20. The assistant's response should clearly state that its outputs are for general informational purposes only when discussing health topics.\\n21. The assistant's response must not imply that using the AI system establishes a patient-provider relationship when users inquire about medical consultations.\\n22. Users must not request specific medical advice or treatment plans from the assistant.\"",
"project_name": "default",
"total_rules": 22,
"name": "Healthcare Guidelines",
"updated_at": "2025-03-28T08:35:39.656184+00:00",
"policy_id": 1456247350,
"created_at": "2025-03-28T08:35:39.656184+00:00",
"is_v2": false,
"pdf_name": "healthcare_guidelines",
"policy_text": "<string>",
"created_by": "<string>",
"updated_by": "<string>",
"v2_questionnaire": {
"purpose": "",
"prohibited_actions": [
"<string>"
],
"user_types": [
"general_public"
],
"data_access": [
"pii"
],
"actions": [
"read_only"
],
"decision_impact": "informational"
},
"v2_config": {
"status": "success",
"enabled": [
{
"id": "priv-1",
"text": "The assistant must not provide individualized investment advice.",
"risk_category": "legal_ip_liability",
"applicability": "assistant",
"severity": "medium",
"source": "document",
"suggested": false,
"display_text": "No individualized investment advice",
"frameworks": [
"hipaa"
],
"mappings": [
{
"framework": "<string>",
"clause": "<string>"
}
]
}
],
"disabled": [
{
"id": "priv-1",
"text": "The assistant must not provide individualized investment advice.",
"risk_category": "legal_ip_liability",
"applicability": "assistant",
"severity": "medium",
"source": "document",
"suggested": false,
"display_text": "No individualized investment advice",
"frameworks": [
"hipaa"
],
"mappings": [
{
"framework": "<string>",
"clause": "<string>"
}
]
}
],
"stats": {
"generated": 3,
"enabled": 3,
"merged": 1,
"doc_only": 2,
"disabled": 20,
"excluded": 15
},
"processing_time": 41.2
}
}
}
{
"error": "This policy was created with the Policy Wizard (v2) and cannot be converted back to the legacy format. Create a new legacy policy instead."
}
Either the legacy trio (policy_rules + total_rules, plus one of policy_file/policy_text) OR the v2 pair (v2_questionnaire + v2_config) must be provided. policy_file is optional in EITHER case โ an archived source PDF is not v1-specific.
"1. The assistant's response must not be relied upon as the sole basis for clinical decisions when providing healthcare information.\n2. Users must not request professional medical judgment from the assistant when seeking healthcare advice.\n3. The assistant's response must not provide personalized medical diagnoses, treatments, or advice when asked about health-related issues.\n4. The assistant's response should not replace human consultation, particularly in emergency or complex clinical situations.\n5. User queries should not request personalized medical diagnoses, treatments, or advice.\n6. Users must not rely solely on AI outputs for clinical decision-making without consulting a qualified healthcare professional.\n7. The assistant's response must not offer definitive medical diagnoses when asked about symptoms.\n8. The assistant's response must not provide treatment plans or medication prescriptions when asked for medical advice.\n9. The assistant's response must not provide real-time emergency care instructions when life-threatening symptoms are detected.\n10. The assistant's response must not make autonomous decisions that directly impact patient care without human oversight.\n11. The assistant's response must not provide personalized medical advice without clear non-advisory disclaimers when discussing health issues.\n12. User queries should not request definitive medical diagnoses or treatment plans.\n13. Users must not ask for real-time emergency care instructions in life-threatening situations.\n14. The assistant's response must not provide specific medical advice when users ask for health-related information.\n15. Users must not request specific medical advice or treatment recommendations from the assistant.\n16. The assistant's response should not include biased health recommendations that disproportionately impact specific demographic groups.\n17. Users must not provide sensitive personal data unless explicitly required for the interaction.\n18. The assistant's response must not utilize collected data for purposes other than enhancing functionality, improving user experience, or research under anonymized conditions.\n19. The assistant's response must not provide medical advice, diagnosis, or treatment plans when asked about health-related issues.\n20. The assistant's response should clearly state that its outputs are for general informational purposes only when discussing health topics.\n21. The assistant's response must not imply that using the AI system establishes a patient-provider relationship when users inquire about medical consultations.\n22. Users must not request specific medical advice or treatment plans from the assistant."
Optional archived PDF of the policy document. Valid alongside either the legacy policy_rules/total_rules/policy_text trio or the v2 v2_questionnaire/v2_config pair โ this field is not v1-specific.
The Policy Wizard questionnaire this policy was generated from. Sent as a JSON-stringified form field (parsed server-side), the same convention policy_rules already uses. Presence of this field is what marks a multipart submission as v2 โ required together with v2_config in that case; omit both to submit the legacy v1 format instead.
The full generate-rules response (enabled/disabled rules + stats) this policy stores, verbatim. Sent as a JSON-stringified form field (parsed server-side), the same convention policy_rules already uses. Required together with v2_questionnaire to submit a Policy Wizard (v2) policy via multipart.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Enkrypt AI","colors":{"primary":"#ff6b6b","light":"#ff8a80","dark":"#ee5a24"},"logo":{"light":"https://mintcdn.com/enkryptai-42/7kWxrBaXsO0YvXjU/logo/light-logo.png?fit=max\u0026auto=format\u0026n=7kWxrBaXsO0YvXjU\u0026q=85\u0026s=3e4d5072cef08dc6b8885a03a7821b72","dark":"https://mintcdn.com/enkryptai-42/7kWxrBaXsO0YvXjU/logo/dark-logo.png?fit=max\u0026auto=format\u0026n=7kWxrBaXsO0YvXjU\u0026q=85\u0026s=2134a9f8208236db09c1727430559527"},"favicon":"https://mintcdn.com/enkryptai-42/rjcjkOmgLVUKmbck/favicon.svg?fit=max\u0026auto=format\u0026n=rjcjkOmgLVUKmbck\u0026q=85\u0026s=89efba126b5f4577a46794f171d766f0","appearance":{"default":"light","strict":false},"background":{"decoration":"gradient","color":{"light":"#fff5f5","dark":"#1a0f0f"}},"navbar":{"links":[{"href":"https://app.enkryptai.com/login","label":"Login"},{"href":"https://www.enkryptai.com/request-a-demo","label":"Schedule Demo"}],"primary":{"type":"button","label":"Learn More","href":"https://enkryptai.com"}},"footer":{"socials":{"x":"https://x.com/enkryptai","linkedin":"https://www.linkedin.com/company/enkryptai","website":"https://enkryptai.com"}},"styling":{"codeblocks":"system","latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"enkryptai-42","hasAudioNarration":false,"actualSubdomain":"enkryptai-42","customDomains":["docs.enkryptai.com"],"gitSource":{"type":"github","owner":"enkryptai","repo":"sentry","deployBranch":"docs-wip","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae1c016d6a250fd1db8d8b2","collectionId":"3601b564-9eab-40b7-823e-550bf1c8b396","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae1c016d6a250fd1db8d8b2"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae1c016d6a250fd1db8d8b2","clientVersion":"0.0.4045","searchFilterCounts":[{"language":"default","tag":"API Reference","count":340},{"language":"default","tag":"Get Started","count":65},{"language":"default","tag":"๐๏ธ Archived","count":48},{"language":"default","tag":"Get Started for Guardrails","count":39},{"language":"default","tag":"Examples","count":35},{"language":"default","tag":"๐ด Red Team API","count":30},{"language":"default","tag":"๐ก๏ธ Guardrails API Endpoints","count":24},{"language":"default","tag":"Red Team (Legacy)","count":22},{"language":"default","tag":"Guardrails Policy (Legacy)","count":11},{"language":"default","tag":"Get Started for Red Team","count":11}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/coc-api-reference/endpoint/modify-policy","slug":"/api-reference/coc-api-reference/endpoint/modify-policy","pageMetadata":{"title":"Modify Policy","openapi":"PATCH /code-of-conduct/modify-policy","description":"Update an existing Code of Conduct policy","href":"/api-reference/coc-api-reference/endpoint/modify-policy"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Update an existing Code of Conduct policy\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Modify Policy","openapi":"PATCH /code-of-conduct/modify-policy","description":"Update an existing Code of Conduct policy","href":"/api-reference/coc-api-reference/endpoint/modify-policy"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Update CoC Policy (v1\u003c->v2 conversion rules apply)","description":"Update an existing Code of Conduct policy","operationId":"update_coc_policy","tags":["Code of Conduct"],"parameters":["bb0dfa81-e273-45f8-af0e-fbeccddc4a85"],"requestBody":"da579b8d-c453-474c-82a7-f6bfad57b2e6","responses":{"200":"9f41fd5b-0f50-449e-9462-327848275ea7","400":"b7a99a04-7ecd-4083-8065-31f29cce15c9"},"method":"patch","type":"path","servers":["46d259d2-9225-46ce-aca1-4e05427371e5"],"security":["8565320a-4e60-418d-8700-2d1d509f0638"],"path":"/code-of-conduct/modify-policy","baseUrlOptions":["https://api.enkryptai.com"],"title":"Update CoC Policy (v1\u003c->v2 conversion rules apply)","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"bb0dfa81-e273-45f8-af0e-fbeccddc4a85":{"name":"X-Enkrypt-Policy","in":"header","required":true,"schema":{"title":"CoC Policy Name","type":"string","description":"The code of conduct policy name","example":"Test CoC Policy","isRequired":true,"uniqueKey":"","typeLabel":"string"}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","description":"Either the legacy trio (`policy_rules` + `total_rules`, plus one of `policy_file`/`policy_text`) OR the v2 pair (`v2_questionnaire` + `v2_config`) must be provided. `policy_file` is optional in EITHER case โ an archived source PDF is not v1-specific.","required":["name"],"properties":{"name":{"type":"string","description":"Name of the policy","example":"Healthcare Guidelines","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"policy_rules":{"type":"string","description":"JSON string containing the policy rules","example":"1. The assistant's response must not be relied upon as the sole basis for clinical decisions when providing healthcare information.\n2. Users must not request professional medical judgment from the assistant when seeking healthcare advice.\n3. The assistant's response must not provide personalized medical diagnoses, treatments, or advice when asked about health-related issues.\n4. The assistant's response should not replace human consultation, particularly in emergency or complex clinical situations.\n5. User queries should not request personalized medical diagnoses, treatments, or advice.\n6. Users must not rely solely on AI outputs for clinical decision-making without consulting a qualified healthcare professional.\n7. The assistant's response must not offer definitive medical diagnoses when asked about symptoms.\n8. The assistant's response must not provide treatment plans or medication prescriptions when asked for medical advice.\n9. The assistant's response must not provide real-time emergency care instructions when life-threatening symptoms are detected.\n10. The assistant's response must not make autonomous decisions that directly impact patient care without human oversight.\n11. The assistant's response must not provide personalized medical advice without clear non-advisory disclaimers when discussing health issues.\n12. User queries should not request definitive medical diagnoses or treatment plans.\n13. Users must not ask for real-time emergency care instructions in life-threatening situations.\n14. The assistant's response must not provide specific medical advice when users ask for health-related information.\n15. Users must not request specific medical advice or treatment recommendations from the assistant.\n16. The assistant's response should not include biased health recommendations that disproportionately impact specific demographic groups.\n17. Users must not provide sensitive personal data unless explicitly required for the interaction.\n18. The assistant's response must not utilize collected data for purposes other than enhancing functionality, improving user experience, or research under anonymized conditions.\n19. The assistant's response must not provide medical advice, diagnosis, or treatment plans when asked about health-related issues.\n20. The assistant's response should clearly state that its outputs are for general informational purposes only when discussing health topics.\n21. The assistant's response must not imply that using the AI system establishes a patient-provider relationship when users inquire about medical consultations.\n22. Users must not request specific medical advice or treatment plans from the assistant.","uniqueKey":"policy_rules","typeLabel":"string"},"total_rules":{"type":"integer","description":"Total number of rules in the policy","example":22,"minimum":1,"uniqueKey":"total_rules","typeLabel":"integer"},"policy_file":{"type":"string","format":"binary","description":"Optional archived PDF of the policy document. Valid alongside either the legacy `policy_rules`/`total_rules`/`policy_text` trio or the v2 `v2_questionnaire`/`v2_config` pair โ this field is not v1-specific.","uniqueKey":"policy_file","typeLabel":"file"},"policy_text":{"oneOf":[{"type":"string","description":"Optional policy text content if not provided in the file. Legacy (v1) field only.","default":"\"\"","uniqueKey":"policy_text.oneOf.0","typeLabel":"string"},{"type":"null","description":"Optional policy text content if not provided in the file. Legacy (v1) field only.","default":"\"\"","uniqueKey":"policy_text.oneOf.1","typeLabel":"null"}],"uniqueKey":"policy_text","typeLabel":"string | null"},"v2_questionnaire":{"type":"object","title":"WizardProfile","description":"The Policy Wizard questionnaire this policy was generated from. Sent as a JSON-stringified form field (parsed server-side), the same convention `policy_rules` already uses. Presence of this field is what marks a multipart submission as v2 โ required together with `v2_config` in that case; omit both to submit the legacy v1 format instead.","properties":{"purpose":{"title":"Purpose","type":"string","default":"","uniqueKey":"v2_questionnaire.purpose","typeLabel":"string"},"prohibited_actions":{"title":"Prohibited Actions","type":"array","items":{"type":"string","uniqueKey":"v2_questionnaire.prohibited_actions.items.[INDEX]","typeLabel":"string"},"uniqueKey":"v2_questionnaire.prohibited_actions","typeLabel":"string[]"},"user_types":{"title":"User Types","type":"array","items":{"type":"string","enum":["general_public","authenticated_customers","patients","minors","internal_employees","licensed_professionals","other"],"uniqueKey":"v2_questionnaire.user_types.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"v2_questionnaire.user_types","typeLabel":"enum\u003cstring>[]"},"data_access":{"title":"Data Access","type":"array","items":{"type":"string","enum":["pii","phi","financial","internal_company_data","public_only","user_provided_only"],"uniqueKey":"v2_questionnaire.data_access.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"v2_questionnaire.data_access","typeLabel":"enum\u003cstring>[]"},"actions":{"title":"Actions","type":"array","items":{"type":"string","enum":["read_only","sends_messages","creates_or_modifies_records","completes_transactions","connects_external_systems","runs_code"],"uniqueKey":"v2_questionnaire.actions.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"v2_questionnaire.actions","typeLabel":"enum\u003cstring>[]"},"decision_impact":{"oneOf":[{"title":"Decision Impact","type":"string","enum":["informational","advisory","automated"],"uniqueKey":"v2_questionnaire.decision_impact.oneOf.0","typeLabel":"enum\u003cstring>"},{"title":"Decision Impact","type":"null","enum":["informational","advisory","automated"],"uniqueKey":"v2_questionnaire.decision_impact.oneOf.1","typeLabel":"null"}],"uniqueKey":"v2_questionnaire.decision_impact","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"v2_questionnaire","typeLabel":"WizardProfile ยท object"},"v2_config":{"type":"object","title":"PolicyWizardGenerateRulesResponse","description":"The full generate-rules response (enabled/disabled rules + stats) this policy stores, verbatim. Sent as a JSON-stringified form field (parsed server-side), the same convention `policy_rules` already uses. Required together with `v2_questionnaire` to submit a Policy Wizard (v2) policy via multipart.","required":["status","enabled","disabled","stats","processing_time"],"properties":{"status":{"title":"Status","type":"string","example":"success","isRequired":true,"uniqueKey":"v2_config.status","typeLabel":"string"},"enabled":{"title":"Enabled","type":"array","items":{"title":"Rule","type":"object","properties":{"id":{"title":"Id","type":"string","example":"priv-1","isRequired":true,"uniqueKey":"v2_config.enabled.items.[INDEX].id","typeLabel":"string"},"text":{"title":"Text","type":"string","example":"The assistant must not provide individualized investment advice.","isRequired":true,"uniqueKey":"v2_config.enabled.items.[INDEX].text","typeLabel":"string"},"risk_category":{"title":"Risk Category","type":"string","example":"legal_ip_liability","enum":["security_fraud","safety_harm","privacy_data_protection","brand_reputation_trust","bias_fairness_ethical","legal_ip_liability","product_misuse_abuse","performance_reliability_quality"],"isRequired":true,"uniqueKey":"v2_config.enabled.items.[INDEX].risk_category","typeLabel":"enum\u003cstring>"},"applicability":{"title":"Applicability","type":"string","example":"assistant","enum":["assistant","user","user_assistant"],"isRequired":true,"uniqueKey":"v2_config.enabled.items.[INDEX].applicability","typeLabel":"enum\u003cstring>"},"severity":{"title":"Severity","type":"string","example":"medium","enum":["critical","high","medium","low"],"isRequired":true,"uniqueKey":"v2_config.enabled.items.[INDEX].severity","typeLabel":"enum\u003cstring>"},"source":{"title":"Source","type":"string","example":"document","enum":["document","catalog","document/catalog","user"],"isRequired":true,"uniqueKey":"v2_config.enabled.items.[INDEX].source","typeLabel":"enum\u003cstring>"},"suggested":{"title":"Suggested","type":"boolean","example":false,"isRequired":true,"uniqueKey":"v2_config.enabled.items.[INDEX].suggested","typeLabel":"boolean"},"display_text":{"title":"Display Text","type":"string","example":"No individualized investment advice","uniqueKey":"v2_config.enabled.items.[INDEX].display_text","typeLabel":"string"},"frameworks":{"title":"Frameworks","type":"array","items":{"type":"string","enum":["hipaa","finra","gdpr","ccpa","owasp_llm_2025","nist_ai_rmf","eu_ai_act","iso_42001"],"uniqueKey":"v2_config.enabled.items.[INDEX].frameworks.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"v2_config.enabled.items.[INDEX].frameworks","typeLabel":"enum\u003cstring>[]"},"mappings":{"title":"Mappings","type":"array","items":{"type":"object","properties":{"framework":{"type":"string","uniqueKey":"v2_config.enabled.items.[INDEX].mappings.items.[INDEX].framework","typeLabel":"string"},"clause":{"type":"string","uniqueKey":"v2_config.enabled.items.[INDEX].mappings.items.[INDEX].clause","typeLabel":"string"}},"uniqueKey":"v2_config.enabled.items.[INDEX].mappings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"v2_config.enabled.items.[INDEX].mappings","typeLabel":"Mappings ยท object[]"}},"required":["id","text","risk_category","applicability","severity","source","suggested"],"uniqueKey":"v2_config.enabled.items.[INDEX]","typeLabel":"Rule ยท object"},"isRequired":true,"uniqueKey":"v2_config.enabled","typeLabel":"Rule ยท object[]"},"disabled":{"title":"Disabled","type":"array","items":{"title":"Rule","type":"object","properties":{"id":{"title":"Id","type":"string","example":"priv-1","isRequired":true,"uniqueKey":"v2_config.disabled.items.[INDEX].id","typeLabel":"string"},"text":{"title":"Text","type":"string","example":"The assistant must not provide individualized investment advice.","isRequired":true,"uniqueKey":"v2_config.disabled.items.[INDEX].text","typeLabel":"string"},"risk_category":{"title":"Risk Category","type":"string","example":"legal_ip_liability","enum":["security_fraud","safety_harm","privacy_data_protection","brand_reputation_trust","bias_fairness_ethical","legal_ip_liability","product_misuse_abuse","performance_reliability_quality"],"isRequired":true,"uniqueKey":"v2_config.disabled.items.[INDEX].risk_category","typeLabel":"enum\u003cstring>"},"applicability":{"title":"Applicability","type":"string","example":"assistant","enum":["assistant","user","user_assistant"],"isRequired":true,"uniqueKey":"v2_config.disabled.items.[INDEX].applicability","typeLabel":"enum\u003cstring>"},"severity":{"title":"Severity","type":"string","example":"medium","enum":["critical","high","medium","low"],"isRequired":true,"uniqueKey":"v2_config.disabled.items.[INDEX].severity","typeLabel":"enum\u003cstring>"},"source":{"title":"Source","type":"string","example":"document","enum":["document","catalog","document/catalog","user"],"isRequired":true,"uniqueKey":"v2_config.disabled.items.[INDEX].source","typeLabel":"enum\u003cstring>"},"suggested":{"title":"Suggested","type":"boolean","example":false,"isRequired":true,"uniqueKey":"v2_config.disabled.items.[INDEX].suggested","typeLabel":"boolean"},"display_text":{"title":"Display Text","type":"string","example":"No individualized investment advice","uniqueKey":"v2_config.disabled.items.[INDEX].display_text","typeLabel":"string"},"frameworks":{"title":"Frameworks","type":"array","items":{"type":"string","enum":["hipaa","finra","gdpr","ccpa","owasp_llm_2025","nist_ai_rmf","eu_ai_act","iso_42001"],"uniqueKey":"v2_config.disabled.items.[INDEX].frameworks.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"v2_config.disabled.items.[INDEX].frameworks","typeLabel":"enum\u003cstring>[]"},"mappings":{"title":"Mappings","type":"array","items":{"type":"object","properties":{"framework":{"type":"string","uniqueKey":"v2_config.disabled.items.[INDEX].mappings.items.[INDEX].framework","typeLabel":"string"},"clause":{"type":"string","uniqueKey":"v2_config.disabled.items.[INDEX].mappings.items.[INDEX].clause","typeLabel":"string"}},"uniqueKey":"v2_config.disabled.items.[INDEX].mappings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"v2_config.disabled.items.[INDEX].mappings","typeLabel":"Mappings ยท object[]"}},"required":["id","text","risk_category","applicability","severity","source","suggested"],"uniqueKey":"v2_config.disabled.items.[INDEX]","typeLabel":"Rule ยท object"},"isRequired":true,"uniqueKey":"v2_config.disabled","typeLabel":"Rule ยท object[]"},"stats":{"title":"Stats","type":"object","properties":{"generated":{"title":"Generated","type":"integer","example":3,"uniqueKey":"v2_config.stats.generated","typeLabel":"integer"},"enabled":{"title":"Enabled","type":"integer","example":3,"uniqueKey":"v2_config.stats.enabled","typeLabel":"integer"},"merged":{"title":"Merged","type":"integer","example":1,"uniqueKey":"v2_config.stats.merged","typeLabel":"integer"},"doc_only":{"title":"Doc Only","type":"integer","example":2,"uniqueKey":"v2_config.stats.doc_only","typeLabel":"integer"},"disabled":{"title":"Disabled","type":"integer","example":20,"uniqueKey":"v2_config.stats.disabled","typeLabel":"integer"},"excluded":{"title":"Excluded","type":"integer","example":15,"uniqueKey":"v2_config.stats.excluded","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"v2_config.stats","typeLabel":"Stats ยท object"},"processing_time":{"title":"Processing Time","type":"number","example":41.2,"isRequired":true,"uniqueKey":"v2_config.processing_time","typeLabel":"number"}},"uniqueKey":"v2_config","typeLabel":"PolicyWizardGenerateRulesResponse ยท object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"name":"Healthcare Guidelines","policy_rules":"1. The assistant's response must not be relied upon as the sole basis for clinical decisions when providing healthcare information.\n2. Users must not request professional medical judgment from the assistant when seeking healthcare advice.\n3. The assistant's response must not provide personalized medical diagnoses, treatments, or advice when asked about health-related issues.\n4. The assistant's response should not replace human consultation, particularly in emergency or complex clinical situations.\n5. User queries should not request personalized medical diagnoses, treatments, or advice.\n6. Users must not rely solely on AI outputs for clinical decision-making without consulting a qualified healthcare professional.\n7. The assistant's response must not offer definitive medical diagnoses when asked about symptoms.\n8. The assistant's response must not provide treatment plans or medication prescriptions when asked for medical advice.\n9. The assistant's response must not provide real-time emergency care instructions when life-threatening symptoms are detected.\n10. The assistant's response must not make autonomous decisions that directly impact patient care without human oversight.\n11. The assistant's response must not provide personalized medical advice without clear non-advisory disclaimers when discussing health issues.\n12. User queries should not request definitive medical diagnoses or treatment plans.\n13. Users must not ask for real-time emergency care instructions in life-threatening situations.\n14. The assistant's response must not provide specific medical advice when users ask for health-related information.\n15. Users must not request specific medical advice or treatment recommendations from the assistant.\n16. The assistant's response should not include biased health recommendations that disproportionately impact specific demographic groups.\n17. Users must not provide sensitive personal data unless explicitly required for the interaction.\n18. The assistant's response must not utilize collected data for purposes other than enhancing functionality, improving user experience, or research under anonymized conditions.\n19. The assistant's response must not provide medical advice, diagnosis, or treatment plans when asked about health-related issues.\n20. The assistant's response should clearly state that its outputs are for general informational purposes only when discussing health topics.\n21. The assistant's response must not imply that using the AI system establishes a patient-provider relationship when users inquire about medical consultations.\n22. Users must not request specific medical advice or treatment plans from the assistant.","total_rules":22,"policy_file":"\u003cstring>","policy_text":"\"\"","v2_questionnaire":{"purpose":"","prohibited_actions":["\u003cstring>"],"user_types":[],"data_access":[],"actions":[]}}}},"exampleType":"generated"},"application/json":{"schema":{"title":"CoCPolicyV2RequestBody","description":"Policy Wizard (v2) request body for add-policy/modify-policy, sent as application/json (as opposed to the legacy multipart/form-data body described by CoCPolicyRequestFormData). v2_questionnaire is the WizardProfile produced by /guardrails/policy-wizard/infer-document (or authored directly), and v2_config is the full response of /guardrails/policy-wizard/generate-rules, stored verbatim.","type":"object","properties":{"name":{"type":"string","description":"Name of the policy","example":"Retail Bank CoC v2","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"v2_questionnaire":{"type":"object","title":"WizardProfile","description":"The Policy Wizard questionnaire this policy was generated from.","properties":{"purpose":{"title":"Purpose","type":"string","default":"","uniqueKey":"v2_questionnaire.purpose","typeLabel":"string"},"prohibited_actions":{"title":"Prohibited Actions","type":"array","items":{"type":"string","uniqueKey":"v2_questionnaire.prohibited_actions.items.[INDEX]","typeLabel":"string"},"uniqueKey":"v2_questionnaire.prohibited_actions","typeLabel":"string[]"},"user_types":{"title":"User Types","type":"array","items":{"type":"string","enum":["general_public","authenticated_customers","patients","minors","internal_employees","licensed_professionals","other"],"uniqueKey":"v2_questionnaire.user_types.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"v2_questionnaire.user_types","typeLabel":"enum\u003cstring>[]"},"data_access":{"title":"Data Access","type":"array","items":{"type":"string","enum":["pii","phi","financial","internal_company_data","public_only","user_provided_only"],"uniqueKey":"v2_questionnaire.data_access.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"v2_questionnaire.data_access","typeLabel":"enum\u003cstring>[]"},"actions":{"title":"Actions","type":"array","items":{"type":"string","enum":["read_only","sends_messages","creates_or_modifies_records","completes_transactions","connects_external_systems","runs_code"],"uniqueKey":"v2_questionnaire.actions.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"v2_questionnaire.actions","typeLabel":"enum\u003cstring>[]"},"decision_impact":{"oneOf":[{"title":"Decision Impact","type":"string","enum":["informational","advisory","automated"],"uniqueKey":"v2_questionnaire.decision_impact.oneOf.0","typeLabel":"enum\u003cstring>"},{"title":"Decision Impact","type":"null","enum":["informational","advisory","automated"],"uniqueKey":"v2_questionnaire.decision_impact.oneOf.1","typeLabel":"null"}],"uniqueKey":"v2_questionnaire.decision_impact","typeLabel":"enum\u003cstring> | null"}},"isRequired":true,"uniqueKey":"v2_questionnaire","typeLabel":"WizardProfile ยท object"},"v2_config":{"type":"object","title":"PolicyWizardGenerateRulesResponse","description":"The full generate-rules response (enabled/disabled rules + stats) this policy stores, verbatim.","required":["status","enabled","disabled","stats","processing_time"],"properties":{"status":{"title":"Status","type":"string","example":"success","isRequired":true,"uniqueKey":"v2_config.status","typeLabel":"string"},"enabled":{"title":"Enabled","type":"array","items":{"title":"Rule","type":"object","properties":{"id":{"title":"Id","type":"string","example":"priv-1","isRequired":true,"uniqueKey":"v2_config.enabled.items.[INDEX].id","typeLabel":"string"},"text":{"title":"Text","type":"string","example":"The assistant must not provide individualized investment advice.","isRequired":true,"uniqueKey":"v2_config.enabled.items.[INDEX].text","typeLabel":"string"},"risk_category":{"title":"Risk Category","type":"string","example":"legal_ip_liability","enum":["security_fraud","safety_harm","privacy_data_protection","brand_reputation_trust","bias_fairness_ethical","legal_ip_liability","product_misuse_abuse","performance_reliability_quality"],"isRequired":true,"uniqueKey":"v2_config.enabled.items.[INDEX].risk_category","typeLabel":"enum\u003cstring>"},"applicability":{"title":"Applicability","type":"string","example":"assistant","enum":["assistant","user","user_assistant"],"isRequired":true,"uniqueKey":"v2_config.enabled.items.[INDEX].applicability","typeLabel":"enum\u003cstring>"},"severity":{"title":"Severity","type":"string","example":"medium","enum":["critical","high","medium","low"],"isRequired":true,"uniqueKey":"v2_config.enabled.items.[INDEX].severity","typeLabel":"enum\u003cstring>"},"source":{"title":"Source","type":"string","example":"document","enum":["document","catalog","document/catalog","user"],"isRequired":true,"uniqueKey":"v2_config.enabled.items.[INDEX].source","typeLabel":"enum\u003cstring>"},"suggested":{"title":"Suggested","type":"boolean","example":false,"isRequired":true,"uniqueKey":"v2_config.enabled.items.[INDEX].suggested","typeLabel":"boolean"},"display_text":{"title":"Display Text","type":"string","example":"No individualized investment advice","uniqueKey":"v2_config.enabled.items.[INDEX].display_text","typeLabel":"string"},"frameworks":{"title":"Frameworks","type":"array","items":{"type":"string","enum":["hipaa","finra","gdpr","ccpa","owasp_llm_2025","nist_ai_rmf","eu_ai_act","iso_42001"],"uniqueKey":"v2_config.enabled.items.[INDEX].frameworks.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"v2_config.enabled.items.[INDEX].frameworks","typeLabel":"enum\u003cstring>[]"},"mappings":{"title":"Mappings","type":"array","items":{"type":"object","properties":{"framework":{"type":"string","uniqueKey":"v2_config.enabled.items.[INDEX].mappings.items.[INDEX].framework","typeLabel":"string"},"clause":{"type":"string","uniqueKey":"v2_config.enabled.items.[INDEX].mappings.items.[INDEX].clause","typeLabel":"string"}},"uniqueKey":"v2_config.enabled.items.[INDEX].mappings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"v2_config.enabled.items.[INDEX].mappings","typeLabel":"Mappings ยท object[]"}},"required":["id","text","risk_category","applicability","severity","source","suggested"],"uniqueKey":"v2_config.enabled.items.[INDEX]","typeLabel":"Rule ยท object"},"isRequired":true,"uniqueKey":"v2_config.enabled","typeLabel":"Rule ยท object[]"},"disabled":{"title":"Disabled","type":"array","items":{"title":"Rule","type":"object","properties":{"id":{"title":"Id","type":"string","example":"priv-1","isRequired":true,"uniqueKey":"v2_config.disabled.items.[INDEX].id","typeLabel":"string"},"text":{"title":"Text","type":"string","example":"The assistant must not provide individualized investment advice.","isRequired":true,"uniqueKey":"v2_config.disabled.items.[INDEX].text","typeLabel":"string"},"risk_category":{"title":"Risk Category","type":"string","example":"legal_ip_liability","enum":["security_fraud","safety_harm","privacy_data_protection","brand_reputation_trust","bias_fairness_ethical","legal_ip_liability","product_misuse_abuse","performance_reliability_quality"],"isRequired":true,"uniqueKey":"v2_config.disabled.items.[INDEX].risk_category","typeLabel":"enum\u003cstring>"},"applicability":{"title":"Applicability","type":"string","example":"assistant","enum":["assistant","user","user_assistant"],"isRequired":true,"uniqueKey":"v2_config.disabled.items.[INDEX].applicability","typeLabel":"enum\u003cstring>"},"severity":{"title":"Severity","type":"string","example":"medium","enum":["critical","high","medium","low"],"isRequired":true,"uniqueKey":"v2_config.disabled.items.[INDEX].severity","typeLabel":"enum\u003cstring>"},"source":{"title":"Source","type":"string","example":"document","enum":["document","catalog","document/catalog","user"],"isRequired":true,"uniqueKey":"v2_config.disabled.items.[INDEX].source","typeLabel":"enum\u003cstring>"},"suggested":{"title":"Suggested","type":"boolean","example":false,"isRequired":true,"uniqueKey":"v2_config.disabled.items.[INDEX].suggested","typeLabel":"boolean"},"display_text":{"title":"Display Text","type":"string","example":"No individualized investment advice","uniqueKey":"v2_config.disabled.items.[INDEX].display_text","typeLabel":"string"},"frameworks":{"title":"Frameworks","type":"array","items":{"type":"string","enum":["hipaa","finra","gdpr","ccpa","owasp_llm_2025","nist_ai_rmf","eu_ai_act","iso_42001"],"uniqueKey":"v2_config.disabled.items.[INDEX].frameworks.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"v2_config.disabled.items.[INDEX].frameworks","typeLabel":"enum\u003cstring>[]"},"mappings":{"title":"Mappings","type":"array","items":{"type":"object","properties":{"framework":{"type":"string","uniqueKey":"v2_config.disabled.items.[INDEX].mappings.items.[INDEX].framework","typeLabel":"string"},"clause":{"type":"string","uniqueKey":"v2_config.disabled.items.[INDEX].mappings.items.[INDEX].clause","typeLabel":"string"}},"uniqueKey":"v2_config.disabled.items.[INDEX].mappings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"v2_config.disabled.items.[INDEX].mappings","typeLabel":"Mappings ยท object[]"}},"required":["id","text","risk_category","applicability","severity","source","suggested"],"uniqueKey":"v2_config.disabled.items.[INDEX]","typeLabel":"Rule ยท object"},"isRequired":true,"uniqueKey":"v2_config.disabled","typeLabel":"Rule ยท object[]"},"stats":{"title":"Stats","type":"object","properties":{"generated":{"title":"Generated","type":"integer","example":3,"uniqueKey":"v2_config.stats.generated","typeLabel":"integer"},"enabled":{"title":"Enabled","type":"integer","example":3,"uniqueKey":"v2_config.stats.enabled","typeLabel":"integer"},"merged":{"title":"Merged","type":"integer","example":1,"uniqueKey":"v2_config.stats.merged","typeLabel":"integer"},"doc_only":{"title":"Doc Only","type":"integer","example":2,"uniqueKey":"v2_config.stats.doc_only","typeLabel":"integer"},"disabled":{"title":"Disabled","type":"integer","example":20,"uniqueKey":"v2_config.stats.disabled","typeLabel":"integer"},"excluded":{"title":"Excluded","type":"integer","example":15,"uniqueKey":"v2_config.stats.excluded","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"v2_config.stats","typeLabel":"Stats ยท object"},"processing_time":{"title":"Processing Time","type":"number","example":41.2,"isRequired":true,"uniqueKey":"v2_config.processing_time","typeLabel":"number"}},"isRequired":true,"uniqueKey":"v2_config","typeLabel":"PolicyWizardGenerateRulesResponse ยท object"},"is_sample":{"oneOf":[{"type":"boolean","description":"Marks this policy as a sample/demo policy rather than a real one","default":false,"uniqueKey":"is_sample.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Marks this policy as a sample/demo policy rather than a real one","default":false,"uniqueKey":"is_sample.oneOf.1","typeLabel":"null"}],"uniqueKey":"is_sample","typeLabel":"boolean | null"}},"required":["name","v2_questionnaire","v2_config"],"uniqueKey":"","typeLabel":"CoCPolicyV2RequestBody ยท object"},"examples":{"Example":{"title":"Example","value":{"name":"Retail Bank CoC v2","v2_questionnaire":{"purpose":"","prohibited_actions":["\u003cstring>"],"user_types":[],"data_access":[],"actions":[]},"v2_config":{"status":"success","enabled":[{"id":"priv-1","text":"The assistant must not provide individualized investment advice.","risk_category":"legal_ip_liability","applicability":"assistant","severity":"medium","source":"document","suggested":false,"display_text":"No individualized investment advice","frameworks":[],"mappings":[{"framework":"\u003cstring>","clause":"\u003cstring>"}]}],"disabled":[{"id":"priv-1","text":"The assistant must not provide individualized investment advice.","risk_category":"legal_ip_liability","applicability":"assistant","severity":"medium","source":"document","suggested":false,"display_text":"No individualized investment advice","frameworks":[],"mappings":[{"framework":"\u003cstring>","clause":"\u003cstring>"}]}],"stats":{"generated":3,"enabled":3,"merged":1,"doc_only":2,"disabled":20,"excluded":15},"processing_time":41.2},"is_sample":false}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"9f41fd5b-0f50-449e-9462-327848275ea7":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"ModifyCoCPolicyResponseObject","type":"object","properties":{"message":{"title":"Message","type":"string","example":"Policy details updated successfully","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"data":{"title":"CoCPolicyResponseObject","type":"object","properties":{"policy_rules":{"oneOf":[{"title":"Policy Rules","type":"string","description":"The rules defined in the policy. Legacy (v1) field: only populated when is_v2 is false, null on Policy Wizard (v2) policies.","example":"\"1. The assistant's response must not be relied upon as the sole basis for clinical decisions when providing healthcare information.\\n2. Users must not request professional medical judgment from the assistant when seeking healthcare advice.\\n3. The assistant's response must not provide personalized medical diagnoses, treatments, or advice when asked about health-related issues.\\n4. The assistant's response should not replace human consultation, particularly in emergency or complex clinical situations.\\n5. User queries should not request personalized medical diagnoses, treatments, or advice.\\n6. Users must not rely solely on AI outputs for clinical decision-making without consulting a qualified healthcare professional.\\n7. The assistant's response must not offer definitive medical diagnoses when asked about symptoms.\\n8. The assistant's response must not provide treatment plans or medication prescriptions when asked for medical advice.\\n9. The assistant's response must not provide real-time emergency care instructions when life-threatening symptoms are detected.\\n10. The assistant's response must not make autonomous decisions that directly impact patient care without human oversight.\\n11. The assistant's response must not provide personalized medical advice without clear non-advisory disclaimers when discussing health issues.\\n12. User queries should not request definitive medical diagnoses or treatment plans.\\n13. Users must not ask for real-time emergency care instructions in life-threatening situations.\\n14. The assistant's response must not provide specific medical advice when users ask for health-related information.\\n15. Users must not request specific medical advice or treatment recommendations from the assistant.\\n16. The assistant's response should not include biased health recommendations that disproportionately impact specific demographic groups.\\n17. Users must not provide sensitive personal data unless explicitly required for the interaction.\\n18. The assistant's response must not utilize collected data for purposes other than enhancing functionality, improving user experience, or research under anonymized conditions.\\n19. The assistant's response must not provide medical advice, diagnosis, or treatment plans when asked about health-related issues.\\n20. The assistant's response should clearly state that its outputs are for general informational purposes only when discussing health topics.\\n21. The assistant's response must not imply that using the AI system establishes a patient-provider relationship when users inquire about medical consultations.\\n22. Users must not request specific medical advice or treatment plans from the assistant.\"","isRequired":true,"uniqueKey":"data.policy_rules.oneOf.0","typeLabel":"string"},{"title":"Policy Rules","type":"null","description":"The rules defined in the policy. Legacy (v1) field: only populated when is_v2 is false, null on Policy Wizard (v2) policies.","example":"\"1. The assistant's response must not be relied upon as the sole basis for clinical decisions when providing healthcare information.\\n2. Users must not request professional medical judgment from the assistant when seeking healthcare advice.\\n3. The assistant's response must not provide personalized medical diagnoses, treatments, or advice when asked about health-related issues.\\n4. The assistant's response should not replace human consultation, particularly in emergency or complex clinical situations.\\n5. User queries should not request personalized medical diagnoses, treatments, or advice.\\n6. Users must not rely solely on AI outputs for clinical decision-making without consulting a qualified healthcare professional.\\n7. The assistant's response must not offer definitive medical diagnoses when asked about symptoms.\\n8. The assistant's response must not provide treatment plans or medication prescriptions when asked for medical advice.\\n9. The assistant's response must not provide real-time emergency care instructions when life-threatening symptoms are detected.\\n10. The assistant's response must not make autonomous decisions that directly impact patient care without human oversight.\\n11. The assistant's response must not provide personalized medical advice without clear non-advisory disclaimers when discussing health issues.\\n12. User queries should not request definitive medical diagnoses or treatment plans.\\n13. Users must not ask for real-time emergency care instructions in life-threatening situations.\\n14. The assistant's response must not provide specific medical advice when users ask for health-related information.\\n15. Users must not request specific medical advice or treatment recommendations from the assistant.\\n16. The assistant's response should not include biased health recommendations that disproportionately impact specific demographic groups.\\n17. Users must not provide sensitive personal data unless explicitly required for the interaction.\\n18. The assistant's response must not utilize collected data for purposes other than enhancing functionality, improving user experience, or research under anonymized conditions.\\n19. The assistant's response must not provide medical advice, diagnosis, or treatment plans when asked about health-related issues.\\n20. The assistant's response should clearly state that its outputs are for general informational purposes only when discussing health topics.\\n21. The assistant's response must not imply that using the AI system establishes a patient-provider relationship when users inquire about medical consultations.\\n22. Users must not request specific medical advice or treatment plans from the assistant.\"","isRequired":true,"uniqueKey":"data.policy_rules.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.policy_rules","typeLabel":"string | null"},"project_name":{"title":"Project Name","type":"string","example":"default","isRequired":true,"uniqueKey":"data.project_name","typeLabel":"string"},"total_rules":{"oneOf":[{"title":"Total Rules","type":"integer","description":"Total number of rules in the policy. Legacy (v1) field: only populated when is_v2 is false, null on Policy Wizard (v2) policies.","example":22,"isRequired":true,"uniqueKey":"data.total_rules.oneOf.0","typeLabel":"integer"},{"title":"Total Rules","type":"null","description":"Total number of rules in the policy. Legacy (v1) field: only populated when is_v2 is false, null on Policy Wizard (v2) policies.","example":22,"isRequired":true,"uniqueKey":"data.total_rules.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.total_rules","typeLabel":"integer | null"},"name":{"title":"Name","type":"string","description":"Name of the policy","example":"Healthcare Guidelines","isRequired":true,"uniqueKey":"data.name","typeLabel":"string"},"updated_at":{"title":"Updated At","type":"string","format":"date-time","example":"2025-03-28T08:35:39.656184+00:00","isRequired":true,"uniqueKey":"data.updated_at","typeLabel":"string\u003cdate-time>"},"policy_id":{"title":"Policy ID","type":"integer","example":1456247350,"isRequired":true,"uniqueKey":"data.policy_id","typeLabel":"integer"},"created_at":{"title":"Created At","type":"string","format":"date-time","example":"2025-03-28T08:35:39.656184+00:00","isRequired":true,"uniqueKey":"data.created_at","typeLabel":"string\u003cdate-time>"},"is_v2":{"title":"Is V2","type":"boolean","description":"Whether this policy is stored in the Policy Wizard (v2) format. Always present. When true, v2_questionnaire and v2_config are populated and the legacy fields (policy_rules, policy_text, total_rules, pdf_name) are null; when false, the reverse is true.","example":false,"isRequired":true,"uniqueKey":"data.is_v2","typeLabel":"boolean"},"pdf_name":{"oneOf":[{"title":"PDF Name","type":"string","description":"Legacy (v1) field: only populated when is_v2 is false, null on Policy Wizard (v2) policies.","example":"healthcare_guidelines","uniqueKey":"data.pdf_name.oneOf.0","typeLabel":"string"},{"title":"PDF Name","type":"null","description":"Legacy (v1) field: only populated when is_v2 is false, null on Policy Wizard (v2) policies.","example":"healthcare_guidelines","uniqueKey":"data.pdf_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.pdf_name","typeLabel":"string | null"},"policy_text":{"oneOf":[{"title":"Policy Text","type":"string","description":"Legacy (v1) field: only populated when is_v2 is false, null on Policy Wizard (v2) policies.","uniqueKey":"data.policy_text.oneOf.0","typeLabel":"string"},{"title":"Policy Text","type":"null","description":"Legacy (v1) field: only populated when is_v2 is false, null on Policy Wizard (v2) policies.","uniqueKey":"data.policy_text.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.policy_text","typeLabel":"string | null"},"created_by":{"oneOf":[{"title":"Created By","type":"string","uniqueKey":"data.created_by.oneOf.0","typeLabel":"string"},{"title":"Created By","type":"null","uniqueKey":"data.created_by.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.created_by","typeLabel":"string | null"},"updated_by":{"oneOf":[{"title":"Updated By","type":"string","uniqueKey":"data.updated_by.oneOf.0","typeLabel":"string"},{"title":"Updated By","type":"null","uniqueKey":"data.updated_by.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.updated_by","typeLabel":"string | null"},"v2_questionnaire":{"oneOf":[{"type":"object","title":"WizardProfile","description":"The Policy Wizard questionnaire this policy was generated from. Only populated when is_v2 is true, null on legacy (v1) policies.","properties":{"purpose":{"title":"Purpose","type":"string","default":"","uniqueKey":"data.v2_questionnaire.oneOf.0.purpose","typeLabel":"string"},"prohibited_actions":{"title":"Prohibited Actions","type":"array","items":{"type":"string","uniqueKey":"data.v2_questionnaire.oneOf.0.prohibited_actions.items.[INDEX]","typeLabel":"string"},"uniqueKey":"data.v2_questionnaire.oneOf.0.prohibited_actions","typeLabel":"string[]"},"user_types":{"title":"User Types","type":"array","items":{"type":"string","enum":["general_public","authenticated_customers","patients","minors","internal_employees","licensed_professionals","other"],"uniqueKey":"data.v2_questionnaire.oneOf.0.user_types.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"data.v2_questionnaire.oneOf.0.user_types","typeLabel":"enum\u003cstring>[]"},"data_access":{"title":"Data Access","type":"array","items":{"type":"string","enum":["pii","phi","financial","internal_company_data","public_only","user_provided_only"],"uniqueKey":"data.v2_questionnaire.oneOf.0.data_access.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"data.v2_questionnaire.oneOf.0.data_access","typeLabel":"enum\u003cstring>[]"},"actions":{"title":"Actions","type":"array","items":{"type":"string","enum":["read_only","sends_messages","creates_or_modifies_records","completes_transactions","connects_external_systems","runs_code"],"uniqueKey":"data.v2_questionnaire.oneOf.0.actions.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"data.v2_questionnaire.oneOf.0.actions","typeLabel":"enum\u003cstring>[]"},"decision_impact":{"oneOf":[{"title":"Decision Impact","type":"string","enum":["informational","advisory","automated"],"uniqueKey":"data.v2_questionnaire.oneOf.0.decision_impact.oneOf.0","typeLabel":"enum\u003cstring>"},{"title":"Decision Impact","type":"null","enum":["informational","advisory","automated"],"uniqueKey":"data.v2_questionnaire.oneOf.0.decision_impact.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.v2_questionnaire.oneOf.0.decision_impact","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"data.v2_questionnaire.oneOf.0","typeLabel":"WizardProfile ยท object"},{"type":"null","uniqueKey":"data.v2_questionnaire.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.v2_questionnaire","typeLabel":"WizardProfile ยท object | null"},"v2_config":{"oneOf":[{"type":"object","title":"PolicyWizardGenerateRulesResponse","description":"The full generate-rules response (enabled/disabled rules + stats) this policy stores. Only populated when is_v2 is true, null on legacy (v1) policies.","required":["status","enabled","disabled","stats","processing_time"],"properties":{"status":{"title":"Status","type":"string","example":"success","isRequired":true,"uniqueKey":"data.v2_config.oneOf.0.status","typeLabel":"string"},"enabled":{"title":"Enabled","type":"array","items":{"title":"Rule","type":"object","properties":{"id":{"title":"Id","type":"string","example":"priv-1","isRequired":true,"uniqueKey":"data.v2_config.oneOf.0.enabled.items.[INDEX].id","typeLabel":"string"},"text":{"title":"Text","type":"string","example":"The assistant must not provide individualized investment advice.","isRequired":true,"uniqueKey":"data.v2_config.oneOf.0.enabled.items.[INDEX].text","typeLabel":"string"},"risk_category":{"title":"Risk Category","type":"string","example":"legal_ip_liability","enum":["security_fraud","safety_harm","privacy_data_protection","brand_reputation_trust","bias_fairness_ethical","legal_ip_liability","product_misuse_abuse","performance_reliability_quality"],"isRequired":true,"uniqueKey":"data.v2_config.oneOf.0.enabled.items.[INDEX].risk_category","typeLabel":"enum\u003cstring>"},"applicability":{"title":"Applicability","type":"string","example":"assistant","enum":["assistant","user","user_assistant"],"isRequired":true,"uniqueKey":"data.v2_config.oneOf.0.enabled.items.[INDEX].applicability","typeLabel":"enum\u003cstring>"},"severity":{"title":"Severity","type":"string","example":"medium","enum":["critical","high","medium","low"],"isRequired":true,"uniqueKey":"data.v2_config.oneOf.0.enabled.items.[INDEX].severity","typeLabel":"enum\u003cstring>"},"source":{"title":"Source","type":"string","example":"document","enum":["document","catalog","document/catalog","user"],"isRequired":true,"uniqueKey":"data.v2_config.oneOf.0.enabled.items.[INDEX].source","typeLabel":"enum\u003cstring>"},"suggested":{"title":"Suggested","type":"boolean","example":false,"isRequired":true,"uniqueKey":"data.v2_config.oneOf.0.enabled.items.[INDEX].suggested","typeLabel":"boolean"},"display_text":{"title":"Display Text","type":"string","example":"No individualized investment advice","uniqueKey":"data.v2_config.oneOf.0.enabled.items.[INDEX].display_text","typeLabel":"string"},"frameworks":{"title":"Frameworks","type":"array","items":{"type":"string","enum":["hipaa","finra","gdpr","ccpa","owasp_llm_2025","nist_ai_rmf","eu_ai_act","iso_42001"],"uniqueKey":"data.v2_config.oneOf.0.enabled.items.[INDEX].frameworks.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"data.v2_config.oneOf.0.enabled.items.[INDEX].frameworks","typeLabel":"enum\u003cstring>[]"},"mappings":{"title":"Mappings","type":"array","items":{"type":"object","properties":{"framework":{"type":"string","uniqueKey":"data.v2_config.oneOf.0.enabled.items.[INDEX].mappings.items.[INDEX].framework","typeLabel":"string"},"clause":{"type":"string","uniqueKey":"data.v2_config.oneOf.0.enabled.items.[INDEX].mappings.items.[INDEX].clause","typeLabel":"string"}},"uniqueKey":"data.v2_config.oneOf.0.enabled.items.[INDEX].mappings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.v2_config.oneOf.0.enabled.items.[INDEX].mappings","typeLabel":"Mappings ยท object[]"}},"required":["id","text","risk_category","applicability","severity","source","suggested"],"uniqueKey":"data.v2_config.oneOf.0.enabled.items.[INDEX]","typeLabel":"Rule ยท object"},"isRequired":true,"uniqueKey":"data.v2_config.oneOf.0.enabled","typeLabel":"Rule ยท object[]"},"disabled":{"title":"Disabled","type":"array","items":{"title":"Rule","type":"object","properties":{"id":{"title":"Id","type":"string","example":"priv-1","isRequired":true,"uniqueKey":"data.v2_config.oneOf.0.disabled.items.[INDEX].id","typeLabel":"string"},"text":{"title":"Text","type":"string","example":"The assistant must not provide individualized investment advice.","isRequired":true,"uniqueKey":"data.v2_config.oneOf.0.disabled.items.[INDEX].text","typeLabel":"string"},"risk_category":{"title":"Risk Category","type":"string","example":"legal_ip_liability","enum":["security_fraud","safety_harm","privacy_data_protection","brand_reputation_trust","bias_fairness_ethical","legal_ip_liability","product_misuse_abuse","performance_reliability_quality"],"isRequired":true,"uniqueKey":"data.v2_config.oneOf.0.disabled.items.[INDEX].risk_category","typeLabel":"enum\u003cstring>"},"applicability":{"title":"Applicability","type":"string","example":"assistant","enum":["assistant","user","user_assistant"],"isRequired":true,"uniqueKey":"data.v2_config.oneOf.0.disabled.items.[INDEX].applicability","typeLabel":"enum\u003cstring>"},"severity":{"title":"Severity","type":"string","example":"medium","enum":["critical","high","medium","low"],"isRequired":true,"uniqueKey":"data.v2_config.oneOf.0.disabled.items.[INDEX].severity","typeLabel":"enum\u003cstring>"},"source":{"title":"Source","type":"string","example":"document","enum":["document","catalog","document/catalog","user"],"isRequired":true,"uniqueKey":"data.v2_config.oneOf.0.disabled.items.[INDEX].source","typeLabel":"enum\u003cstring>"},"suggested":{"title":"Suggested","type":"boolean","example":false,"isRequired":true,"uniqueKey":"data.v2_config.oneOf.0.disabled.items.[INDEX].suggested","typeLabel":"boolean"},"display_text":{"title":"Display Text","type":"string","example":"No individualized investment advice","uniqueKey":"data.v2_config.oneOf.0.disabled.items.[INDEX].display_text","typeLabel":"string"},"frameworks":{"title":"Frameworks","type":"array","items":{"type":"string","enum":["hipaa","finra","gdpr","ccpa","owasp_llm_2025","nist_ai_rmf","eu_ai_act","iso_42001"],"uniqueKey":"data.v2_config.oneOf.0.disabled.items.[INDEX].frameworks.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"data.v2_config.oneOf.0.disabled.items.[INDEX].frameworks","typeLabel":"enum\u003cstring>[]"},"mappings":{"title":"Mappings","type":"array","items":{"type":"object","properties":{"framework":{"type":"string","uniqueKey":"data.v2_config.oneOf.0.disabled.items.[INDEX].mappings.items.[INDEX].framework","typeLabel":"string"},"clause":{"type":"string","uniqueKey":"data.v2_config.oneOf.0.disabled.items.[INDEX].mappings.items.[INDEX].clause","typeLabel":"string"}},"uniqueKey":"data.v2_config.oneOf.0.disabled.items.[INDEX].mappings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.v2_config.oneOf.0.disabled.items.[INDEX].mappings","typeLabel":"Mappings ยท object[]"}},"required":["id","text","risk_category","applicability","severity","source","suggested"],"uniqueKey":"data.v2_config.oneOf.0.disabled.items.[INDEX]","typeLabel":"Rule ยท object"},"isRequired":true,"uniqueKey":"data.v2_config.oneOf.0.disabled","typeLabel":"Rule ยท object[]"},"stats":{"title":"Stats","type":"object","properties":{"generated":{"title":"Generated","type":"integer","example":3,"uniqueKey":"data.v2_config.oneOf.0.stats.generated","typeLabel":"integer"},"enabled":{"title":"Enabled","type":"integer","example":3,"uniqueKey":"data.v2_config.oneOf.0.stats.enabled","typeLabel":"integer"},"merged":{"title":"Merged","type":"integer","example":1,"uniqueKey":"data.v2_config.oneOf.0.stats.merged","typeLabel":"integer"},"doc_only":{"title":"Doc Only","type":"integer","example":2,"uniqueKey":"data.v2_config.oneOf.0.stats.doc_only","typeLabel":"integer"},"disabled":{"title":"Disabled","type":"integer","example":20,"uniqueKey":"data.v2_config.oneOf.0.stats.disabled","typeLabel":"integer"},"excluded":{"title":"Excluded","type":"integer","example":15,"uniqueKey":"data.v2_config.oneOf.0.stats.excluded","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"data.v2_config.oneOf.0.stats","typeLabel":"Stats ยท object"},"processing_time":{"title":"Processing Time","type":"number","example":41.2,"isRequired":true,"uniqueKey":"data.v2_config.oneOf.0.processing_time","typeLabel":"number"}},"uniqueKey":"data.v2_config.oneOf.0","typeLabel":"PolicyWizardGenerateRulesResponse ยท object"},{"type":"null","uniqueKey":"data.v2_config.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.v2_config","typeLabel":"PolicyWizardGenerateRulesResponse ยท object | null"}},"required":["policy_rules","project_name","total_rules","name","updated_at","policy_id","created_at","is_v2"],"isRequired":true,"uniqueKey":"data","typeLabel":"CoCPolicyResponseObject ยท object"}},"required":["message","data"],"uniqueKey":"","typeLabel":"ModifyCoCPolicyResponseObject ยท object"},"examples":{"Example":{"title":"Example","value":{"message":"Policy details updated successfully","data":{"policy_rules":"\"1. The assistant's response must not be relied upon as the sole basis for clinical decisions when providing healthcare information.\\n2. Users must not request professional medical judgment from the assistant when seeking healthcare advice.\\n3. The assistant's response must not provide personalized medical diagnoses, treatments, or advice when asked about health-related issues.\\n4. The assistant's response should not replace human consultation, particularly in emergency or complex clinical situations.\\n5. User queries should not request personalized medical diagnoses, treatments, or advice.\\n6. Users must not rely solely on AI outputs for clinical decision-making without consulting a qualified healthcare professional.\\n7. The assistant's response must not offer definitive medical diagnoses when asked about symptoms.\\n8. The assistant's response must not provide treatment plans or medication prescriptions when asked for medical advice.\\n9. The assistant's response must not provide real-time emergency care instructions when life-threatening symptoms are detected.\\n10. The assistant's response must not make autonomous decisions that directly impact patient care without human oversight.\\n11. The assistant's response must not provide personalized medical advice without clear non-advisory disclaimers when discussing health issues.\\n12. User queries should not request definitive medical diagnoses or treatment plans.\\n13. Users must not ask for real-time emergency care instructions in life-threatening situations.\\n14. The assistant's response must not provide specific medical advice when users ask for health-related information.\\n15. Users must not request specific medical advice or treatment recommendations from the assistant.\\n16. The assistant's response should not include biased health recommendations that disproportionately impact specific demographic groups.\\n17. Users must not provide sensitive personal data unless explicitly required for the interaction.\\n18. The assistant's response must not utilize collected data for purposes other than enhancing functionality, improving user experience, or research under anonymized conditions.\\n19. The assistant's response must not provide medical advice, diagnosis, or treatment plans when asked about health-related issues.\\n20. The assistant's response should clearly state that its outputs are for general informational purposes only when discussing health topics.\\n21. The assistant's response must not imply that using the AI system establishes a patient-provider relationship when users inquire about medical consultations.\\n22. Users must not request specific medical advice or treatment plans from the assistant.\"","project_name":"default","total_rules":22,"name":"Healthcare Guidelines","updated_at":"2025-03-28T08:35:39.656184+00:00","policy_id":1456247350,"created_at":"2025-03-28T08:35:39.656184+00:00","is_v2":false,"pdf_name":"healthcare_guidelines","policy_text":"\u003cstring>","created_by":"\u003cstring>","updated_by":"\u003cstring>","v2_questionnaire":{"purpose":"","prohibited_actions":["\u003cstring>"],"user_types":["general_public"],"data_access":["pii"],"actions":["read_only"],"decision_impact":"informational"},"v2_config":{"status":"success","enabled":[{"id":"priv-1","text":"The assistant must not provide individualized investment advice.","risk_category":"legal_ip_liability","applicability":"assistant","severity":"medium","source":"document","suggested":false,"display_text":"No individualized investment advice","frameworks":["hipaa"],"mappings":[{"framework":"\u003cstring>","clause":"\u003cstring>"}]}],"disabled":[{"id":"priv-1","text":"The assistant must not provide individualized investment advice.","risk_category":"legal_ip_liability","applicability":"assistant","severity":"medium","source":"document","suggested":false,"display_text":"No individualized investment advice","frameworks":["hipaa"],"mappings":[{"framework":"\u003cstring>","clause":"\u003cstring>"}]}],"stats":{"generated":3,"enabled":3,"merged":1,"doc_only":2,"disabled":20,"excluded":15},"processing_time":41.2}}}}},"exampleType":"generated"}},"exampleType":"generated"},"b7a99a04-7ecd-4083-8065-31f29cce15c9":{"description":"Bad Request - Attempted to convert an existing Policy Wizard (v2) policy back to the legacy (v1) format","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"This policy was created with the Policy Wizard (v2) and cannot be converted back to the legacy format. Create a new legacy policy instead.","uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"This policy was created with the Policy Wizard (v2) and cannot be converted back to the legacy format. Create a new legacy policy instead."}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"8565320a-4e60-418d-8700-2d1d509f0638":{"apiKeyAuth":{"type":"apiKey","in":"header","name":"apikey","scopes":[],"schemeName":"apiKeyAuth"}}},"servers":{"46d259d2-9225-46ce-aca1-4e05427371e5":{"url":"https://api.enkryptai.com"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"apikey","scopes":[],"schemeName":"apiKeyAuth"},"schema":{"title":"apikey","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKeyAuth","name":"apikey"}],"title":"apiKeyAuth"}]},"originalFileLocation":"enkrypt-openapi.json"},"subdomain":"enkryptai-42","siteName":"Enkrypt AI","title":"Modify Policy - Enkrypt AI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-25T11:48:36.624Z","originalFileLocation":"api-reference/coc-api-reference/endpoint/modify-policy.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Update an existing Code of Conduct policy\">\u003cmeta data-mint-head name=\"application-name\" content=\"Enkrypt AI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/enkryptai-42/zTk8P2FqD4OFror7/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/enkryptai-42/zTk8P2FqD4OFror7/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/enkryptai-42/zTk8P2FqD4OFror7/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/enkryptai-42/zTk8P2FqD4OFror7/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/enkryptai-42/zTk8P2FqD4OFror7/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/enkryptai-42/zTk8P2FqD4OFror7/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/enkryptai-42/zTk8P2FqD4OFror7/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/enkryptai-42/zTk8P2FqD4OFror7/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/enkryptai-42/zTk8P2FqD4OFror7/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Modify Policy - Enkrypt AI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Update an existing Code of Conduct policy\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Enkrypt AI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.enkryptai.com/api-reference/coc-api-reference/endpoint/modify-policy\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://enkryptai-42.mintlify.app/_mintlify/api/og/v2?division=%F0%9F%93%8B+Code+of+Conduct+API\u0026amp;title=Modify+Policy\u0026amp;description=Update+an+existing+Code+of+Conduct+policy\u0026amp;theme=3d60806929a37a29522c9c45\u0026amp;signature=b1f7c691827140555581cbd463409e3b51dfaf011edf6353b92b1530091ebbab\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Modify Policy - Enkrypt AI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Update an existing Code of Conduct policy\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://enkryptai-42.mintlify.app/_mintlify/api/og/v2?division=%F0%9F%93%8B+Code+of+Conduct+API\u0026amp;title=Modify+Policy\u0026amp;description=Update+an+existing+Code+of+Conduct+policy\u0026amp;theme=3d60806929a37a29522c9c45\u0026amp;signature=b1f7c691827140555581cbd463409e3b51dfaf011edf6353b92b1530091ebbab\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/enkryptai-42/zTk8P2FqD4OFror7/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Enkrypt AI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#ff6b6b\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.enkryptai.com/api-reference/coc-api-reference/endpoint/modify-policy\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/coc-api-reference/endpoint/modify-policy.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.enkryptai.com/#organization\",\"name\":\"Enkrypt AI\",\"url\":\"https://docs.enkryptai.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/enkryptai-42/7kWxrBaXsO0YvXjU/logo/light-logo.png?fit=max\u0026auto=format\u0026n=7kWxrBaXsO0YvXjU\u0026q=85\u0026s=3e4d5072cef08dc6b8885a03a7821b72\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.enkryptai.com#website\",\"name\":\"Enkrypt AI\",\"url\":\"https://docs.enkryptai.com\",\"publisher\":{\"@id\":\"https://docs.enkryptai.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.enkryptai.com/api-reference/coc-api-reference/endpoint/modify-policy#webpage\",\"url\":\"https://docs.enkryptai.com/api-reference/coc-api-reference/endpoint/modify-policy\",\"name\":\"Modify Policy\",\"description\":\"Update an existing Code of Conduct policy\",\"dateModified\":\"2026-08-25T11:48:36.624Z\",\"isPartOf\":{\"@id\":\"https://docs.enkryptai.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.enkryptai.com/api-reference/coc-api-reference/endpoint/modify-policy#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.enkryptai.com/api-reference/coc-api-reference/endpoint/modify-policy#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://docs.enkryptai.com/api-reference/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"๐ Code of Conduct API\",\"item\":\"https://docs.enkryptai.com/api-reference/coc-api-reference/endpoint/infer-document\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Modify Policy\",\"item\":\"https://docs.enkryptai.com/api-reference/coc-api-reference/endpoint/modify-policy\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.enkryptai.com/api-reference/coc-api-reference/endpoint/modify-policy#apireference\",\"headline\":\"Modify Policy\",\"name\":\"Modify Policy\",\"description\":\"Update an existing Code of Conduct policy\",\"url\":\"https://docs.enkryptai.com/api-reference/coc-api-reference/endpoint/modify-policy\",\"mainEntityOfPage\":{\"@id\":\"https://docs.enkryptai.com/api-reference/coc-api-reference/endpoint/modify-policy#webpage\"},\"dateModified\":\"2026-08-25T11:48:36.624Z\",\"publisher\":{\"@id\":\"https://docs.enkryptai.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.enkryptai.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Enkrypt AI\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Enkrypt AI","nav":{"global":null,"tabs":[{"tab":"Home","pages":[{"title":"Home","href":"/home/introduction"}]},{"tab":"Get Started","pages":[{"title":"Get Started","href":"/get-started/introduction"}]},{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"Overview","href":"/api-reference/introduction"},{"group":"๐ Code of Conduct API","pages":[{"title":"Infer Document","openapi":"POST /guardrails/policy-wizard/infer-document","href":"/api-reference/coc-api-reference/endpoint/infer-document"},{"title":"Generate Rules","openapi":"POST /guardrails/policy-wizard/generate-rules","href":"/api-reference/coc-api-reference/endpoint/generate-rules"},{"title":"Add Policy","openapi":"POST /code-of-conduct/add-policy","href":"/api-reference/coc-api-reference/endpoint/add-policy"},{"title":"Get Policy","openapi":"GET /code-of-conduct/get-policy","description":"Retrieve a Code of Conduct policy by name","href":"/api-reference/coc-api-reference/endpoint/get-policy"},{"title":"Modify Policy","openapi":"PATCH /code-of-conduct/modify-policy","href":"/api-reference/coc-api-reference/endpoint/modify-policy"},{"title":"Delete Policy","openapi":"DELETE /code-of-conduct/delete-policy","description":"Delete an existing Code of Conduct policy","href":"/api-reference/coc-api-reference/endpoint/delete-policy"},{"title":"List Policies","openapi":"GET /code-of-conduct/list-policies","href":"/api-reference/coc-api-reference/endpoint/list-policies"}]},{"group":"๐ก๏ธ Guardrails API Endpoints","pages":[{"openapi":"GET /guardrails/health","title":"Health Check","href":"/api-reference/guardrails-api-reference/endpoint/health-check"},{"openapi":"GET /guardrails/status","title":"Status Check","href":"/api-reference/guardrails-api-reference/endpoint/status"},{"openapi":"GET /guardrails/models","title":"Models Loaded","href":"/api-reference/guardrails-api-reference/endpoint/models"},{"openapi":"POST /guardrails/detect","title":"Guardrails Detect","href":"/api-reference/guardrails-api-reference/endpoint/detect"},{"openapi":"POST /guardrails/batch/detect","title":"Guardrails Batch Detect","href":"/api-reference/guardrails-api-reference/endpoint/batch-detect"},{"title":"Scan URL","openapi":"POST /guardrails/scan-url","href":"/api-reference/guardrails-api-reference/endpoint/scan-url"},{"title":"Scan PDF","openapi":"POST /guardrails/scan-pdf","href":"/api-reference/guardrails-api-reference/endpoint/scan-pdf"},{"title":"Detect Image","openapi":"POST /guardrails/detect-image","href":"/api-reference/guardrails-api-reference/endpoint/detect-image"},{"title":"Detect Audio","openapi":"POST /guardrails/detect-audio","href":"/api-reference/guardrails-api-reference/endpoint/detect-audio"},{"title":"Guardrail Detect Image","openapi":"POST /guardrails/guardrail/detect-image","href":"/api-reference/guardrails-api-reference/endpoint/guardrail-detect-image"},{"title":"Guardrail Detect Audio","openapi":"POST /guardrails/guardrail/detect-audio","href":"/api-reference/guardrails-api-reference/endpoint/guardrail-detect-audio"},{"openapi":"POST /guardrails/pii","title":"PII anonymization and de-anonymization","href":"/api-reference/guardrails-api-reference/endpoint/pii"},{"openapi":"POST /guardrails/hallucination","title":"Detect Hallucination","href":"/api-reference/guardrails-api-reference/endpoint/hallucination"},{"openapi":"POST /guardrails/adherence","title":"Guardrails Adherence","href":"/api-reference/guardrails-api-reference/endpoint/adherence"},{"openapi":"POST /guardrails/relevancy","title":"Guardrails Relevancy","href":"/api-reference/guardrails-api-reference/endpoint/relevancy"},{"title":"Add Guardrail","openapi":"POST /guardrails/add-guardrail","href":"/api-reference/guardrails-api-reference/endpoint/add-guardrail"},{"title":"Get Guardrail","openapi":"GET /guardrails/get-guardrail","href":"/api-reference/guardrails-api-reference/endpoint/get-guardrail"},{"title":"Modify Guardrail","openapi":"PATCH /guardrails/modify-guardrail","href":"/api-reference/guardrails-api-reference/endpoint/modify-guardrail"},{"title":"Delete Guardrail","openapi":"DELETE /guardrails/delete-guardrail","href":"/api-reference/guardrails-api-reference/endpoint/delete-guardrail"},{"title":"List Guardrails","openapi":"GET /guardrails/list-guardrails","href":"/api-reference/guardrails-api-reference/endpoint/list-guardrails"},{"title":"Detect with Guardrail","openapi":"POST /guardrails/guardrail/detect","href":"/api-reference/guardrails-api-reference/endpoint/detect-using-guardrail"},{"title":"Batch Detect with Guardrail","openapi":"POST /guardrails/guardrail/batch/detect","href":"/api-reference/guardrails-api-reference/endpoint/batch-detect-using-guardrail"},{"title":"Guardrail Scan URL","openapi":"POST /guardrails/guardrail/scan-url","href":"/api-reference/guardrails-api-reference/endpoint/guardrail-scan-url"},{"title":"Guardrail Scan PDF","openapi":"POST /guardrails/guardrail/scan-pdf","href":"/api-reference/guardrails-api-reference/endpoint/guardrail-scan-pdf"}]},{"group":"๐ค Models API (Endpoints)","pages":[{"openapi":"POST /models/add-model","title":"Create Model","href":"/api-reference/models-api-reference/endpoint/add-model"},{"openapi":"GET /models/get-model","title":"Get Model","href":"/api-reference/models-api-reference/endpoint/get-model"},{"openapi":"PATCH /models/modify-model","title":"Modify Model","href":"/api-reference/models-api-reference/endpoint/modify-model"},{"openapi":"DELETE /models/delete-model","title":"Delete Model","href":"/api-reference/models-api-reference/endpoint/delete-model"},{"title":"List Models","openapi":"GET /models/list-models","href":"/api-reference/models-api-reference/endpoint/list-models"},{"openapi":"GET /models/get-defaults","title":"Get Defaults","href":"/api-reference/models-api-reference/endpoint/get-defaults"}]},{"group":"๐ด Red Team API","pages":[{"openapi":"POST /rt/redteam","title":"Run Redteam","href":"/api-reference/redteam-v2-api-reference/endpoint/run-redteam"},{"openapi":"POST /rt/model/redteam","title":"Run Redteam with saved model","href":"/api-reference/redteam-v2-api-reference/endpoint/run-redteam-saved-model"},{"openapi":"POST /rt/redteam/jailbreak","title":"Run Jailbreak Benchmark","href":"/api-reference/redteam-v2-api-reference/endpoint/run-jailbreak"},{"openapi":"POST /rt/model/redteam/jailbreak","title":"Run Jailbreak Benchmark with saved model","href":"/api-reference/redteam-v2-api-reference/endpoint/run-jailbreak-saved-model"},{"openapi":"POST /rt/threat-modeling","title":"Run Threat Modeling","href":"/api-reference/redteam-v2-api-reference/endpoint/run-threat-modeling"},{"openapi":"POST /rt/threat-modeling/categories","title":"Run Threat Modeling Categories","href":"/api-reference/redteam-v2-api-reference/endpoint/run-threat-modeling-categories"},{"openapi":"POST /rt/threat-modeling/data","title":"Run Threat Modeling Data","href":"/api-reference/redteam-v2-api-reference/endpoint/run-threat-modeling-data"},{"openapi":"POST /rt/playground","title":"Run Playground","href":"/api-reference/redteam-v2-api-reference/endpoint/run-playground"},{"openapi":"POST /rt/model/playground","title":"Run Playground with saved model","href":"/api-reference/redteam-v2-api-reference/endpoint/run-playground-saved-model"},{"openapi":"POST /rt/eval","title":"Submit Eval Batch","href":"/api-reference/redteam-v2-api-reference/endpoint/submit-eval"},{"openapi":"POST /rt/leaderboard","title":"Run Leaderboard","href":"/api-reference/redteam-v2-api-reference/endpoint/run-leaderboard"},{"openapi":"POST /rt/model/leaderboard","title":"Run Leaderboard with saved model","href":"/api-reference/redteam-v2-api-reference/endpoint/run-leaderboard-saved-model"},{"openapi":"GET /rt/runs/{run_id}","title":"Get Run Status","href":"/api-reference/redteam-v2-api-reference/endpoint/get-run-status"},{"openapi":"GET /rt/runs/{run_id}/records","title":"Get Run Records","href":"/api-reference/redteam-v2-api-reference/endpoint/get-run-records"},{"openapi":"GET /rt/runs/{run_id}/results","title":"Get Run Results","href":"/api-reference/redteam-v2-api-reference/endpoint/get-run-results"},{"openapi":"GET /rt/runs/{run_id}/compliance/{framework_id}","title":"Get Compliance Report","href":"/api-reference/redteam-v2-api-reference/endpoint/get-compliance-report"},{"openapi":"POST /rt/runs/{run_id}/signal/{name}","title":"Send Signal","href":"/api-reference/redteam-v2-api-reference/endpoint/send-signal"},{"openapi":"POST /rt/runs/{run_id}/resume","title":"Resume Run","href":"/api-reference/redteam-v2-api-reference/endpoint/resume-run"},{"openapi":"GET /rt/runs/{run_id}/stream","title":"Stream Run Events","href":"/api-reference/redteam-v2-api-reference/endpoint/stream-run-events"},{"openapi":"GET /wss/redteam/v1/logs/tasks/{owner_id}/{job_id}/{model_folder}/app.log","playground":"none","title":"Stream Run Logs (WebSocket)","href":"/api-reference/redteam-v2-api-reference/endpoint/stream-run-logs"},{"openapi":"GET /rt/datasets/{dataset_id}","title":"Get Dataset","href":"/api-reference/redteam-v2-api-reference/endpoint/get-dataset"},{"openapi":"POST /rt/model-health","title":"Model Health","href":"/api-reference/redteam-v2-api-reference/endpoint/model-health"},{"openapi":"POST /rt/model/model-health","title":"Model Health with saved model","href":"/api-reference/redteam-v2-api-reference/endpoint/model-health-saved"},{"openapi":"GET /redteam/relay/v1/relay/bridge","playground":"none","title":"Connect a relay bridge (WebSocket)","href":"/api-reference/redteam-v2-api-reference/endpoint/relay-bridge-connect"},{"openapi":"GET /redteam/relay/v1/relay/bridges/{bridge_id}/status","title":"Relay bridge status","href":"/api-reference/redteam-v2-api-reference/endpoint/relay-bridge-status"},{"openapi":"POST /rt/findings","title":"Get findings based on summary","href":"/api-reference/redteam-v2-api-reference/endpoint/get-findings"},{"openapi":"POST /rt/risk-mitigation/system-prompt","title":"Generate a system prompt for risk mitigation based on red teaming test results","href":"/api-reference/redteam-v2-api-reference/endpoint/risk-mitigation-system-prompt"},{"openapi":"POST /rt/risk-mitigation/guardrails-policy","title":"Generate a guardrail and policy for risk mitigation based on summary","href":"/api-reference/redteam-v2-api-reference/endpoint/risk-mitigation-guardrails-policy"},{"openapi":"GET /rt/health","title":"Red Team Health","href":"/api-reference/redteam-v2-api-reference/endpoint/health"},{"openapi":"GET /rt/status-check","title":"Red Team Status Check","href":"/api-reference/redteam-v2-api-reference/endpoint/status-check"}]},{"group":"๐ Deployments API","pages":[{"openapi":"POST /deployments/add-deployment","title":"Create Deployment","href":"/api-reference/deployments-api-reference/endpoint/add-deployment"},{"openapi":"GET /deployments/get-deployment","title":"Get Deployment","href":"/api-reference/deployments-api-reference/endpoint/get-deployment"},{"openapi":"PATCH /deployments/modify-deployment","title":"Modify Deployment","href":"/api-reference/deployments-api-reference/endpoint/modify-deployment"},{"openapi":"DELETE /deployments/delete-deployment","title":"Delete Deployment","href":"/api-reference/deployments-api-reference/endpoint/delete-deployment"},{"title":"List Deployments","openapi":"GET /deployments/list-deployments","href":"/api-reference/deployments-api-reference/endpoint/list-deployments"},{"openapi":"GET /deployments/get-allowed-config","title":"Get Allowed Config","href":"/api-reference/deployments-api-reference/endpoint/get-allowed-config"}]},{"group":"๐ AI Proxy API","pages":[{"openapi":"POST /ai-proxy/chat/completions","title":"AI Chat Completions Proxy Endpoint","href":"/api-reference/ai-proxy-api-reference/endpoint/chat-completions"},{"openapi":"POST /ai-proxy/completions","title":"AI Completions Proxy Endpoint","href":"/api-reference/ai-proxy-api-reference/endpoint/completions"}]},{"group":"๐ MCP Hub API","pages":[{"openapi":"POST /mcp-hub/scan","title":"Start a New Vulnerability Scan","href":"/api-reference/mcp-hub-api-reference/endpoint/scan"},{"openapi":"POST /mcp-hub/scan/hosted","title":"Scan a Hosted MCP Server","href":"/api-reference/mcp-hub-api-reference/endpoint/hosted-scan"},{"openapi":"POST /mcp-hub/scan/hosted/config","title":"Scan MCP Servers from Config JSON","href":"/api-reference/mcp-hub-api-reference/endpoint/hosted-scan-from-config"},{"openapi":"GET /mcp-hub/scan/{job_id}/status","title":"Get Scan Job Status","href":"/api-reference/mcp-hub-api-reference/endpoint/get-status"},{"openapi":"GET /mcp-hub/scan/{job_id}/results","title":"Get Complete Scan Results","href":"/api-reference/mcp-hub-api-reference/endpoint/get-results"},{"openapi":"GET /mcp-hub/scans","title":"List Scans","href":"/api-reference/mcp-hub-api-reference/endpoint/list-scans"},{"openapi":"GET /mcp-hub/dashboard-stats","title":"Get MCP Hub Scan Statistics","href":"/api-reference/mcp-hub-api-reference/endpoint/dashboard-stats"},{"openapi":"GET /mcp-hub/usage","title":"Get MCP Hub API Usage Summary","href":"/api-reference/mcp-hub-api-reference/endpoint/usage"}]},{"group":"๐๏ธ MCP Registry Servers API","pages":[{"openapi":"POST /mcp-registry/add-server","title":"Create MCP Registry Server","href":"/api-reference/mcp-registry-servers-api-reference/endpoint/add-server"},{"openapi":"POST /mcp-registry/bulk-add-servers","title":"Bulk-create MCP Registry Servers (atomic)","href":"/api-reference/mcp-registry-servers-api-reference/endpoint/bulk-add-servers"},{"openapi":"GET /mcp-registry/get-server","title":"Get MCP Registry Server","href":"/api-reference/mcp-registry-servers-api-reference/endpoint/get-server"},{"openapi":"PATCH /mcp-registry/modify-server","title":"Update MCP Registry Server","href":"/api-reference/mcp-registry-servers-api-reference/endpoint/modify-server"},{"openapi":"DELETE /mcp-registry/delete-server","title":"Delete MCP Registry Server","href":"/api-reference/mcp-registry-servers-api-reference/endpoint/delete-server"},{"openapi":"GET /mcp-registry/list-servers","title":"List MCP Registry Servers","href":"/api-reference/mcp-registry-servers-api-reference/endpoint/list-servers"},{"openapi":"GET /mcp-registry/list-gateways-by-server","title":"List Gateways by Registry Server","href":"/api-reference/mcp-registry-servers-api-reference/endpoint/list-gateways-by-server"}]},{"group":"๐ช MCP Gateways API","pages":[{"openapi":"POST /mcp-gateway/add-gateway","title":"Create MCP Gateway","href":"/api-reference/mcp-gateways-api-reference/endpoint/add-gateway"},{"openapi":"GET /mcp-gateway/get-gateway","title":"Get MCP Gateway","href":"/api-reference/mcp-gateways-api-reference/endpoint/get-gateway"},{"openapi":"GET /mcp-gateway/get-gateway-config","title":"Get Expanded MCP Gateway Configuration","href":"/api-reference/mcp-gateways-api-reference/endpoint/get-gateway-config"},{"openapi":"PATCH /mcp-gateway/modify-gateway","title":"Update MCP Gateway","href":"/api-reference/mcp-gateways-api-reference/endpoint/modify-gateway"},{"openapi":"DELETE /mcp-gateway/delete-gateway","title":"Delete MCP Gateway","href":"/api-reference/mcp-gateways-api-reference/endpoint/delete-gateway"},{"openapi":"GET /mcp-gateway/list-gateways","title":"List MCP Gateways","href":"/api-reference/mcp-gateways-api-reference/endpoint/list-gateways"}]},{"group":"๐งช MCP Playground API","pages":[{"openapi":"POST /mcp-playground/test-server","title":"Test MCP Server Connectivity","href":"/api-reference/mcp-playground-api-reference/endpoint/test-server"},{"openapi":"GET /mcp-playground/get-tools","title":"Get MCP Server Tools","href":"/api-reference/mcp-playground-api-reference/endpoint/get-tools"},{"openapi":"POST /mcp-playground/call-tool","title":"Call MCP Server Tool","href":"/api-reference/mcp-playground-api-reference/endpoint/call-tool"}]},{"group":"๐ Skill Scanner API","pages":[{"openapi":"POST /skill-hub/scan","title":"Submit a Skill Scan","href":"/api-reference/skill-scanner-api-reference/endpoint/scan"},{"openapi":"GET /skill-hub/scans/{scan_id}","title":"Get Skill Scan","href":"/api-reference/skill-scanner-api-reference/endpoint/get-scan"},{"openapi":"GET /skill-hub/scans/{scan_id}/report","title":"Get Skill Scan Report","href":"/api-reference/skill-scanner-api-reference/endpoint/get-report"},{"openapi":"GET /skill-hub/scans","title":"List Skill Scans","href":"/api-reference/skill-scanner-api-reference/endpoint/list-scans"},{"openapi":"GET /skill-hub/healthz","title":"Skill Scanner Health","href":"/api-reference/skill-scanner-api-reference/endpoint/health"}]},{"group":"โ๏ธ Compliance API","pages":[{"openapi":"POST /compliance/test-connection","title":"Test Compliance Connection","href":"/api-reference/compliance-api-reference/endpoint/test-connection"},{"openapi":"POST /compliance/add-scan","title":"Add Compliance Scan","href":"/api-reference/compliance-api-reference/endpoint/add-scan"},{"openapi":"GET /compliance/get-scan","title":"Get Compliance Scan","href":"/api-reference/compliance-api-reference/endpoint/get-scan"},{"openapi":"PATCH /compliance/modify-scan","title":"Modify Compliance Scan","href":"/api-reference/compliance-api-reference/endpoint/modify-scan"},{"openapi":"DELETE /compliance/delete-scan","title":"Delete Compliance Scan","href":"/api-reference/compliance-api-reference/endpoint/delete-scan"},{"openapi":"GET /compliance/list-scans","title":"List Compliance Scans","href":"/api-reference/compliance-api-reference/endpoint/list-scans"},{"openapi":"POST /compliance/start-scan","title":"Start Compliance Scan","href":"/api-reference/compliance-api-reference/endpoint/start-scan"},{"openapi":"POST /compliance/pause-scan","title":"Pause Compliance Scan","href":"/api-reference/compliance-api-reference/endpoint/pause-scan"},{"openapi":"GET /compliance/list-log-files","title":"List Compliance Log Files","href":"/api-reference/compliance-api-reference/endpoint/list-log-files"},{"openapi":"GET /compliance/get-message","title":"Get Compliance Message","href":"/api-reference/compliance-api-reference/endpoint/get-message"}]},{"group":"๐ Leaderboard API","pages":[{"openapi":"GET /leaderboard/v2/models-list","title":"v2 Models List","href":"/api-reference/leaderboard-api-reference/endpoint/v2/models/models-list"},{"openapi":"GET /leaderboard/v2/scores","title":"v2 Scores list","href":"/api-reference/leaderboard-api-reference/endpoint/v2/scores/scores-list"},{"openapi":"GET /leaderboard/v2/scores/{modelName}","title":"v2 Model Score","href":"/api-reference/leaderboard-api-reference/endpoint/v2/scores/model-score"},{"openapi":"GET /leaderboard/v2/details/{modelName}","title":"v2 Model Detail","href":"/api-reference/leaderboard-api-reference/endpoint/v2/details/model-detail"},{"openapi":"GET /leaderboard/v2/summary/{modelName}","title":"v2 Model Summary","href":"/api-reference/leaderboard-api-reference/endpoint/v2/summary/model-summary"},{"openapi":"GET /leaderboard/v2/rank/{modelName}","title":"v2 Model Rank","href":"/api-reference/leaderboard-api-reference/endpoint/v2/rank/model-rank"},{"openapi":"GET /leaderboard/v2/percentiles","title":"v2 Models Risk Percentiles","href":"/api-reference/leaderboard-api-reference/endpoint/v2/percentiles/models-risk-percentiles"}]},{"group":"๐๏ธ Archived","pages":[{"group":"Datasets (Legacy)","pages":[{"openapi":"POST /datasets/add-task","title":"Datasets Add Task","href":"/api-reference/datasets-api-reference/endpoint/add-task"},{"openapi":"GET /datasets/task-status","title":"Datasets Get Task Status","href":"/api-reference/datasets-api-reference/endpoint/task-status"},{"openapi":"GET /datasets/get-task","title":"Datasets Get Task","href":"/api-reference/datasets-api-reference/endpoint/get-task"},{"openapi":"GET /datasets/get-datacard","title":"Datasets Get Datacard","href":"/api-reference/datasets-api-reference/endpoint/get-datacard"},{"openapi":"GET /datasets/get-dataset","title":"Datasets Get Dataset","href":"/api-reference/datasets-api-reference/endpoint/get-dataset"},{"openapi":"GET /datasets/get-summary","title":"Datasets Get Summary","href":"/api-reference/datasets-api-reference/endpoint/get-summary"},{"title":"List Tasks","openapi":"GET /datasets/list-tasks","href":"/api-reference/datasets-api-reference/endpoint/list-tasks"}]},{"group":"Guardrails Policy (Legacy)","pages":[{"title":"Add Policy (Legacy)","openapi":"POST /guardrails/add-policy","href":"/api-reference/guardrails-api-reference/endpoint/add-policy"},{"title":"Get Policy (Legacy)","openapi":"GET /guardrails/get-policy","href":"/api-reference/guardrails-api-reference/endpoint/get-policy"},{"title":"Modify Policy (Legacy)","openapi":"PATCH /guardrails/modify-policy","href":"/api-reference/guardrails-api-reference/endpoint/modify-policy"},{"title":"Delete Policy (Legacy)","openapi":"DELETE /guardrails/delete-policy","href":"/api-reference/guardrails-api-reference/endpoint/delete-policy"},{"title":"List Policies (Legacy)","openapi":"GET /guardrails/list-policies","href":"/api-reference/guardrails-api-reference/endpoint/list-policies"},{"title":"Detect with Policy (Legacy)","openapi":"POST /guardrails/policy/detect","href":"/api-reference/guardrails-api-reference/endpoint/detect-using-policy"},{"title":"Detect Image with Policy (Legacy)","openapi":"POST /guardrails/policy/detect-image","href":"/api-reference/guardrails-api-reference/endpoint/detect-image-using-policy"},{"title":"Detect Audio with Policy (Legacy)","openapi":"POST /guardrails/policy/detect-audio","href":"/api-reference/guardrails-api-reference/endpoint/detect-audio-using-policy"},{"title":"Policy Batch Detect (Legacy)","openapi":"POST /guardrails/policy/batch/detect","href":"/api-reference/guardrails-api-reference/endpoint/batch-detect-using-policy"},{"title":"Policy Scan URL (Legacy)","openapi":"POST /guardrails/policy/scan-url","href":"/api-reference/guardrails-api-reference/endpoint/policy-scan-url"},{"title":"Policy Scan PDF (Legacy)","openapi":"POST /guardrails/policy/scan-pdf","href":"/api-reference/guardrails-api-reference/endpoint/policy-scan-pdf"}]},{"group":"Red Team (Legacy)","pages":[{"openapi":"GET /redteam/health","title":"Redteam Health","href":"/api-reference/redteam-api-reference/endpoint/health"},{"openapi":"POST /redteam/v3/model-health","title":"Model Health (V3)","href":"/api-reference/redteam-api-reference/endpoint/v3-model-health"},{"openapi":"POST /redteam/model/model-health","title":"Model Health of saved model","href":"/api-reference/redteam-api-reference/endpoint/model-health-saved"},{"openapi":"POST /redteam/v3/add-custom-task","title":"Add Custom Task (V3)","href":"/api-reference/redteam-api-reference/endpoint/v3-add-custom-task"},{"openapi":"POST /redteam/v3/model/add-custom-task","title":"Add Custom Task with saved model (V3)","href":"/api-reference/redteam-api-reference/endpoint/v3-model-add-custom-task"},{"openapi":"PATCH /redteam/cancel-task","title":"Cancel Task","href":"/api-reference/redteam-api-reference/endpoint/cancel-task"},{"openapi":"GET /redteam/get-task","title":"Get Task","href":"/api-reference/redteam-api-reference/endpoint/get-task"},{"openapi":"GET /redteam/task-status","title":"Get Task Status","href":"/api-reference/redteam-api-reference/endpoint/get-task-status"},{"openapi":"GET /redteam/download-link","title":"Get Download Link","href":"/api-reference/redteam-api-reference/endpoint/get-download-link"},{"openapi":"GET /redteam/v3/results/summary","title":"Get Task Results Summary","href":"/api-reference/redteam-api-reference/endpoint/get-results-summary"},{"openapi":"GET /redteam/v3/results/summary/{test_type}","title":"Get Task Results Summary of a specific test type","href":"/api-reference/redteam-api-reference/endpoint/get-summary-test-type"},{"openapi":"GET /redteam/v3/results/details","title":"Get Task Results Details","href":"/api-reference/redteam-api-reference/endpoint/get-all-details"},{"openapi":"GET /redteam/v3/results/details/{test_type}","title":"Get Task Results Details of a specific test type","href":"/api-reference/redteam-api-reference/endpoint/get-details-test-type"},{"openapi":"POST /redteam/findings","title":"Get findings based on summary","href":"/api-reference/redteam-api-reference/endpoint/get-findings"},{"openapi":"POST /redteam/risk-mitigation/system-prompt","title":"Generate a system prompt for risk mitigation based on red teaming test results","href":"/api-reference/redteam-api-reference/endpoint/risk-mitigation-system-prompt"},{"openapi":"POST /redteam/risk-mitigation/guardrails-policy","title":"Generate a guardrail and policy for risk mitigation based on summary","href":"/api-reference/redteam-api-reference/endpoint/risk-mitigation-guardrails-policy"},{"title":"List All Tasks","openapi":"GET /redteam/list-tasks","href":"/api-reference/redteam-api-reference/endpoint/list-all-tasks"},{"openapi":"POST /redteam/model-health","title":"Model Health","href":"/api-reference/redteam-api-reference/endpoint/model-health"},{"openapi":"POST /redteam/v2/add-task","title":"Add Task","href":"/api-reference/redteam-api-reference/endpoint/add-task"},{"openapi":"POST /redteam/v2/model/add-task","title":"Add Task with saved model","href":"/api-reference/redteam-api-reference/endpoint/model-add-task"},{"openapi":"POST /redteam/v2/add-custom-task","title":"Add Custom Task","href":"/api-reference/redteam-api-reference/endpoint/add-custom-task"},{"openapi":"POST /redteam/v2/model/add-custom-task","title":"Add Custom Task with saved model","href":"/api-reference/redteam-api-reference/endpoint/model-add-custom-task"}]},{"group":"Leaderboard","pages":[{"openapi":"GET /leaderboard/models-list","title":"v1 Models List","href":"/api-reference/leaderboard-api-reference/endpoint/v1/models/models-list"},{"openapi":"GET /leaderboard/scores","title":"v1 Scores list","href":"/api-reference/leaderboard-api-reference/endpoint/v1/scores/scores-list"},{"openapi":"GET /leaderboard/scores/{modelName}","title":"v1 Model Score","href":"/api-reference/leaderboard-api-reference/endpoint/v1/scores/model-score"},{"openapi":"GET /leaderboard/details/{modelName}","title":"v1 Model Detail","href":"/api-reference/leaderboard-api-reference/endpoint/v1/details/model-detail"},{"openapi":"GET /leaderboard/summary/{modelName}","title":"v1 Model Summary","href":"/api-reference/leaderboard-api-reference/endpoint/v1/summary/model-summary"},{"openapi":"GET /leaderboard/rank/{modelName}","title":"v1 Model Rank","href":"/api-reference/leaderboard-api-reference/endpoint/v1/rank/model-rank"},{"openapi":"GET /leaderboard/percentiles","title":"v1 Models Risk Percentiles","href":"/api-reference/leaderboard-api-reference/endpoint/v1/percentiles/models-risk-percentiles"}]},{"group":"Policy Atomizer (Legacy)","pages":[{"title":"Policy Atomizer","openapi":"POST /guardrails/policy-atomizer","href":"/api-reference/coc-api-reference/endpoint/policy-atomizer"}]}]}]}]},{"tab":"SDK Reference","pages":[{"title":"SDK Reference","href":"/sdk-reference/python/introduction"}]},{"tab":"Schema and Postman","pages":[{"title":"Schema and Postman","href":"/schema-and-postman/introduction"}]},{"tab":"Resources","pages":[{"title":"Resources","href":"/resources/introduction"}]}]},"basePath":"","title":"Modify Policy - Enkrypt AI","buildId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","deploymentId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DCDCdBVX.js","utils-ME8dDnLe.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-0e84ACsd.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-wgRBj-ia.js","snippetPresets-C11Sgb-o.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-C0lapOpP.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-ZeRQV8fF.js","shallow-BupWh095.js","getApiPlaygroundDisplay-BnYQO2Ss.js","CodeSnippet-RKKOc8c_.js","CodeSnippets-Drf_m8wS.js","Page-Bevw23-4.js","getPastedJson-u6QiPzNZ.js","icon-Bb-CBSxO.js","MethodPill-F7l5AI7V.js","DuplicateIcon-IiAXkdSg.js","createIcon-FliI8EBc.js","DynamicMarkdown-B62XqCSI.js","SectionHeading-Dj31pT03.js","axios-vUo_bRtp.js","Markdown-BOgQCTwD.js","clsx-BIWXJmsZ.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DKZWslLH.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-UDqbR6xh.js"]}