Skip to main content
POST
Cập nhật mật khẩu trong luồng settings

Ủy quyền

X-Session-Token
string
header
bắt buộc

Session token returned by authentication flows.

Tham số truy vấn

flow
string
bắt buộc

Ma flow duoc tra ve tu endpoint tao flow tuong ung. Khi submit/update flow phai truyen dung ma nay trong query flow.

Nội dung

application/json

Payload cap nhat self-service flow. Truyen ma flow tren query string va gui cac field bat buoc cua method dang dung.

Payload dung de cap nhat mat khau cua user dang dang nhap trong settings flow.

method
enum<string>
bắt buộc

Phuong thuc settings. Dung password khi doi mat khau.

Tùy chọn có sẵn:
password
password
string<password>
bắt buộc

Mat khau moi se gan cho identity dang dang nhap.

Phản hồi

Settings flow da duoc cap nhat. Doi mat khau tra ve settings flow moi nhat.

self-service flow object duoc tra ve boi cac endpoint tao/cap nhat login, registration, recovery va settings flow.

id
string

Ma flow. Dung gia tri nay lam query parameter flow khi submit hoac update flow.

type
string

Loai flow do he thong tra ve, vi du browser hoac api.

expires_at
string<date-time>

Thoi diem flow het han. Can submit flow truoc thoi diem nay.

issued_at
string<date-time>

Thoi diem he thong tao flow.

ui
object

Payload UI cua gom action URL, method, nodes, messages va CSRF node khi can.

state
string

Trang thai hien tai cua flow, vi du choose_method, sent_email, passed_challenge hoac success.

request_url
string

URL request goc dung de tao flow.

organization_id
string | null

Ma organization cho flow theo organization, khi co.

created_at
string<date-time>

Thoi diem tao flow.

updated_at
string<date-time>

Thoi diem cap nhat flow.

refresh
boolean

Cho biet flow co phai refresh flow hay khong.

requested_aal
string

Muc dam bao xac thuc duoc yeu cau cho flow.

identity
any

Identity gan voi settings flow khi tra ve.