Skip to content

Turn a vulnerability feed on or off for the organization (admin)

PUT
/v1/orgs/{org}/feeds/{feed}
curl --request PUT \
--url https://example.com/v1/orgs/example/feeds/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "subscribed": true }'

Turning a feed off hides the findings only it reports from lists, counts, exports, the graph and MCP for this organization; nothing is deleted, and they come back when it is turned on again. It sends no finding.resolved, and turning it back on sends no finding.new for findings that were there before. Each change writes an org.feed_subscription_changed event; asking for the state the feed is already in changes nothing and writes no event. The answer is the feed as GET lists it.

org
required
string

Organization (tenant) slug, e.g. alpenrobotik

feed
required
string

The feed’s key: nvd or csaf:, e.g. csaf:siemens

Media typeapplication/json
object
subscribed
required

False turns the feed off for the organization; true turns it on again

boolean

Example generated

{
"subscribed": true
}

The feed

Media typeapplication/json
object
key
required

Osv, nvd, csaf:, kev, eukev, euvd, epss, cwe, capec or attack

string
name
required

How the feed is shown, e.g. NVD, Siemens ProductCERT

string
kind
required

Matching feeds create findings (OSV, NVD, CSAF); enrichment feeds add context to them

string
Allowed values: matching enrichment
subscribable
required

The organization can turn it on or off (NVD and the CSAF providers)

boolean
subscribed
required

Its findings count for the organization; always true for a feed that isn’t subscribable

boolean
default
required

Whether it is on for an organization that never chose

boolean
publisher
required

A CSAF provider: a vendor’s own advisories or a coordinator’s; null for the other feeds

string | null
Allowed values: vendor coordinator
state
required
string
Allowed values: ok stale very_stale
checked_at
required

Last successful check; null when never checked or not synced here

string | null format: date-time
changed_at
required

When the organization last turned it on or off; null if it never did

string | null format: date-time
changed_by
required

Who did: the user’s ID, or api-key; null if nobody did

string | null

Example

{
"kind": "matching",
"publisher": "vendor",
"state": "ok"
}

Feeds.notSubscribable (params.feed: OSV and the enrichment feeds are always on), request.fieldRequired (params.field subscribed), or request.invalidJson

Caller is not an admin

No such object in this organization, no such organization, or the caller does not belong to it

Over the operation’s rate-limit budget (x-affectra-budget): code request.rateLimited with params.budget. Wait Retry-After seconds before trying again.

Media typeapplication/problem+json

Every error answer, Content-Type application/problem+json. The web app and integrations translate code; detail is English, for people reading curl output or CI logs, and may change wording at any time. Match on code, never on detail.

object
status
required

The HTTP status

integer
code
required

Stable error codes. A code is never renamed; new ones may be added, so a client falls back to detail for a code it doesn’t know. Another organization’s object answers notFound, the same as a missing one.

string
Allowed values: notFound internal request.invalidJson request.invalid request.alreadyExists request.timeInvalid auth.required auth.csrfMissing email.invalid accounts.passwordUnavailable locale.invalid request.rateLimited auth.sessionRequired auth.roleTooLow auth.githubTokenUploadOnly org.suspended org.required request.fieldRequired request.textInvalid request.timeout server.notReady catalog.unavailable report.invalid report.wrongTenant settings.csafNamespaceInvalid settings.digestHourInvalid settings.timeZoneInvalid sbom.invalid sbom.limitExceeded sbom.signatureInvalid sbom.signatureRequired sbom.signatureUnavailable upload.hardwareRevisionRenamed upload.malformed upload.unexpectedPart upload.sbomMissing upload.tooLarge upload.unreadable provenance.invalid provenance.sbomAttestation provenance.signatureRequired provenance.unavailable vex.vulnerabilityInvalid vex.statusInvalid vex.justificationUnknown vex.justificationNotAllowed vex.justificationRequired vex.actionRequired vex.statementTooLong vex.csafNamespaceRequired vex.csafNoStatements release.hasVexStatements finding.refInvalid mapping.purlInvalid mapping.purlVersioned mapping.purlCoveredByOsv mapping.cpeFieldInvalid mapping.builtIn mapping.csafProviderUnknown mapping.csafKindInvalid mapping.csafValueInvalid feeds.notSubscribable accounts.setupEmailLimit member.exists member.joined member.roleInvalid member.ownerGrantDenied member.ownerChangeDenied member.ownerRemoveDenied member.lastOwner github.orgInvalid github.teamInvalid github.roleInvalid github.adminRequired key.nameInvalid key.roleInvalid key.purposeInvalid product.keyInvalid product.keyExists product.keyLocked product.supportEndsInvalid alias.reportedInvalid alias.exists publisher.repositoryInvalid publisher.fieldTooLong publisher.idsIncomplete publisher.repositoryNotFound publisher.githubUnreachable publisher.workflowInvalid publisher.refPatternPrefix publisher.refPatternInvalid publisher.exists graph.vulnerabilityUnknown graph.timeout proposal.evidenceUnknown proposal.evidenceTooLarge proposal.kindInvalid proposal.basisInvalid proposal.notCarryOver proposal.basisMismatch proposal.notPending proposal.sourceSuperseded proposal.ownProposal proposal.fourEyes proposal.personRequired proposal.batchTooLarge proposal.vulnerabilityChanged proposal.reportedChanged proposal.releaseUnknown proposal.evidenceMissing notifications.unavailable notifications.findingsInvalid notifications.tokenInvalid webhook.urlRejected webhook.limitReached webhook.formatUnavailable webhook.headerInvalid webhook.eventTypesInvalid webhook.disabled events.cursorInvalid
detail
required

What went wrong

string
params
required

Values the code’s message needs, e.g. {“field”: “version”}. Only values the caller sent or may see. Empty when the message needs none.

object
key
additional properties
any

Example

{
"code": "notFound"
}
Retry-After
integer
>= 1

Seconds until a request would be allowed again, at least 1

The server runs without a database or object storage; the catalog is unavailable