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,
  "upload": {
    "acknowledged": true,
    "modifiedCount": 0,
    "upsertedId": null,
    "upsertedCount": 0,
    "matchedCount": 1
  },
  "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

Response

200 - application/json

Upload successfully updated

The response is of type object.