Set a temporary password and revoke all sessions.
POST
/v1/users/{userId}/reset-password
const url = 'https://api.dev.iot-sens.schlossers.at/v1/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/reset-password';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"temporaryPassword":"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://api.dev.iot-sens.schlossers.at/v1/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/reset-password \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "temporaryPassword": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”userId
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
temporaryPassword
required
string
Examplegenerated
{ "temporaryPassword": "example"}Responses
Section titled “Responses”Temporary password set.
default
Section titled “default”A safe platform error response.
Media typeapplication/json
object
error
required
object
Example
{ "error": { "code": "VALIDATION_FAILED", "category": "validation" }}Headers
Section titled “Headers”Cache-Control
string