Skip to main content
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

x-access-token
string
header
required

JWT token passed in x-access-token header

Path Parameters

fileId
string
required

The file ID to edit

Body

application/json
content
string
required

The new full text content for the file (non-empty).

Example:

"# Updated notes\n\nThe revised body of the document."

Response

Content saved; the file has been re-queued for full reprocessing

success
boolean
Example:

true

reprocessing
boolean
Example:

true

message
string
Example:

"Content saved — re-indexing search and knowledge graph."

uploadId
string
Example:

"68566d7c4ec8e0cb02907997"