When attempting to update a database via the admin api on SG 2.8 I get the following result
{
"error": "Bad Request",
"reason": "Bad JSON: rest.DbConfig.ImportFilter: ReadString: expects \" or n, but found `, error found in #10 byte of ...|filter\": `\nfunction(|..., bigger context ...|ORG-office-WT\"]}\n },\n \"import_filter\": `\nfunction(doc) {\n return true;\n}\n `\n}|..."
}
The request body
{
"server": "walrus:",
"pool": "default",
"bucket": "test-bucket",
"name": "{{walrusdb}}",
"users": {
"user1": {"password": "password1", "admin_channels": ["USR-user1"]},
"user2": {"password": "password2", "admin_channels": ["USR-user2", "ORG-office-RD"]},
"user3": {"password": "password3", "admin_channels": ["USR-user3", "ORG-office-WT"]}
},
"import_filter": `function(doc) {
return true;
}`
}
The docs only show using back ticks for these settings. Is there another way to update import_filter and sync?
1 post - 1 participant