• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Question REST API Cli spamassassin

ChrisH

Basic Pleskian
Hello,
I can't find any documentation, so maybe you can help. I want to add an email to the whitelist of an existing email account with REST API. What I tried was:

curl -X POST "https://SERVER:8443/api/v2/cli/spamassassin/call" -H "accept: application/json" -H "Content-Type: application/json" -d "{\"params\": [\"--update\", \"[email protected]\", \"-whitelist\", \"add\", \"[email protected]\"]}"

This one is wrong. So how do you write commands and options in JSON?

{
"params": ["--update", "[email protected]" ],
"options": ["-whitelist add", "[email protected]"]
}
 
Back
Top