Attach a document to one of the hub's notes
Attaches a document to one of the hub's notes; note ids come from notes[].id in the hub detail. Send the file as padded base64 in fileBase64, up to 10,485,760 characters (about 7.5 MB of file data); allowed types are PDF, plain text, CSV, Word (.doc and .docx) and RTF. The file is stored for download only — it is not parsed into the hub's knowledge, so put the text you want the hub to learn in the note's own text. A note holds one attachment: a second upload answers 409 ATTACHMENT_ALREADY_EXISTS, and there is no replace endpoint. The response does not include a download URL; fetch one with GET /business/knowledge-hubs/{hubId}/attachments/{noteId}. The hub's owner can upload, and so can anyone on the team when it is the team's shared hub, but not while the hub is processing.
Errors:
- 404 KNOWLEDGE_HUB_NOT_FOUND — No hub with that id, it was deleted, or it belongs to another team.
- 404 NOTE_NOT_FOUND — No note with that id on this hub.
- 409 ATTACHMENT_ALREADY_EXISTS — The note already holds a document; delete the note's attachment first.
- 409 KNOWLEDGE_HUB_NOT_READY — The hub is processing a build, update or refresh.
- 403 KNOWLEDGE_HUB_OWNER_ONLY — You can read this teammate's hub, but it is not your team's shared hub, so only its owner can upload attachments.
- 422 VALIDATION_FAILED — Malformed base64, a file over the size cap, an unsupported contentType, or a missing field.
- 500 UNEXPECTED_ERROR — The file could not be stored; retry.
- 429 RATE_LIMITED — More than 30 knowledge-hub/campaign requests in a minute (or 1000 in a day). Knowledge hubs share the campaigns bucket.
Requires one of the following token scopes: campaigns.
Request
- Base URL: https://api.tryfuse.ai/api/v1
- URL: https://api.tryfuse.ai/api/v1/business/knowledge-hubs/{hubId}/attachments
- Auth: HTTP basic
Path parameters
24-character hex id of the knowledge hub (from GET /business/knowledge-hubs).
Request body
Response
Success
Changes
No recorded changes to this operation across all 1 revision of this API.