Skip to main content
PUT
/
api
/
user
/
upload
/
{uploadId}
Update an existing upload file's metadata
curl --request PUT \
  --url https://pria.praxislxp.com/api/user/upload/{uploadId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "originalname": "markdown_render_with_error_boundary",
  "status": "selected",
  "is_private": true,
  "institution": "<string>"
}'
{
  "success": true,
  "message": "upload updated!"
}

Authorizations

Authorization
string
header
required

JWT token passed in x-access-token header

Path Parameters

uploadId
string
required

The unique identifier of the upload to update

Body

application/json
originalname
string

The original name of the uploaded file

Example:

"markdown_render_with_error_boundary"

status
enum<string>

The new status for the upload - "active" (default status), "selected" (file will be included in RAG searches) or "deleted" (soft deleted, will be hidden from lists and RAG)

Available options:
active,
selected,
deleted
Example:

"selected"

is_private
boolean

Value used only when status is 'selected'. Determines whether the file will remain confidential; will not be cited as source or its location not be made available to users.

Example:

true

institution
string

The ID of the institution to share the file with

Response

Upload successfully updated

success
boolean

Indicates if the operation was successful

Example:

true

message
string

Success message

Example:

"upload updated!"