Merge pull request #9097 from nextcloud/backport/6721/stable23

[stable23] Documented changing display name of group
This commit is contained in:
tflidd 2022-08-17 10:19:07 +02:00 committed by GitHub
commit d155854d4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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, string - the field to edit:
+ displayname
* PUT argument: value, string - 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
--------------