Replace member password
curl --request PUT \
--url http://localhost:8080/api/v1/local-users/{user}/password \
--header 'Content-Type: application/json' \
--header 'X-OpenCluster-Organization: <x-opencluster-organization>' \
--cookie __Host-oc_session= \
--data '
{
"password": "<string>"
}
'import requests
url = "http://localhost:8080/api/v1/local-users/{user}/password"
payload = { "password": "<string>" }
headers = {
"cookie": "__Host-oc_session=",
"X-OpenCluster-Organization": "<x-opencluster-organization>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
cookie: '__Host-oc_session=',
'X-OpenCluster-Organization': '<x-opencluster-organization>',
'Content-Type': 'application/json'
},
body: JSON.stringify({password: '<string>'})
};
fetch('http://localhost:8080/api/v1/local-users/{user}/password', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/api/v1/local-users/{user}/password",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'password' => '<string>'
]),
CURLOPT_COOKIE => "__Host-oc_session=",
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-OpenCluster-Organization: <x-opencluster-organization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:8080/api/v1/local-users/{user}/password"
payload := strings.NewReader("{\n \"password\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("cookie", "__Host-oc_session=")
req.Header.Add("X-OpenCluster-Organization", "<x-opencluster-organization>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("http://localhost:8080/api/v1/local-users/{user}/password")
.header("cookie", "__Host-oc_session=")
.header("X-OpenCluster-Organization", "<x-opencluster-organization>")
.header("Content-Type", "application/json")
.body("{\n \"password\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/api/v1/local-users/{user}/password")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Put.new(url)
request["cookie"] = '__Host-oc_session='
request["X-OpenCluster-Organization"] = '<x-opencluster-organization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"password\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"error": "the selected Organization is not available to this caller",
"reason": "credential_rejected",
"requires": "<string>"
}Members
Replace member password
PUT
/
api
/
v1
/
local-users
/
{user}
/
password
Replace member password
curl --request PUT \
--url http://localhost:8080/api/v1/local-users/{user}/password \
--header 'Content-Type: application/json' \
--header 'X-OpenCluster-Organization: <x-opencluster-organization>' \
--cookie __Host-oc_session= \
--data '
{
"password": "<string>"
}
'import requests
url = "http://localhost:8080/api/v1/local-users/{user}/password"
payload = { "password": "<string>" }
headers = {
"cookie": "__Host-oc_session=",
"X-OpenCluster-Organization": "<x-opencluster-organization>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
cookie: '__Host-oc_session=',
'X-OpenCluster-Organization': '<x-opencluster-organization>',
'Content-Type': 'application/json'
},
body: JSON.stringify({password: '<string>'})
};
fetch('http://localhost:8080/api/v1/local-users/{user}/password', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/api/v1/local-users/{user}/password",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'password' => '<string>'
]),
CURLOPT_COOKIE => "__Host-oc_session=",
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-OpenCluster-Organization: <x-opencluster-organization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:8080/api/v1/local-users/{user}/password"
payload := strings.NewReader("{\n \"password\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("cookie", "__Host-oc_session=")
req.Header.Add("X-OpenCluster-Organization", "<x-opencluster-organization>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("http://localhost:8080/api/v1/local-users/{user}/password")
.header("cookie", "__Host-oc_session=")
.header("X-OpenCluster-Organization", "<x-opencluster-organization>")
.header("Content-Type", "application/json")
.body("{\n \"password\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/api/v1/local-users/{user}/password")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Put.new(url)
request["cookie"] = '__Host-oc_session='
request["X-OpenCluster-Organization"] = '<x-opencluster-organization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"password\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"error": "the selected Organization is not available to this caller",
"reason": "credential_rejected",
"requires": "<string>"
}Authorizations
Headers
Selects the Organization whose data and membership are authorized.
Required string length:
1 - 63Pattern:
^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$Path Parameters
Body
application/json
Required string length:
12 - 1024Response
The operation completed and has no response body.