Rename Watchlist
Rename an existing watchlist
Overview
This PUT endpoint enables you to rename a specific watchlist of the user whose id is provided in the request's path.
There are six required parameters that must be provided in the request:
Authorization (header). This is the authorization token from the very first token request. The value of this header must have the following format:
Bearer BQ898r9fefi
(Bearer
+ 1 space + the token).API version (path). Unless necessary, leave it at "1.0".
userID (path). This is the ID of the user whose particular watchlist needs to be have one security removed.
watchlistID (path). This is the internal identifier of the watchlist from which a security must be removed. You can retrieve the list of a user's watchlists with this method.
name (query). This is a string that contains the new name for an existing watchlist.
Here's the final template for this API request:
Response
In response to this API request, you'll receive a JSON file with a dictionary that contains two fields: the modified watchlist's ID and its new name.
Common Mistakes
Here are some of the common mistakes that developers make when attempting to rename a specific watchlist.
Failing to Specify the Query Parameters
It's crucial to understand that the name parameter must be provided in the request; otherwise you'll receive the 404 status code and the following message:
The following article covers the syntax for this API request in detail.
Last updated