POST
/
v2
/
databases
/
{databaseId}
/
credentials
/
reset
Reset Credentials
curl --request POST \
  --url https://api.squarecloud.app/v2/databases/{databaseId}/credentials/reset \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "reset": "<string>"
}'
{
  "status":"success",
  "response":{
    "password":"f3T1hdskMkchMwK6Hxqinoyb"
  }
}

Request

Headers

Authorization
string
required
The API key for your account. You can find this in your account settings.

Path

databaseId
string
required
The ID of the database.

Body

reset
string
required
The credential you want to reset, password or certificate.

Response

status
string
Indicates whether the call was successful.. success if successful, error if not.

If is a password reset

response
object
The contents of the response.
{
  "status":"success",
  "response":{
    "password":"f3T1hdskMkchMwK6Hxqinoyb"
  }
}