Skip to content
ClickHouse Docs
ClickHouse DocsClickHouse Docs

Update service password

PATCH/v1/organizations/{organizationId}/services/{serviceId}/password

Sets a new password for the service

Authorizations

Path parameters

  • organizationIdstringrequired

    ID of the organization that owns the service.

    format: uuid
  • serviceIdstringrequired

    ID of the service to update password.

    format: uuid

Request bodyJSON

  • newPasswordHashoptionalstring

    Optional password hash. Used to avoid password transmission over network. If not provided a new password is generated and is provided in the response. Otherwise this hash is used. Algorithm: echo -n "yourpassword" | sha256sum | tr -d '-' | xxd -r -p | base64

  • newDoubleSha1Hashoptionalstring

    Optional double SHA1 password hash for MySQL protocol. If newPasswordHash is not provided this key will be ignored and the generated password will be used. Algorithm: echo -n "yourpassword" | sha1sum | tr -d '-' | xxd -r -p | sha1sum | tr -d '-'

Response

JSON

200

Successful response

JSON
  • statusoptionalnumber

    HTTP status code.

    Example: 200
  • requestIdoptionalstring

    Unique id assigned to every request. UUIDv4

    format: uuid
  • resultoptionalobject
    1 properties
    • passwordoptionalstring

      New service password. Provided only if there was no 'newPasswordHash' in the request

Navigation