Modify permissions
Modifies permissions for the specified entry.
Request
POST
https://api.datalens.tech/rpc/modifyPermissions
Headers
|
Name |
Description |
|
x-dl-api-version |
Type: string API version header. Const: Example: |
Body
application/json
{
"entryId": "example",
"body": {
"diff": {
"added": {
"acl_adm": [
{}
],
"acl_edit": [
{}
],
"acl_view": [
{}
],
"acl_execute": [
{}
]
},
"removed": {
"acl_adm": [
{}
],
"acl_edit": [
{}
],
"acl_view": [
{}
],
"acl_execute": [
{}
]
},
"modified": {
"acl_adm": [
{}
],
"acl_edit": [
{}
],
"acl_view": [
{}
],
"acl_execute": [
{}
]
}
}
},
"checkType": "straight",
"nested": true,
"page": 0.5,
"pageSize": 0.5
}
|
Name |
Description |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
body |
Type: object
Permission changes to apply. Example
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
entryId |
Type: string ID of the entry to modify permissions for. Example: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
checkType |
Type: string Scope of permission check: straight (direct), hierarchical, or root. Enum: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
nested |
Type: boolean Apply changes recursively to all nested entries. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
page |
Type: number Page number for paginated results. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
pageSize |
Type: number Number of results per page. |
Responses
200 OK
Response
Body
application/json
{
"result": "ok",
"nextPageToken": "example"
}
|
Name |
Description |
|
result |
Type: string Const: Example: |
|
nextPageToken |
Type: string Token for fetching the next page of results. Example: |