Update a Subscription

This API endpoint allows you to change the RSS/ATOM/JSON-Feed of a given Subscription, while keeping the same Subscription ID and "info".

Alternatively, you can delete a Subscription and create a new one with a different Feed.

Endpoint

https://api.rssapi.net/v1/apikey/updatesubscriptionfeed

Parameters

  • id int required
    • The ID of a Subscription
  • url string required
    • New URL of a RSS, ATOM or JSON-Feed

Example

https://api.rssapi.net/v1/apikey/updatesubscriptionfeed?id=22946&url=https://www.sciencenews.org/feed/

cURL (replace apikey with your API Key):

curl "https://api.rssapi.net/v1/apikey/updatesubscriptionfeed?id=22946&url=https://www.sciencenews.org/feed/"

Response:

{
  "ok": true,
  "result": {
    "status": "subscription_updated",
    "subscription_id": "22946",
    "feed_type": "rss",
    "webhook_url": "https://example.org/webhook",
    "url": "https://www.sciencenews.org/feed/"
  }
}