Skip to content

Toggle Source

PUT
/api/settings/sources/{source_id}
curl --request PUT \
--url 'http://localhost:8000/api/settings/sources/example?enabled=true' \
--header 'Authorization: Bearer <token>'

Enable or disable a data source.

Operator intent is authoritative: enabling a source also force-enables its health row (clears any auto_disabled state and pins manual_override) so the health layer can never auto-disable a source the operator just enabled.

source_id
required
Source Id
string
enabled
Enabled
boolean
default: true

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}