Update Alert
Enable or disable an existing price alert. First call list to obtain the full AlertItem, set item.enabled to True or False, then call update(item).
# Enable an alert
longbridge alert enable 486469
# Disable an alert
longbridge alert disable 486469SDK Links
Parameters
SDK method parameters.
| Name | Type | Required | Description |
|---|---|---|---|
| id | int64 | YES | Alert ID (path parameter) |
| enabled | bool | YES | New enabled state: true to enable, false to disable — set on the AlertItem before calling update |
Request Example
Response
Response Example
json
{
"code": 0,
"message": "success",
"data": {}
}Response Status
| Status | Description | Schema |
|---|---|---|
| 200 | Success | UpdateAlertResponse |
| 400 | Bad request | None |
Schemas
UpdateAlertResponse
No response body fields.

