I want to automate company creation but I need more info.
According to KB this should work:
... but it does not - Postman receives the login page.
When setting header "Accept" to "application/json" I get HTTP 406.
What am I missing?
@syfy323 The API isn't documented very well right now. You will need to look at the post data using the tools built into the browser to see what CloudPanel passes. We are working on moving from the Nancy framework to WebAPI which will allow us to document the API much easier and in detail.
@jdixon Thank you. Please keep the old API available in new releases along the new one for some time to migrate. I need to integrate the CP now but will depend on it once it is finished. I'm fine with a migration to the new one later but that has to work side by side for a flawless migration.
I don't know much about IIS/ASP/.NET but it should be possible to have at least one migration release featuring both APIs, right?
I will now try to integrate some API calls I captured today into my application. It will be open source and is located here:
This project is new but it's part of a large ISP suite, that we develop at Dolphin IT. Development has started two years ago and a lot of datacenters in Germany run our code (and some of them run your CP 🙂 ).
Thats why we need a stable API.
@syfy323 The current API will remain for multiple versions once we move to the new platform. We are a little ways away from that though. I'll keep checking out the project and if you need anything or run into problems you send us an email to chat offline.