Merge pull request #1456 from nextcloud/enh/apppass_delete

Delete app password docs
This commit is contained in:
Morris Jobke
2019-05-17 12:27:45 +02:00
committed by GitHub

View File

@@ -84,3 +84,27 @@ The response would look (in XML) something like:
</data>
</ocs>
Deleting an app password
------------------------
When an account on a client is removed for housekeeping it is desired to destroy the apptoken in use.
This can be done by a simple call:
.. code-block:: bash
curl -u username:app-password -X DELETE -H 'OCS-APIREQUEST: true' http://localhost/ocs/v2.php/core/apppassword
The response should be a plain OCS response with a status 200
.. code-block:: xml
<?xml version="1.0"?>
<ocs>
<meta>
<status>ok</status>
<statuscode>200</statuscode>
<message>OK</message>
</meta>
<data/>
</ocs>
If a non 200 status code is returned the client should still proceed with removing the account.