delete-charities-CHARITY_ID.rst (821B)
1 .. http:DELETE:: /charities/{charity_id} 2 3 Delete (or deactivate) a charity. Only allowed if the request comes with the administrator bearer token. 4 5 **Request:** 6 7 **Response:** 8 9 :http:statuscode:`204 No Content`: 10 The request was successful and the charity has been deleted. 11 :http:statuscode:`400 Bad Request`: 12 The ``charity_id`` in the URL could not be parsed. 13 Returned with error code ``TALER_EC_GENERIC_PARAMETER_MALFORMED``. 14 :http:statuscode:`403 Forbidden`: 15 The request did not contain an accepted administrator bearer token in its header. 16 Returned with error code ``TALER_EC_GENERIC_TOKEN_PERMISSION_INSUFFICIENT``. 17 :http:statuscode:`500 Internal Server Error`: 18 The Donau encountered an internal database error. 19 Returned with error code ``TALER_EC_GENERIC_DB_FETCH_FAILED``.