deleteApiKey #
Deletes a user API key.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/users/<userId>/api-keys/<apiKeyId>[?refresh=wait_for]
Method: DELETE
Other protocols #
{
"controller": "security",
"action": "deleteApiKey",
"userId": "mWakSm4BWtbu6xy6NY8K",
"_id": "api-key-id"
}
Arguments #
_id
: API key IDuserId
: user kuid
Optional: #
refresh
: if set towait_for
, Kuzzle will not respond until the API key deletion is indexed (default:"wait_for"
)
Response #
Returns the deleted API key ID.
{
"status": 200,
"error": null,
"result": {
"_id": "api-key-id",
}
"action": "deleteApiKey",
"controller": "security",
"requestId": "<unique request identifier>"
}
Edit this page on Github(opens new window)