Restore all defaults-changed parameters and save to DB
POST/api/v1/db-params/restore-to-defaults
For every parameter where live value differs from the ROS default: calls set_params_to_db with the default value, then calls update_params_to_db to persist. Does NOT use restore_params_from_db.
Request
Responses
- 200
- 400
- 404
- 500
- 503
Parameters restored to defaults and saved
- 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 parameter 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...