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."
}Modify Policy
Update an existing Code of Conduct policy
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."
}Authorizations
Headers
The code of conduct policy name
"Test CoC Policy"
Body
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.
Name of the policy
"Healthcare Guidelines"
JSON string containing the 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 number of rules in the policy
x >= 122
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.
Optional policy text content if not provided in the file. Legacy (v1) field only.
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.
Show child attributes
Show child attributes
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.
Show child attributes
Show child attributes

