Enroll users into an institution
curl --request POST \
--url https://pria.praxislxp.com/api/admin/userInstitutions/enroll \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"institution": "67826dfe5d387207aabd6fc1",
"users": [
"67826dfe5d387207aabd6fc1",
"67826dfe5d387207aabd6fc2"
],
"accountType": "user",
"entitlements": [
"institutions.list",
"users.list",
"users.edit"
]
}
'{
"success": true,
"created": 3,
"skipped": 1,
"message": "Enrolled 3 user(s). Skipped 1 (already enrolled or invalid)."
}Admin Entitlements
Enroll users into an institution
Creates user-institution memberships for the specified users. Skips users who are already enrolled or invalid. Requires users.add entitlement for the target institution.
POST
/
api
/
admin
/
userInstitutions
/
enroll
Enroll users into an institution
curl --request POST \
--url https://pria.praxislxp.com/api/admin/userInstitutions/enroll \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"institution": "67826dfe5d387207aabd6fc1",
"users": [
"67826dfe5d387207aabd6fc1",
"67826dfe5d387207aabd6fc2"
],
"accountType": "user",
"entitlements": [
"institutions.list",
"users.list",
"users.edit"
]
}
'{
"success": true,
"created": 3,
"skipped": 1,
"message": "Enrolled 3 user(s). Skipped 1 (already enrolled or invalid)."
}Documentation Index
Fetch the complete documentation index at: https://docs.praxis-ai.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
JWT token passed in x-access-token header
Body
application/json
Institution ID to enroll users into
Pattern:
^[0-9a-fA-F]{24}$Example:
"67826dfe5d387207aabd6fc1"
Array of user IDs to enroll
Pattern:
^[0-9a-fA-F]{24}$Example:
[
"67826dfe5d387207aabd6fc1",
"67826dfe5d387207aabd6fc2"
]Role for the new memberships
Available options:
user, admin Example:
"user"
Admin entitlements to grant (only relevant when accountType is admin)
Example:
[
"institutions.list",
"users.list",
"users.edit"
]Response
Users enrolled successfully
Was this page helpful?
⌘I