Replace the account's password
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
POST
/api/v1/tenants/{tid}/databases/{id}/passwordReplace the account's password. It is shown once, or written into the application that uses it
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
id | path | string | required | |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Responses
200 Changed
Content type: application/json
object
passwordstring optionalstored_instring optionalpendingboolean optionalWordPress only (stored_in set): the server was busy and has not made the change yet; it makes it when free, within 15 minutes, and stores the password itself (R24-9).
job_idstring optionalThe change's job, when pending.
Example
{
"password": "string",
"stored_in": "string",
"pending": true,
"job_id": "string"
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required