---
title: "updateSettings"
method: PUT
path: "/core/api/v1/admin/payment-blocking/settings"
tags: ["admin-payment-blocking-controller"]
---

# updateSettings

`PUT /core/api/v1/admin/payment-blocking/settings`

## Request

- Base URL: `https://api.freshlearn.com`
- URL: `https://api.freshlearn.com/core/api/v1/admin/payment-blocking/settings`
- Auth: none declared

## Headers

- `Authorization` string
- `domain` string
- `api-key` string

## Request body

- PaymentBlockingSettingsDto
  - `blockDurationHours` integer
  - `cleanupRetentionDays` integer
  - `enableAutoBlocking` boolean
  - `enableIpTracking` boolean
  - `enableNotifications` boolean
  - `maxAttempts` integer
  - `notificationEmail` string
  - `suspiciousErrorCodes` string[]

## Response `200`

OK

## Other responses

- `201`: Created
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

---

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