Feeds
Change a feed
Change a feed.
PATCH
/v1/feeds/{id}TL;DR
| Question | Answer |
|---|---|
| What does it do? | Change a feed. |
| What does it need? | An API key or an OAuth access token. |
| What does it take? | A JSON body with the fields below, and id in the path. |
| What does it return? | Status 200 with a body of type Feed. |
| In the SDK? | flung.feeds.update() |
| What can go wrong? | 401 Missing, unknown, revoked or expired API key; 404 No such feed in this workspace; 422 The request failed validation; 429 Too many requests for this credential; wait for retry-after seconds. Every failure has the same error shape. |
Example
bash
curl -X PATCH 'https://api.flung.dev/v1/feeds/feed_aaaaaaaaaaaaaaaaaaaaaaaa' \ --header "Authorization: Bearer $FLUNG_API_KEY" \ --header 'Content-Type: application/json' \ --data '{}'ts
import { Flung } from '@flung.dev/sdk'
const flung = new Flung({ apiKey: process.env.FLUNG_API_KEY! })const result = await flung.feeds.update({ id: 'feed_aaaaaaaaaaaaaaaaaaaaaaaa',})js
const response = await fetch('https://api.flung.dev/v1/feeds/feed_aaaaaaaaaaaaaaaaaaaaaaaa', { method: 'PATCH', headers: { 'Authorization': `Bearer ${process.env.FLUNG_API_KEY}`, 'Content-Type': 'application/json', }, body: JSON.stringify({}),})if (!response.ok) throw new Error((await response.json()).error.message)const result = await response.json()A successful answer looks like this:
json
{ "id": "feed_aaaaaaaaaaaaaaaaaaaaaaaa", "url": "string", "accountIds": [ "string" ], "template": "string", "enabled": true, "lastCheckedAt": "2026-11-01T09:00:00.000Z", "lastError": "string", "createdAt": "2026-11-01T09:00:00.000Z"}Path parameters
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes |
Request body
The body has the type an object, with the fields below.
| Field | Type | Required | Description |
|---|---|---|---|
accountIds | string[] | no | |
template | string | no | at least 1 character; at most 5000 characters. |
enabled | boolean | no |
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | The feed. | Feed |
| 401 | Missing, unknown, revoked or expired API key. | Error |
| 404 | No such feed in this workspace. | Error |
| 422 | The request failed validation. | Error |
| 429 | Too many requests for this credential; wait for retry-after seconds. | Error |
Response body
A 200 answer has the type Feed.
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | |
url | string | yes | |
accountIds | string[] | yes | |
template | string | yes | The post text: {{title}}, {{link}}, {{summary}} from each item, and workspace variables. |
enabled | boolean | yes | |
lastCheckedAt | string | null | yes | |
lastError | string | null | yes | |
createdAt | string | yes |
See also
| Doc | Why |
|---|---|
| API reference | Every endpoint |
| Schemas | Every request and response type |
| Errors | Every error code and what to do about it |