Subscriptions
Replace subscriptions
PUT
Replaces an app's full ticker list. Send the revision you last read. If the list changed since, the request is refused with 409; read it again and retry.
apiKeyheader
AuthorizationBearer <token>app*stringapplication/json- body
tickers*array<>The full list. It replaces the current one.
Items
items <= 5000revision*integerThe revision you last read (0 for a new app).
Range
0 <= valueThe new ticker list and what changed
application/json- response
app*stringYour app id.
revision*integerGoes up by one each time the list changes.
Range
0 <= valuetickers*array<>The tickers, sorted.
added*array<>Tickers this request added.
removed*array<>Tickers this request removed.
curl -X PUT 'https://api.newsfilter.dev/v1/subscriptions/string' \ -H 'Content-Type: application/json' \ -d '{ "tickers": [ "ACME" ], "revision": 3}'Example Response
{ "app": "string", "revision": 3, "tickers": [ "ACME" ], "added": [ "ACME" ], "removed": [ "ACME" ]}