Skip to main content
PUT
/
api
/
user
/
reingest
/
{fileId}
Re-ingest file from source URL
curl --request PUT \
  --url https://pria.praxislxp.com/api/user/reingest/{fileId} \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "skipIndexing": false
}
'
import requests

url = "https://pria.praxislxp.com/api/user/reingest/{fileId}"

payload = { "skipIndexing": False }
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}

response = requests.put(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'PUT',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({skipIndexing: false})
};

fetch('https://pria.praxislxp.com/api/user/reingest/{fileId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://pria.praxislxp.com/api/user/reingest/{fileId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'skipIndexing' => false
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-access-token: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://pria.praxislxp.com/api/user/reingest/{fileId}"

payload := strings.NewReader("{\n \"skipIndexing\": false\n}")

req, _ := http.NewRequest("PUT", url, payload)

req.Header.Add("x-access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.put("https://pria.praxislxp.com/api/user/reingest/{fileId}")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"skipIndexing\": false\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://pria.praxislxp.com/api/user/reingest/{fileId}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"skipIndexing\": false\n}"

response = http.request(request)
puts response.read_body
{
  "success": true,
  "message": "File re-ingested from URL",
  "data": {
    "_id": "<string>",
    "filename": "<string>",
    "originalname": "<string>",
    "mimetype": "<string>",
    "created": "2023-11-07T05:31:56Z",
    "filesize": 123,
    "thumbnail": "<string>",
    "user": "<string>",
    "institution": "<string>",
    "account_shared": true,
    "file_summary": "<string>",
    "file_title": "<string>",
    "file_url": "<string>",
    "tokens_used": 123,
    "is_public": false,
    "is_private": false,
    "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",
    "vaultHealthScore": 123,
    "fileOnDisk": true,
    "owner_data": {
      "email": "jsmith@example.com",
      "fname": "<string>",
      "lname": "<string>",
      "institution": "<string>"
    },
    "institution_data": {
      "name": "<string>",
      "ainame": "<string>"
    },
    "institution_name": "<string>",
    "institution_display_name": "<string>",
    "index": 123,
    "collection": "<string>",
    "collection_path": [
      {
        "_id": "<string>",
        "name": "<string>",
        "color": "<string>"
      }
    ]
  }
}
{
"success": false,
"message": "<string>"
}
{
"success": false,
"message": "<string>",
"error": "<string>"
}

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Path Parameters

fileId
string
required

The file ID to re-ingest

Body

application/json
skipIndexing
boolean
default:false

When true, re-downloads the content but skips RAG embedding generation. The file is set to status 'active' with no new embeddings. For YouTube URLs without captions, this allows creating a metadata-only file instead of failing.

Response

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

Successful re-ingestion

success
boolean
Example:

true

message
string
Example:

"File re-ingested from URL"

data
object