Data Security / Objects
Delete rules for objects
Delete one or more Table & column access policies.
Deletes Table & column access policies with their objects and subjects. Each policy is reported separately.
| Method and path | POST /plugin/datafor-modeler/api/auth/obj/deleteBatch |
| Permission | Full control on each policy’s connection |
| Content type | application/json |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| (body) | body | array | Yes | Policies to delete: [{"id": "...", "dbconn": "..."}]. |
Locked policies (editable 0) are not deleted.
Example
curl -u admin:password -X POST \
"http://localhost:28080/datafor/plugin/datafor-modeler/api/auth/obj/deleteBatch" \
-H "Content-Type: application/json" \
-d '[ { "id": "371063d227944c5386fbe81faf8c3bc0", "dbconn": "Sales DW" } ]'
{
"success": true,
"code": "200",
"data": [
{ "id": "371063d227944c5386fbe81faf8c3bc0", "dbconn": "Sales DW", "success": true, "msg": "success" }
]
}
Errors
Per entry in data, with success: false:
code |
msg |
When |
|---|---|---|
401 |
id cannot be empty / dbconn cannot be empty |
A field is missing. |
401 |
No administrative privileges:<connection> |
The caller lacks Full control on the connection. |
| (none) | Database error | The delete failed. |
Related: Data Security