---
title: "Pin Set"
method: POST
path: "/api/v1/auth/pin/set"
tags: ["auth"]
---

# Pin Set

`POST /api/v1/auth/pin/set`

## Request

- Base URL: `https://duebuddy.work` (the document declares no server; this is the origin it was published from)
- URL: `https://duebuddy.work/api/v1/auth/pin/set`
- Auth: none declared

Включить, сменить или выключить PIN. Для смены и выключения нужен текущий PIN.

## Request body

- PinIn
  - `pin` string, required
  - `current` string

## Response `200`

Successful Response

- OkOut
  - `ok` boolean
  - `sent` boolean
  - `retry_after` integer, nullable
  - `reason` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/duebuddy/apis/duebuddy-api.md) · [All operations](https://skmtc.dev/duebuddy/apis/duebuddy-api/llms.txt) · [OpenAPI document](https://skmtc.dev/duebuddy/apis/duebuddy-api/revisions/c5428d5afda8?raw)
