Skip to main content
PATCH
/
api
/
user
/
files
/
{fileId}
/
confidential
Update file confidential status
curl --request PATCH \
  --url https://pria.praxislxp.com/api/user/files/{fileId}/confidential \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "confidential": true
}
'
{
  "success": true,
  "message": "File marked as confidential",
  "is_private": true
}

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Path Parameters

fileId
string
required

The file ID to update

Body

application/json
confidential
boolean
required

Whether the file should be marked as confidential (is_private)

Example:

true

Response

File confidential status updated

success
boolean
Example:

true

message
string
Example:

"File marked as confidential"

is_private
boolean

The updated confidential status of the file

Example:

true