---
title: "Account:SetPassword"
method: PATCH
path: "/v2/accounts/password"
tags: ["Account"]
---

# Account:SetPassword

`PATCH /v2/accounts/password`

Set the password of an account. You need to supply a password and a token. This token will be sent in the mail when you have forgotten your password or when you have created your account. If 2FA is not set for your account, you will receive in the response a new token which can be used only to set 2FA for your account

## Request body

- AccountAccountPasswordInput — Set the password of an account. You need to supply a password and a token. This token will be sent in the mail when you have forgotten your password or when you have created your account. If 2FA is not set for your account, you will receive in the response a new token which can be used only to set 2FA for your account
  - `password` string, required
  - `passwordToken` string, required

## Response `200`

OK

- AccountAccountPasswordOutput — Set the password of an account. You need to supply a password and a token. This token will be sent in the mail when you have forgotten your password or when you have created your account. If 2FA is not set for your account, you will receive in the response a new token which can be used only to set 2FA for your account
  - `username` string — The username of the account
  - `token` string, nullable
  - `2faSetupRequired` boolean

## Other responses

- `400` — Bad request, see response body for more information
- `401` — Unauthorized. Supplied credentials are invalid
- `403` — Forbidden. Supplied credentials have no rights
- `404` — Resource not found
- `405` — Used HTTP method is not allowed
- `406` — Not acceptable. The supplied content type in the accept parameter in the header is not supported
- `410` — Indicates that this resource is no longer available for use
- `415` — Unsupported media. The supplied content type in the content-type parameter in the header is not supported
- `422` — Unprocessable entity
- `429` — Rate limit reached.
- `500` — An internal error occurred.
- `503` — The server is currently unable to handle your request

---

[API](https://skmtc.net/pay/apis/pay-transaction-gateway-unit-api.md) · [All operations](https://skmtc.net/pay/apis/pay-transaction-gateway-unit-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pay/pay-transaction-gateway-unit-api/versions/2bc260c7bdfc/schema)
