PUT
/
api
/
admin
/
userInstitution
/
{userId}
Update user institution account type
curl --request PUT \
  --url https://pria.praxislxp.com/api/admin/userInstitution/{userId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "accountType": "admin",
  "entitlements": [
    "institutions.list",
    "institutions.add",
    "users.list",
    "users.edit"
  ],
  "status": "active"
}'
{
  "success": true,
  "data": {
    "acknowledged": true,
    "modifiedCount": 0,
    "upsertedId": null,
    "upsertedCount": 0,
    "matchedCount": 1
  },
  "message": "User Institution updated!"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

userId
string
required

The unique identifier of the user

Body

application/json

Response

User institution successfully updated

The response is of type object.