Documented changing display name of group

This instruction was already added to nextcloud in 2019, see commit 653628c8fb

Signed-off-by: Dries Mys <dries.mys@my-dreams.be>
This commit is contained in:
m7913d
2021-05-24 17:51:01 +02:00
committed by Dries Mys
parent a35e387b9e
commit af4533eaf3

View File

@@ -166,6 +166,49 @@ XML output
</data>
</ocs>
Edit data of a single group
--------------------------
Edits attributes related to a group. Authentication
is done by sending a Basic HTTP Authorization header.
**Syntax: ocs/v1.php/cloud/groups/{groupid}**
* HTTP method: PUT
* PUT argument: key, the field to edit:
+ displayname
* PUT argument: value, the new value for the field
Status codes:
* 100 - successful
* 101 - not supported by backend
Examples
^^^^^^^^
::
$ curl -X PUT http://admin:secret@example.com/ocs/v1.php/cloud/groups/mygroup -d key="displayname" -d value="My Group Name"
* Updates the display name for the group ``mygroup``
XML output
^^^^^^^^^^
.. code-block:: xml
<?xml version="1.0"?>
<ocs>
<meta>
<statuscode>100</statuscode>
<status>ok</status>
</meta>
<data/>
</ocs>
Delete a group
--------------