• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved JSON API: Create/Update Client: "Call to a member function getApsBundleFilter() on null"

Giu

Basic Pleskian
Server operating system version
ubuntu
Plesk version and microupdate number
Plesk Obsidian Web Host Edition 18.0.38 Update #1
Hi there,

im testing out the JSON Api. So far everything works nicely but on
POST Create Client /clients
PUT Update Client /clients/{id}

i get the following Error:

{
"code": 0,
"message": "Call to a member function getApsBundleFilter() on null"
}

On POST Create Client the client still gets created even though no success message is returned but on Update (PUT /clients/{id} the update does not update.

So basically these two routes are bugged out at least on my installation

(Plesk Obsidian Web Host Edition
Version 18.0.38 Update #1)

anyone can help?
 
I couldn't reproduce this issue on a server with the most recent Plesk version (18.0.50 Update #2). Best advice I can give is to update to the newest Plesk version.
 
Last edited:
So i "solved" the issue by myself i guess

in the API Docs the following parameters where given:

{
"name": "John Smith",
"company": "Plesk",
"login": "john-unit-test",
"status": 0,
"email": "[email protected]",
"locale": "en-US",
"owner_login": "admin", <- i removed this and now no errors occur anymore
"external_id": "link:12345",
"description": "Nice guy",
"password": "changeme1Q**"
}

i removed the "owner_login": "admin" parameter and everything works as expected. I don't know if owner_login is an important parameter. what does it do? For me login is enough.
 
Good to hear you've got it solved. I still recommend updating Plesk to the most recent version tho.

The owner_login parameter sets the user name for the user (client) to log into Plesk. Which can be omitted when updating (PUT) client data. But is a required parameter when creating a client (POST).
 
Back
Top