AdminKnowledgeController_update
PATCH
/v1/admin/knowledge/sources/{id}
const url = 'https://example.com/v1/admin/knowledge/sources/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"content":"example","enabled":true,"name":"example","removeSelectors":["example"],"sitemapUrl":"example","type":"sitemap","urls":["example"],"userAgent":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/v1/admin/knowledge/sources/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "content": "example", "enabled": true, "name": "example", "removeSelectors": [ "example" ], "sitemapUrl": "example", "type": "sitemap", "urls": [ "example" ], "userAgent": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
content
Body of a text source (≤ 200k chars).
string
enabled
boolean
name
string
removeSelectors
Array<string>
sitemapUrl
string
type
string
urls
Array<string>
userAgent
string
Responses
Section titled “Responses”Media typeapplication/json
object
createdAt
required
string format: date-time
createdBy
string
id
required
string
updatedAt
required
string format: date-time
updatedBy
string
content
string
enabled
required
boolean
lastRunAt
string format: date-time
lastStats
object
name
required
string
removeSelectors
required
Array<string>
sitemapUrl
string
type
required
string
urls
required
Array<string>
Example generated
{ "createdAt": "2026-04-15T12:00:00Z", "createdBy": "example", "id": "example", "updatedAt": "2026-04-15T12:00:00Z", "updatedBy": "example", "content": "example", "enabled": true, "lastRunAt": "2026-04-15T12:00:00Z", "lastStats": {}, "name": "example", "removeSelectors": [ "example" ], "sitemapUrl": "example", "type": "example", "urls": [ "example" ]}