Update a pii policy
PUT
/v1/projects/{projectId}/pii-policycurl -X PUT 'https://api.embodiflow.io/v1/projects/{projectId}/pii-policy' \
-H 'Authorization: Bearer $EMBODIFLOW_PAT' \
-H 'Content-Type: application/json' \
-d '{
"requiredBeforeExport": true,
"requireSpotCheckBeforeExport": true,
"detectors": [
"string"
],
"maskingMode": "blur"
}'Authorization
Send a personal access token with every request.
- Authorization: Bearer PAT
Path parameters
- projectIdstringrequired
Header parameters
- If-Matchstring
Optional precondition. A matching tag proceeds and returns the new ETag. A stale tag returns 412 PRECONDITION_FAILED with no write. Absent proceeds (opt-in this release). If-Match: * succeeds when the resource exists. Malformed values return 400 IF_MATCH_INVALID.
Request body
Content-Typeapplication/json
- requiredBeforeExportbooleanrequired
- requireSpotCheckBeforeExportboolean
- detectorsarray<string>
- maskingModestringAllowed valuesblurredact
Responses
Success
- dataobjectrequired
- idstringrequired
- tenantIdstringrequired
- projectIdstringrequired
- requiredBeforeExportone ofrequired
- requireSpotCheckBeforeExportone ofrequired
- detectorsarray<string>required
- maskingModestringrequiredAllowed valuesblurredact
- createdAtstringrequired
- updatedAtstringrequired
Response example
{
"data": {
"id": "string",
"tenantId": "string",
"projectId": "string",
"requiredBeforeExport": false,
"requireSpotCheckBeforeExport": false,
"detectors": [
"string"
],
"maskingMode": "blur",
"createdAt": "string",
"updatedAt": "string"
}
}Servershttps://api.embodiflow.io/v1https://api.embodiflow.dev/v1