Stop Accepting an SSH Key
Last updated Changelog
http
DELETE /crates/{handle}/logins/{login}/keys/{fingerprint}
The login stops accepting the key; the key stays on the crate for the other logins. {fingerprint} is the key’s fingerprint as listed, with or without SHA256:. Its / and + can be sent as they are. 404 when the login doesn’t accept such a key.
Response
json
{ "message": "The login no longer accepts that key." }
Errors
Besides the errors any endpoint can return:
| Status | Code | When |
|---|---|---|
| 400 | operation_rejected |
The server behind the API (mail, database, storage) or the registrar refused the operation. error says why. |
| 403 | scope_denied |
This API key does not have Crates write access for this crate. |
| 403 | service_inactive |
This crate is not active. |
| 404 | not_found |
Key not found. Crate not found. Login not found. |
| 502 | upstream_unavailable |
This crate has no storage node. |