Skip to main content
PATCH
/
api
/
admin
/
institution
/
{id}
/
account
Reassign an institution to a different account
curl --request PATCH \
  --url https://pria.praxislxp.com/api/admin/institution/{id}/account \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "account": "<string>"
}
'
{
  "success": true,
  "data": {
    "_id": "<string>",
    "name": "<string>",
    "status": "<string>",
    "ainame": "<string>",
    "lastActivityAt": "2023-11-07T05:31:56Z",
    "account": {
      "_id": "<string>",
      "name": "<string>"
    }
  },
  "message": "<string>"
}

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Path Parameters

id
string
required

Institution ID to reassign

Body

application/json
account
string | null
required

Target account ID (or null to detach — super-only)

Response

Institution account updated successfully

success
boolean
data
object
message
string