Roll a function back to a saved version
dosai_restore_function_versionReturn a function to one of its saved versions (ids: dosai_list_function_versions). The current state is saved as a new version first, so the rollback can itself be rolled back. The on/off switch is rolled back too: a function that is off now comes back ON if it was on in that version, so check is_active with dosai_get_function afterwards. Saved keys and passwords are not part of a version and stay as they are now. Requires editor role.
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": {
"project_id": "<project_id>",
"function_id": "<function_id>",
"version_id": "<version_id>"
},
"name": "dosai_restore_function_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | From dosai_list_projects. | |
| version_id | Yes | ||
| function_id | Yes | From dosai_list_functions. |