Authentication
Reading requires an API key with thesettings:read scope; changes require settings:write. These scopes can only be granted to API keys, not to OAuth connections.
example.com allows https://app.example.com, but also https://example.com.other.net. Give full addresses, such as https://portal.example.com, to allow only the websites you choose.
List the allowed domains
Allow a domain
400.
Remove a domain
404.
Removing the last domain leaves the list empty: any website can then embed the widget, and only your AGO sites can still call the SDK API from the browser.
Replace the list
400 and changes nothing.