Skip to main content
POST
/
api
/
admin
/
deleteHistories
Delete multiple histories
curl --request POST \
  --url https://pria.praxislxp.com/api/admin/deleteHistories \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "ids": [
    "<string>"
  ],
  "institution": "<string>",
  "user": "<string>"
}
'
{
  "success": true,
  "deletedCount": 123
}

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Body

application/json
ids
string[]

Array of history IDs to delete

institution
string

Delete all histories for institution

user
string

Delete all histories for user

Response

200 - application/json

Histories deleted successfully

success
boolean
deletedCount
integer

Number of records deleted