Skip to main content
POST
/
v2
/
databases
/
{database_id}
/
credentials
/
reset
Reset Credentials
curl --request POST \
  --url https://api.squarecloud.app/v2/databases/{database_id}/credentials/reset \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "reset": "<string>"
}
'
{
  "status":"success",
  "response":{
    "password":"f3T1hdskMkchMwK6Hxqinoyb"
  }
}
Authorization
string
required
The API key for your account. You can find this in your account settings.

Parameters

database_id
string
required
The ID of the database.
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 it’s a password reset

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