Docs Home Return to Homepage
Get Started Login

New Password

Last updated Changelog

On this page
http
POST /crates/{handle}/logins/{login}/password

Generates a new password for the login and returns it, once. The old password stops working at once; SSH keys are unaffected. Works for the master login too.

Response

json
{
  "password": "Kt7wq2Xn9pRz4Vm8Hs3bYc6D",
  "message": "New password set; the old one stopped working. It is shown only now."
}

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 Crate not found. Login not found.
502 upstream_unavailable This crate has no storage node.

Snagged on something?

Our sysadmins answer tickets around the clock.