---
title: "Update Attack Challenge mode"
method: POST
path: "/v1/security/attack-mode"
tags: ["security"]
---

# Update Attack Challenge mode

`POST /v1/security/attack-mode`

Update the setting for determining if the project has Attack Challenge mode enabled.

## Query parameters

- `teamId` string
- `slug` string

## Request body

- union
  - object
    - `projectId` string, required
    - `attackModeEnabled` boolean, required
    - `attackModeActiveUntil` number, required
  - object
    - `projectId` string, required
    - `attackModeEnabled` boolean, required

## Response `200`

- object
  - `attackModeEnabled` false | true, required
  - `attackModeUpdatedAt` number, required

## Other responses

- `400` — One of the provided values in the request body is invalid.
- `401` — The request is not authorized.
- `403` — You do not have permission to access this resource.
- `404`
- `410`

---

[API](https://skmtc.net/vercel/apis/api.md) · [All operations](https://skmtc.net/vercel/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vercel/api/versions/61d1ba3f6dac/schema)
