Dec 2025 - New! Caching input tokens unlocks immediate, automatic ~30% credit savings on supported models
cURL
curl --request POST \ --url http://localhost:3000/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 }, "message": "Setting created!" }
Creates a new instance variable with specified key, value, and permission flags
JWT token passed in x-access-token header
Setting key name
"variable-4"
Setting value
"the value"
Whether setting is admin-only
true
Whether setting can be edited by others
Whether setting is shared across institution
Setting successfully created
Whether the operation was successful
Show child attributes
Setting unique identifier
"687e71b293c797174458e6f2"
Institution ID this setting belongs to
"6631915765bb0a94cfd6ca99"
User ID this setting belongs to
"6430d02554cd4e00403e8b05"
Setting status
active
inactive
"active"
Success message
"Setting created!"
Was this page helpful?