I am trying to change the administrator settings using REST API. I want to add custom CSS to layout by sending the following JSON payload to /api/v1/settings/theme-custom-css
{
"_id": "theme-custom-css",
"value": "\n[data-id='video-message'] {\n\tcursor: pointer;\n}\n\n\n\n[data-id='start-discussion'] {\n\tcursor: pointer;\n}\n\n\n[data-id='file-upload'] {\n\tcursor: pointer;\n}\n\n\n.rc-message-box__send {\n\tcursor: pointer; \n}"
}
The problem is that I get the following response form the endpoint:
{
"success": false,
"error": "TOTP Required [totp-required]",
"errorType": "totp-required",
"details": {
"method": "password",
"codeGenerated": false,
"availableMethods": [ ]
}
}
What am I getting totp-required? And how can I fix this?