Update file source
Sources
Update file source
Replace a file source’s content, rename it, or both. At least one of name or file must be provided.
Base URL: https://files.chatbase.co/api/v2 — this endpoint uses a different host from all other Sources endpoints.
PUT
Update file source
Authorizations
API key from your account settings
Path Parameters
The agent ID
Minimum string length:
1Example:
"5QHA6VB-DIAbBhxwqxfdi"
The source ID
Minimum string length:
1Example:
"a63a69a5-e7a9-4757-b73b-2041854d435d"
Body
multipart/form-data
Response
Updated file source. If the file was replaced and previously trained, status becomes updated.
Source ID
Source type
Available options:
link, file, qna, notionPage, text Source name or URL
Source size in bytes
ISO 8601 creation timestamp
Training status of the source
Available options:
untrained, trained, toBeDeleted, updated Link-specific metadata. Present only for type="link".
- Option 1
- Option 2