API referenceSections

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}/password

Replace 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

NameInTypeRequiredDescription
tidpathstringrequired
idpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Responses

200 Changed

Content type: application/json

object
  • password string optional
  • stored_in string optional
  • pending boolean optional

    WordPress 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_id string optional

    The change's job, when pending.

Example
{
  "password": "string",
  "stored_in": "string",
  "pending": true,
  "job_id": "string"
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required