Revert all snapshot-dirty parameters to their snapshot values
POST/api/v1/db-params/revert-to-snapshot
Computes which parameters currently differ from the session snapshot and calls set_params_to_db to restore them in a single batch. Does NOT call restore_params_from_db — this reverts to the values at page-load time, not the ROS defaults.
Request
Responses
- 200
- 400
- 404
- 500
- 503
Parameters reverted to snapshot successfully
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
status numberrequired
data objectrequired
success booleanrequired
message stringrequired
{
"success": true,
"message": "string",
"status": 0,
"data": {
"success": true,
"message": "string"
}
}
ROS service returned failure
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
data nullrequired
status numberrequired
{
"success": true,
"message": "string",
"status": 0
}
No snapshot or current data available
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
data nullrequired
status numberrequired
{
"success": true,
"message": "string",
"status": 0
}
Internal server error
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
data nullrequired
status numberrequired
{
"success": true,
"message": "string",
"status": 0
}
ROS instance not available
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
{
"success": true,
"message": "string"
}
Loading...