Skip to main content
PUT
/
api
/
user
/
reload
/
{fileId}
Reload file content
curl --request PUT \
  --url https://pria.praxislxp.com/api/user/reload/{fileId} \
  --header 'x-access-token: <api-key>'
{
  "success": true,
  "message": "File reloaded successfully!",
  "data": {
    "_id": "<string>",
    "filename": "<string>",
    "originalname": "<string>",
    "mimetype": "<string>",
    "created": "2023-11-07T05:31:56Z",
    "filesize": 123,
    "status": "inactive",
    "thumbnail": "<string>",
    "user": "<string>",
    "institution": "<string>",
    "account_shared": true,
    "file_summary": "<string>",
    "file_title": "<string>",
    "file_url": "<string>",
    "tokens_used": 123,
    "is_private": true,
    "file_dimensions": "<string>",
    "file_authors": "<string>",
    "embeddings_model": "<string>",
    "summary_model": "<string>",
    "image_analysis_model": "<string>",
    "googleDriveFileId": "<string>",
    "googleDriveModifiedTime": "2023-11-07T05:31:56Z",
    "ragHitCount": 0,
    "lastRagHitAt": "2023-11-07T05:31:56Z",
    "garbageScore": 123,
    "owner_data": {
      "email": "jsmith@example.com",
      "fname": "<string>",
      "lname": "<string>",
      "institution": "<string>"
    },
    "institution_data": {
      "name": "<string>",
      "ainame": "<string>"
    },
    "index": 123
  }
}

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Path Parameters

fileId
string
required

The file ID to reload

Response

File reload result. Check the success field - async RAG errors also return HTTP 200 with success: false.

success
boolean
Example:

true

message
string
Example:

"File reloaded successfully!"

data
object