Lock a DataLens entry
datalens_entrylocks_createLocks a DataLens entry—dataset, chart, or dashboard—for editing and returns the lock token needed to extend or release it; if already locked, reports the holder and expiry.
Instructions
Lock an entry (a dataset, a chart, a dashboard) for editing.
The reply holds the token of the lock and nothing else: keep it, extending and releasing the lock take it. An entry that is already locked answers 423 with who holds the lock and until when.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"entry_id": "<entry_id>",
"data": "<data>"
},
"name": "datalens_entrylocks_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | How long to hold the lock, in milliseconds. | |
| dry_run | No | Send nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none). | |
| entry_id | Yes | Entry id. |