delete-private-token.rst (867B)
1 .. http:delete:: [/instances/$INSTANCE]/private/token 2 3 Delete the token presented in the authorization header. 4 5 **Required permission:** none; any client may revoke the access token it 6 presents. 7 8 **Response:** 9 10 :http:statuscode:`204 No content`: 11 The access token used to authorize this request was revoked. 12 :http:statuscode:`400 Bad Request`: 13 The request is malformed. 14 Returned with ``TALER_EC_GENERIC_PARAMETER_MALFORMED``. 15 :http:statuscode:`401 Unauthorized`: 16 The request is unauthorized. 17 Returned with ``TALER_EC_MERCHANT_GENERIC_UNAUTHORIZED``. 18 :http:statuscode:`404 Not found`: 19 The instance is unknown. 20 Returned with ``TALER_EC_MERCHANT_GENERIC_INSTANCE_UNKNOWN``. 21 :http:statuscode:`500 Internal Server Error`: 22 The server experienced an internal failure. 23 Returned with ``TALER_EC_GENERIC_DB_STORE_FAILED``.