Appearance
Change acl for connections
About 272 wordsLess than 1 minute
apiConnections
2025-03-13
MethodPUT
Request URL
/plugin/datafor-modeler/api/connection/aclBatch
Authorization
Use of this API requires authentication. For details about the authentication method, see
Authorization.
Content Typeapplication/json
Preconditions
- The current user must have administrative privileges for the specified connections.
Request Schema
Name | Location | Type | Required | Description |
---|---|---|---|---|
body | body | object | No | Overall JSON payload |
└── foodmart | body | object | Yes | Object key is the connection name (e.g., "foodmart" ) |
├── aces | body | [object] | Yes | Array of ACE (Access Control Entry) objects |
│ ├── recipient | body | string | No | Recipient of the ACE (e.g., username, role) |
│ ├── modifiable | body | boolean | No | Whether this ACE can be changed by the recipient |
│ ├── recipientType | body | integer | No | 1 = user, 2 = group, etc. (implementation-defined) |
│ └── permissions | body | [integer] | No | Array of permission codes (e.g., [4] = Admin) |
├── entriesInheriting | body | boolean | Yes | Whether entries are inheritable |
├── owner | body | string | Yes | Owner of this connection (e.g., admin ) |
└── ownerType | body | integer | Yes | 0 = user owner, 1 = role owner, etc. (implementation-defined) |
Response Examples
{
"SampleData": "200"
}
HTTP Responses
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | none | Inline |
Response Data Schema (HTTP 200)
Name | Type | Required | Description |
---|---|---|---|
SampleData | string | Yes | Shows the result code for the specified connection |
Return result code of each connection
The key corresponds to the connection name, and the value is a result code:
Name | Value | Description |
---|---|---|
${connectionName} | 200 | success |
${connectionName} | 401 | no auth |
${connectionName} | 409 | not found |
${connectionName} | 500 | internal error |