Skip to content

ButterIX v1 is out: versions, multiple languages, Ask AI, and a per-site MCP server, all built in. →

Update content source

PATCHhttps://api.butterix.com/v1/sites/:site/sources/:id

Requires the editor role. Only the fields you pass are updated; websites are then fetched again.

Authentication

AuthorizationBearer

An organization API key, created in the console under Organization settings → API Keys, starting with biti_. It acts as editor and can't do anything that requires admin.

biti_sessionstring

The HttpOnly session cookie set on login. Requests that change data must be same-origin (the Origin header is checked) to prevent CSRF.

Path parameters

sitestringRequired

Site slug or id

idstringRequired

Content source id

Request

This endpoint expects an object.
titlestringOptional<=200 characters
urlstringOptional
documentstringOptional<=500000 characters
pathslist of stringsOptional<=20 items
excludelist of stringsOptional<=20 items
maxPagesintegerOptional1-500
refreshenumOptional
Allowed values:

Response

Updated content source
idstringOptional
kindenumOptional
Allowed values:
titlestringOptional
urlstringOptional
configobjectOptional

Fetch settings, website only

pathslist of stringsOptional
excludelist of stringsOptional
maxPagesintegerOptional
refreshenumOptional
Allowed values:
statusenumOptional
Allowed values:
errorstringOptional

Why the last fetch failed

pageCountintegerOptional
createdAtintegerOptional
refreshedAtinteger or nullOptional

When the content was last updated

nextAtinteger or nullOptional

When it's fetched next

pageslist of objectsOptional

Pages, 500 at most; not in lists

urlstringOptional
titlestringOptional
sizeintegerOptional

Number of characters of text

documentstringOptional

Markdown content, document only; not in lists

Errors