• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Help setting/updating values using PleskX API PHP

Fernando Ok

New Pleskian
Hello plesk team and customers,

I'm trying to set|update values of customer/webspace....

I know method of create, get and delete, but i can't change any existent value... ¿what is set/update/change method?

Create Customer example:
Code:
$client->customer()->create([
    'cname' => 'Plesk',
    'pname' => 'John Smith',
    'login' => 'john',
    'passwd' => 'secret',
    'email' => '[email protected]',
]);

Getting Customer data example:
Code:
$client->customer()->get('id', {ID_HERE} );

Deleting Customer example:
Code:
$client->customer()->delete('id', {ID_HERE} );

HOW TO SET/UPDATE/CHANGE?
Code:
$client->customer()->?????????????????????

Please, help with this question, i'm read thousands pages without any success...
 
Back
Top