---
title: "Update the Account Protect settings for the account"
method: PATCH
path: "/1.0/account-protect/settings"
tags: ["Account Protect Settings"]
---

# Update the Account Protect settings for the account

`PATCH /1.0/account-protect/settings`

## Request

- Base URL: `https://customer-api.datadome.co`
- URL: `https://customer-api.datadome.co/1.0/account-protect/settings`
- Auth: API key in header `x-api-key`

## Request body

- AccountProtectSettingsAccountProtectSettingsWrite
  - `protectionEnabled` boolean: The status of the Account Protect global protection. True means Account Protect protection is on (filtering). False means it is off (learning).

## Response `200`

Account Protect settings updated

- AccountProtectSettingsAccountProtectSettingsRead: Account Protect settings
  - `protectionEnabled` boolean: The status of the Account Protect global protection. True means Account Protect protection is on (filtering). False means it is off (learning).

## Other responses

- `400`: Lists the errors detected inside the request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Account Protect is not activated for this account
- `422`: Unprocessable entity

---

[API](https://skmtc.dev/datadome/apis/management-api.md) - [All operations](https://skmtc.dev/datadome/apis/management-api/llms.txt) - [OpenAPI document](https://skmtc.dev/datadome/apis/management-api/revisions/80062169b99e?raw)
