Skip to main content

Update Watchlist

This API allows a user to update an existing Watchlist. It supports renaming the Watchlist, modifying the list of scrips (adding/removing), and rearranging their sequence. The API ensures updates based on version control.

🔑Header Parameters

HeaderTypeRequiredDescriptionExample/ENUM
AuthorizationstringYesBearer token for user authenticationBearer{{access_token}}
x-api-keystringYesAPI key for access control{{x-api-key}}

📦Request Body Schema

FieldTypeRequiredDescriptionExample/ENUM
idstringYesID of the Watchlist to update"abc123-xyz789"
sWatchListNamestringNoUpdated name of the Watchlist"Updated Portfolio"
bIsPrivatebooleanNoSet Watchlist as private or publictrue / false
bIsDefaultbooleanNoSet as the default Watchlisttrue / false
sSettingsstringNoReserved JSON string for future use""
scripsarrayNoNew list of scrips (replace existing)See Scrip Object
_versionnumberYesCurrent version of the Watchlist (for conflict handling)2

📝 Scrip Objects

FieldTypeRequiredDescriptionExample/ENUM
nMarketSegmentIdnumberYesExchange segment ID1
nTokennumberYesExchange token number for the scrip123456
nSequenceNonumberYesSequence number in the Watchlist1, 2, ...
sSettingsstringNoReserved for future settings (JSON string)""

🟢Success Response - 200 Ok

FieldTypeDescriptionExample/ENUM
statusstringStatus of the API call"success"
codestringResponse code"s-101"
messagestringDescriptive success message"Watchlist Updated successfully"
dataarray of objectList of Watchlist objectsSee details below

📘 Watchlist Object Schema

FieldTypeDescriptionExample/ENUM
idstringUnique Watchlist ID"32b95c61-370-b215-bb8857f9c949"
sWatchListNamestringName of the Watchlist"My Watchlist"
bIsPrivatebooleanIf true, watchlist is privatetrue
bIsDefaultbooleanIf true, this is the default watchlistfalse
sUserIdstringUser ID of the watchlist creator"user123"
sTenantIdstringTenant/Broker ID"1256878"
sSettingsstringReserved for future (must be valid JSON string)"{\"subCount\":13}"
scripsarrayList of scrips within the watchlistSee Scrip Object above
_versionnumberVersion number of the watchlist1
_deletedbooleanFlag to indicate if deletedfalse
_lastChangedAtnumberEpoch timestamp of last change1718008123
createdAtstringISO date-time of watchlist creation"2025-06-01T12:00:00Z"
updatedAtstringISO date-time of last update"2025-06-10T09:45:00Z"
put/nontransactional/v1/watchListProfile