Create a new instance variable
curl --request POST \
--url https://pria.praxislxp.com/api/user/setting \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"key": "variable-4",
"value": "the value",
"admin_only": true,
"editable_others": true,
"institution_shared": true
}
'{
"success": true,
"data": {
"_id": "687e71b293c797174458e6f2",
"key": "variable-4",
"value": "the value",
"institution": "6631915765bb0a94cfd6ca99",
"user": "6430d02554cd4e00403e8b05",
"status": "active",
"admin_only": true,
"institution_shared": true,
"editable_others": true,
"created": "2023-11-07T05:31:56Z",
"__v": 0
},
"message": "Setting created!"
}Setting
Create a new instance variable
Creates a new setting within the authenticated user’s institution. The institution and user fields are auto-populated from the auth context. A duplicate key within the same institution returns a 400 error.
POST
/
api
/
user
/
setting
Create a new instance variable
curl --request POST \
--url https://pria.praxislxp.com/api/user/setting \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"key": "variable-4",
"value": "the value",
"admin_only": true,
"editable_others": true,
"institution_shared": true
}
'{
"success": true,
"data": {
"_id": "687e71b293c797174458e6f2",
"key": "variable-4",
"value": "the value",
"institution": "6631915765bb0a94cfd6ca99",
"user": "6430d02554cd4e00403e8b05",
"status": "active",
"admin_only": true,
"institution_shared": true,
"editable_others": true,
"created": "2023-11-07T05:31:56Z",
"__v": 0
},
"message": "Setting created!"
}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
Setting key name (must be unique within the institution)
Example:
"variable-4"
Setting value (optional)
Example:
"the value"
Whether setting is admin-only
Example:
true
Whether setting can be edited by others
Example:
true
Whether setting is shared across institution
Example:
true
Was this page helpful?
⌘I