Edit a text file's content and reprocess it
curl --request PUT \
--url https://pria.praxislxp.com/api/user/files/{fileId}/content \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"content": "# Updated notes\n\nThe revised body of the document."
}
'{
"success": true,
"reprocessing": true,
"message": "Content saved — re-indexing search and knowledge graph.",
"uploadId": "68566d7c4ec8e0cb02907997"
}IP Vault
Edit a text file's content and reprocess it
Replaces the content of an existing text-editable file (Markdown, plain
text, HTML, and common code/data formats) in place, then re-runs the
FULL ingestion pipeline (extract → chunk → sanitize → embed → finalize)
so search and the knowledge graph reflect the new text. The file’s id,
filename, and file_url stay byte-identical so any published links keep
resolving.
Only text-editable file types are accepted — non-text files (PDFs, images, office documents, etc.) return 415. The write is confined to the caller’s own vault.
PUT
/
api
/
user
/
files
/
{fileId}
/
content
Edit a text file's content and reprocess it
curl --request PUT \
--url https://pria.praxislxp.com/api/user/files/{fileId}/content \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"content": "# Updated notes\n\nThe revised body of the document."
}
'{
"success": true,
"reprocessing": true,
"message": "Content saved — re-indexing search and knowledge graph.",
"uploadId": "68566d7c4ec8e0cb02907997"
}Authorizations
JWT token passed in x-access-token header
Path Parameters
The file ID to edit
Body
application/json
The new full text content for the file (non-empty).
Example:
"# Updated notes\n\nThe revised body of the document."
Was this page helpful?
⌘I