Update defaulRoute, timepicker:timeDefaults via curl in opensearch-dashboards

.8.0 (relevant - OpenSearch/Dashboard/Server RockyLinux 8/Chromer):

Describe the issue:

I am new to opensearch.
I am not able to upate the defaulRoute, timepicker:timeDefaults etc settings which is under AdvanceSettings in opensearch-dashboard via curl command.

Configuration:
I tried below commands, i got some output but the page is not redirected to /app/discover as weel the settings in the UI still show /app/home

Command

curl -u ‘****:*****’ -k -X POST “http://localhost:5601/api/saved_objects/config” -H “osd-xsrf: true” -H “content-type: application/json; charset=utf-8” -H “securitytenant: global” -d ‘{“attributes”: {“defaultRoute”: “/app/discover”}}’

OUTPUT

{“type”:“config”,“id”:“81288fd0-658c-11ee-b242-b3c553df404d”,“attributes”:
{“defaultRoute”:“/app/discover”},“references”:,“migrationVersion”{“config”:“7.9.0”},“updated_at”:“2023-10-08T03:41:03.181Z”,“version”:“WzE2NCw0XQ==”,“namespaces”:[“default”]}

I searched on internet and found another command but it gave me error
curl -u ‘:’ -k -X POST “http://localhost:5601/api/opensearch-dashboards/settings” -H “osd-xsrf: true” -H “content-type: application/json; charset=utf-8” -H “securitytenant: global” -d ’
{ “attributes”: {
“defaultRoute”:“/app/discover”
}
}’

Relevant Logs or Screenshots:

I have used the UI to update the defaultRoute and capture the request in dev tools

curl 'http://localhost:5601/api/opensearch-dashboards/settings' \
  -H 'Content-Type: application/json' \
  -H 'accept: application/json' \
  -H 'osd-version: 3.0.0' \
  -H 'osd-xsrf: osd-fetch' \
  --data-raw '{"changes":{"defaultRoute":"/app/discover"}}'