POST/v1/pii_patterns
pii_patterns.create
Creates a tenant-managed regex pattern. The server compiles the pattern with RE2 (linear-time, no catastrophic backtracking) before storage; patterns rejected by RE2 return 400 `pattern_invalid` with the compile error message. Only the `i` flag is supported in v1.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| Idempotency-Key | string | optional | Optional client-supplied key for at-most-once semantics. The first request with a given key is processed; subsequent requests with the same key replay the cached response for 24h. |
Request body
No parameters.
Response
No parameters.
Examples
curl -sS -X POST \
-H "Authorization: Bearer $CULPRIT_API_TOKEN" \
-H "content-type: application/json" \
-d '{ /* … */ }' \
https://api.theculprit.ai/v1/pii_patternsTry it
Stored locally in your browser at localStorage.docs.tryit.token. Never sent to Culprit's analytics. Use a read-only token.