You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cec72c3
Browse filesBrowse the repository at this point in the historyBrowse files
curl -X PUT "http://localhost:8000/api/v1/controls/$CONTROL_ID/data" \
441
433
-H "Content-Type: application/json" \
442
434
-d '{
435
+
"name": "block-ssn-output",
443
436
"data": {
444
437
"description": "Block Social Security Numbers in responses",
445
438
"enabled": true,
@@ -454,7 +447,7 @@ curl -X PUT "http://localhost:8000/api/v1/controls/$CONTROL_ID/data" \
454
447
},
455
448
"action": {"decision": "deny"}
456
449
}
457
-
}'
450
+
}'| jq -r '.control_id')
458
451
```
459
452
460
453
Regex pattern note: the pattern itself is `\b\d{3}-\d{2}-\d{4}\b`. Python raw strings render that as `r"\b\d{3}-\d{2}-\d{4}\b"`, while JSON payloads must escape backslashes as `"\\b\\d{3}-\\d{2}-\\d{4}\\b"`.
@@ -498,15 +491,10 @@ Via curl:
498
491
499
492
```bash
500
493
501
-
# Create control with Luna-2 evaluator
502
-
503
494
CONTROL_ID=$(curl -X PUT http://localhost:8000/api/v1/controls \
curl -X PUT "http://localhost:8000/api/v1/controls/$CONTROL_ID/data" \
508
495
-H "Content-Type: application/json" \
509
496
-d '{
497
+
"name": "block-toxic-input",
510
498
"data": {
511
499
"description": "Block toxic or harmful user messages",
512
500
"enabled": true,
@@ -525,7 +513,7 @@ curl -X PUT "http://localhost:8000/api/v1/controls/$CONTROL_ID/data" \
525
513
},
526
514
"action": {"decision": "deny"}
527
515
}
528
-
}'
516
+
}'| jq -r '.control_id')
529
517
```
530
518
531
519
> **Note**: For the Luna-2 evaluator, set the `GALILEO_API_KEY` environment variable. See the [Evaluators](/concepts/evaluators/overview) for all available evaluators.
0 commit comments