Knowledge
Persist knowledge folders
Upload a tree file and persist it into the workspace knowledge graph.
POST
Use this route to import a tree file that you generated with Initialize knowledge folders or edited before upload.
Send the file as
multipart/form-data with the form field name file.Headers
Bearer token containing your Fini workspace API key. Format:
Bearer fini_... The key needs write scope.multipart/form-dataBody parameters
Tree file generated from the initialize route or edited by your team before import.
Response
Import status string.
Human-readable import message.
Errors
400 Bad Request
400 Bad Request
The request is malformed or the
file field is missing from the multipart payload.401 Unauthorized
401 Unauthorized
403 Forbidden
403 Forbidden
The API key does not include the
write scope.500 Internal Server Error
500 Internal Server Error
Fini failed while persisting the uploaded tree file. Retry once, then validate the file format before trying again.

