cURL
curl --request PUT \
--url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/sql-users/{name}/password \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
--json '{"password":"example_new_password"}'{
"name": "<string>"
}{
"code": 123,
"details": [
{
"@type": "<string>"
}
],
"message": "<string>"
}Can be used by the following roles assigned at the organization, folder or cluster scope:
- CLUSTER_ADMIN
PUT
/
api
/
v1
/
clusters
/
{cluster_id}
/
sql-users
/
{name}
/
password
cURL
curl --request PUT \
--url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/sql-users/{name}/password \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
--json '{"password":"example_new_password"}'{
"name": "<string>"
}{
"code": 123,
"details": [
{
"@type": "<string>"
}
],
"message": "<string>"
}
