Skip to content
Alphahelmstudio is early software: things will change, and some will break.What's newReport an issue

authAdminSetPassword

PUT
/auth/admin/users/{id}/password
curl --request PUT \
--url http://localhost:8300/auth/admin/users/example/password \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{ "password": "example" }'
id
required
string

User UUID (malformed = 404)

Media typeapplication/json
object
password
required

Common passwords are refused

string
>= 10 characters <= 256 characters

Example generated

{
"password": "example"
}

Set; all their sessions are revoked

Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Valid token without the admin role: “admin role required”

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Not found

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Conflict

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Invalid input: “invalid JSON body”, or the failed rule (“invalid email”, “name must be 1-200 characters”, “password must be at least 10 characters”, “password is too common”, “roles must not be empty”, …)

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}