Skip to main content
POST
/
v2
/
knowledge
/
public
/
tree
/
persist
curl --request POST \
  --url 'https://api-prod.usefini.com/v2/knowledge/public/tree/persist' \
  --header 'Authorization: Bearer fini_your_api_key' \
  --form 'file=@fini-tree-template.csv'
{
  "status": "<string>",
  "message": "<string>"
}
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

Authorization
string
required
Bearer token containing your Fini workspace API key. Format: Bearer fini_... The key needs write scope.
Content-Type
string
required
multipart/form-data

Body parameters

file
file
required
Tree file generated from the initialize route or edited by your team before import.

Response

status
string
Import status string.
message
string
Human-readable import message.
curl --request POST \
  --url 'https://api-prod.usefini.com/v2/knowledge/public/tree/persist' \
  --header 'Authorization: Bearer fini_your_api_key' \
  --form 'file=@fini-tree-template.csv'

Errors

The request is malformed or the file field is missing from the multipart payload.
The API key is missing, malformed, revoked, or invalid.
The API key does not include the write scope.
Fini failed while persisting the uploaded tree file. Retry once, then validate the file format before trying again.