Admin — Approval Workflows
Create approval rule
Create a new approval rule for the organization.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:3001/api/v1/admin/approval/rules" \ -H "Content-Type: application/json" \ -d '{ "name": "Require approval for PII tables", "ruleType": "table", "pattern": "users" }'{
"rule": {
"id": "string",
"orgId": "string",
"name": "string",
"ruleType": "table",
"pattern": "string",
"threshold": 0,
"enabled": true,
"createdAt": "string",
"updatedAt": "string"
}
}{
"error": "string",
"message": "string",
"requestId": "string"
}{
"property1": null,
"property2": null
}{
"property1": null,
"property2": null
}{
"error": "string",
"message": "string",
"requestId": "string"
}{
"error": "string",
"message": "string",
"requestId": "string"
}