cURL
curl --request PUT \ --url https://pria.praxislxp.com/api/admin/userInstitution/{userId} \ --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!" }
Updates the account type for a specific user in the institution
The unique identifier of the user
The account type to update for the user
"admin"
Array of entitlement permissions for the user institution
[ "institutions.list", "institutions.add", "users.list", "users.edit"]
The account status, active, pending
"active"
User institution successfully updated
Indicates if the operation was successful
true
Show child attributes
Success message
"User Institution updated!"
Was this page helpful?