API for Nextcloud?

Hello,

We are using more than one Nextcloud where I work and it starting to be to many Nextclouds to manage by logging in to them to check Version and app versions etc.

Is there any API’s that i can use with curl or anything to make it easier with managing?

All I can find is for users and LDAP:

But I would like API’s for stuff like this aswell:
image

Check-out the developer guide:

https://docs.nextcloud.com/server/19/developer_manual/api.html?highlight=api#php-public-api

Thanks, but I’m abit confused how it works?

If i understand that correctly, then it shows all of the classes for the PHP code? But if you take users as an example. How would you find what to type to create a new user?

https://stable19--nextcloud-server.netlify.app/namespaces/ocp-user.html
https://stable19--nextcloud-server.netlify.app/classes/ocp-user

When I used this before:
https://docs.nextcloud.com/server/19/admin_manual/configuration_user/instruction_set_for_users.html

Kinda new to API’s.

Below is util functions to create group and user using API:

Sorry, but I’m still lost.

There is no easy command to find out what version the nextcloud is using with a simple API string with cURL or anything?

I would have a deeper look on the developers manual, e.g. the capabilities API:

I found these and they work (Somehow missed the OCC command)

https://example.com/ocs/v2.php/apps/serverinfo/api/v1/info
sudo -u www-data php /var/www/html/nextcloud/occ status
  - installed: true
  - version: 19.0.0.12
  - versionstring: 19.0.0
  - edition: