• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Is possible handle mailboxes using NEW REST API v2?

Is possible handle mailboxes using new REST API v2?

  • No... it's still not possible ... wait a undefined time

    Votes: 0 0.0%

  • Total voters
    1

Fernando Ok

New Pleskian
Hi, I have a question which I think I already know the answer (not), but I want to be sure.

Ok, the question is if I can handle(create, edit, remove...) mailboxes using "New Remote Plesk REST API v2".

This new API is amazing and I am surprised that it does not have the capacity to manage something so basic ...


Regards from Spain ;)
 
To create a mailbox:

Code:
# curl -k -X POST -u admin:password "https://203.0.113.2:8443/api/v2/cli/mail/call" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"params\": [ \"--create\", \"[email protected]\",\"-mailbox\", \"true\", \"-passwd\", \"1qazXSW@\" ]}"
{
"code": 0,
"stdout": "SUCCESS: Creation of mailname '[email protected]' complete",
"stderr": ""
 
To create a mailbox:

Code:
# curl -k -X POST -u admin:password "https://203.0.113.2:8443/api/v2/cli/mail/call" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"params\": [ \"--create\", \"[email protected]\",\"-mailbox\", \"true\", \"-passwd\", \"1qazXSW@\" ]}"
{
"code": 0,
"stdout": "SUCCESS: Creation of mailname '[email protected]' complete",
"stderr": ""
Thank you very much!! ;)
 
Back
Top