Auth
Clear a user's authorization cache
Clear the authorization cache for the specified user. This is useful if a user's role changes.
HTTP Response Status Codes
Status code | Description |
---|---|
204 | Authorization cache for the user was deleted. |
500 | Internal error |
Code samples
POST
/v1/logoutcurl -X POST \
/api/v1/logout \
-H 'Authorization: Bearer YOUR-TOKEN' \
-H 'Accept: application/json'
import requests
response = requests.request(
"POST",
"/api/v1/logout",
headers={
"Accept": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN_HERE"
},
)
print(response.json())
Responses
Authorization cache for the user was deleted.
Authorization cache for the user was deleted.
Was this page helpful?
Report a bug or request content on GitHub.