• 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

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