Skip to main content
PUT
/
api
/
user
/
upload
/
{fileId}
/
swap-asset
Swap (replace) the on-disk asset for an existing Upload
curl --request PUT \
  --url https://pria.praxislxp.com/api/user/upload/{fileId}/swap-asset \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form updateOriginalName=false
{
  "success": true,
  "message": "<string>",
  "data": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.praxis-ai.com/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

fileId
string
required

The Upload _id to swap the asset for

Pattern: ^[0-9a-fA-F]{24}$

Body

file
file

The replacement asset (max 500 MB)

updateOriginalName
boolean
default:false

When true, rewrite the displayed originalname to the uploaded file's name. The on-disk filename and file_url always stay stable.

Response

Asset swapped successfully. Embeddings are preserved.

success
boolean
Example:

true

message
string
data
object

Updated Upload document