---
title: "Activate or deactivate an alert"
method: POST
path: "/iserver/account/:accountId/alert/activate"
tags: ["Alert"]
---

# Activate or deactivate an alert

`POST /iserver/account/:accountId/alert/activate`

Please note, if alertId is 0, it will activate/deactivate all alerts

## Path parameters

- `accountId` string, required

## Request body

- object
  - `alertId` integer — alert id(order id)
  - `alertActive` integer — 1 to activate, 0 to deactivate

## Response `200`

returns an object

- object
  - `request_id` integer
  - `order_id` integer
  - `success` boolean
  - `text` string
  - `order_status` string
  - `failure_list` string

---

[API](https://skmtc.dev/interactivebrokers/apis/client-portal-web-api.md) · [All operations](https://skmtc.dev/interactivebrokers/apis/client-portal-web-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/interactivebrokers/client-portal-web-api/revisions/32edbfe496d1/schema)
