Set a local member's password
POST
/api/v1/tenants/{tenantId}/members/{userId}/password
const url = 'https://app.avera.io/api/v1/tenants/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/members/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/password';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"newPassword":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.avera.io/api/v1/tenants/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/members/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/password \ --header 'Content-Type: application/json' \ --data '{ "newPassword": "example" }'Password recovery in full: Avera sends no mail, so an administrator sets a new password and hands it over. Refused for SSO members.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”tenantId
required
string format: uuid
userId
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
newPassword
required
string
Example generated
{ "newPassword": "example"}Responses
Section titled “Responses”OK