Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Yandex DataLens
  • DataLens Gallery
    • How to use the Public API
    • Versioning
    • Release notes
      • Overview
        • Overview
        • Create collection
        • Delete collection
        • Delete collections
        • Get collection breadcrumbs
        • Get collection
        • Get collections list by ids
        • Get collection content
        • Get root collection permissions
        • Move collection
        • Move collections
        • Update collection
        • Update collection access bindings
        • List collection access bindings
  • Audit Trails events

In this article:

  • Request
  • Headers
  • Body
  • USAccessBindingDelta
  • Responses
  • 200 OK
  • Body
  1. DataLens Public API
  2. DataLens API
  3. Collection
  4. Update collection access bindings
Written by
Yandex Cloud
View in Markdown
  • Request
    • Headers
    • Body
    • USAccessBindingDelta
  • Responses
  • 200 OK
    • Body

Update collection access bindings

Updates access bindings for the specified collection.

RequestRequest

POST

https://api.datalens.tech/rpc/updateCollectionAccessBindings

HeadersHeaders

Name

Description

x-dl-api-version

Type: string

API version header.

Const: 3

Example: 3

BodyBody

application/json
{
  "collectionId": "example",
  "deltas": [
    {
      "action": "ADD",
      "accessBinding": {
        "roleId": "example",
        "subject": {
          "id": "example",
          "type": "system"
        }
      }
    }
  ]
}

Name

Description

collectionId

Type: string

ID of the collection whose access bindings to update.

Example: example

deltas

Type: USAccessBindingDelta[]

Access binding changes to apply.

Example
[
  {
    "action": "ADD",
    "accessBinding": {
      "roleId": "example",
      "subject": {
        "id": "example",
        "type": "system"
      }
    }
  }
]

USAccessBindingDeltaUSAccessBindingDelta

Name

Description

accessBinding

Type: object

roleId

Type: string

ID of the role assigned to the subject.

Example: example

subject

Type: object

id

Type: string

Unique identifier of the subject.

Example: example

type

Type: string

Type of the subject.

Enum: system, userAccount, federatedUser, serviceAccount, group, invitee

Subject to which the role is assigned.

Example
{
  "id": "example",
  "type": "system"
}

Access binding to add or remove.

Example
{
  "roleId": "example",
  "subject": {
    "id": "example",
    "type": "system"
  }
}

action

Type: string

Action to perform on the access binding.

Enum: ADD, REMOVE

Example
{
  "action": "ADD",
  "accessBinding": {
    "roleId": "example",
    "subject": {
      "id": "example",
      "type": "system"
    }
  }
}

ResponsesResponses

200 OK200 OK

Response

BodyBody

application/json
{
  "id": "example",
  "description": "example",
  "createdBy": "example",
  "createdAt": {
    "seconds": "example",
    "nanos": 0.5
  },
  "modifiedAt": {
    "seconds": "example",
    "nanos": 0.5
  },
  "metadata": {},
  "done": true
}

Name

Description

createdAt

Type: object

seconds

Type: string

Number of seconds since the Unix epoch.

Example: example

nanos

Type: number

Fractional seconds in nanoseconds.

Operation creation timestamp.

Example
{
  "seconds": "example",
  "nanos": 0.5
}

createdBy

Type: string

ID of the user who created the operation.

Example: example

description

Type: string

Description of the operation.

Example: example

done

Type: boolean

Indicates if the operation has completed.

id

Type: string

Unique identifier of the operation.

Example: example

metadata

Type: object

Metadata associated with the operation.

Example
{}

modifiedAt

Type: object

seconds

Type: string

Number of seconds since the Unix epoch.

Example: example

nanos

Type: number

Fractional seconds in nanoseconds.

Operation last modification timestamp.

Example
{
  "seconds": "example",
  "nanos": 0.5
}

Was the article helpful?

Previous
Update collection
Next
List collection access bindings
© 2026 Direct Cursus Technology L.L.C.