• 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.

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