Skip to main content

Modify Scrip Alert

This API allows you to modify an existing alert that has been set for a specific scrip. You can update conditions and other properties of the alert.

🛣️Path Parameters

ParameterTypeRequiredDescriptionExample/ENUM
tenantidstringYesUnique identifier for the tenantABC123
versionstringYesAPI version (choose between v1 and v2)v1

🔑Header Parameters

HeaderTypeDescriptionExample/ENUM
AuthorizationstringBearer token for API authenticationBearer{{access_token}}
x-api-keystringAPI key required to access the resource{{x-api-key}}

📦Request Body Schema

Base Request Body

FieldTypeDescriptionExample
conditionArray of objectAn array of conditions. Each condition is an object.See details below
dataobjectContains additional data as key-value pairsSee details below
expirationintegerThe expiration timestamp.-1
createDatestringThe creation date and time"2025-07-25T13:00:54.907"
serverAlertIdstringUnique server-generated ID for the alert"3c0bca4a-fd94-4d66"
UniqueIdstringUnique identifier for the alertalert_5678

📝Condition Object (Array Of Objects)

FieldTypeDescriptionExample
operand1objectFirst operand object containing market segment, token, and fieldSee details below
operand2objectSecond operand object containing market segment, token, field, and valueSee details below
operatorstringOperator to compare operand values(e.g., >, <, =)>

🛈Operand1 Object

FieldTypeDescriptionExample/ENUM
marketsegmentintegerMarket segment identifier1
tokenintegerToken number from the exchange scrip master file12345
fieldstringField to compare, e.g., LIFETIMEHIGH, LIFETIMELOW, etc."LastTraderPrice"

🛈Operand2 Object

FieldTypeDescriptionExample
marketsegmentintegerMarket segment identifier1
tokenintegerToken number from the exchange scrip master file12345
fieldstringField to compare, e.g., LIFETIMEHIGH, LIFETIMELOW, etc."USE_VALUE"
valueintegerValue to compare against the field15000

🧾Data Object Fields

FieldTypeDescriptionExample/ENUM
remarksstringAdditional remarks or comments"Alert : AXISBANK price exceeds ₹700"
useridstringUser ID for whom the alert is being setuser_123
tenantidstringTenant IDABC123
symbolstringSymbol code for the scrip"AXISBANK"
alertTypestringType of alert (e.g., LIFETIMEHIGH, LASTTRADEDPRICE)LIFETIMEHIGH
categorystringCategory of alert"EQ"

🟢Success Response - 200 Ok

FieldTypeDescriptionExample/ENUM
statusstringStatus of the API call"success"
codestringResponse code for the user request"s-101"
messagestringMessage describing feedback on the request"Alert modified"
dataobjectContains details about the created alertSee details below

🧾Data Object Field

FieldTypeDescriptionExample/ENUM
alertIdstringUnique identifier for the created alert"1103c5f6-1993-4f68-8cd3"
put/alert-nodeengine/{tenantid}/{version}/alerts/setScripAlert