Delete app password docs

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma
2019-05-17 12:24:52 +02:00
parent 1101f6bbd6
commit e70db07708

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.