cURL
curl --request POST \ --url https://pria.praxislxp.com/api/user/setting \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "key": "variable-4", "value": "the value", "admin_only": true, "editable_others": true, "institution_shared": true }'
{ "success": true, "setting": { "_id": "687e71b293c797174458e6f2", "key": "variable-4", "value": "the value", "institution": "6631915765bb0a94cfd6ca99", "user": "6430d02554cd4e00403e8b05", "status": "active", "admin_only": true, "institution_shared": true, "editable_others": true, "__v": 0 }, "message": "Setting created!" }
Creates a new instance variable with specified key, value, and permission flags
JWT token passed in x-access-token header
Setting successfully created
The response is of type object.
object
Was this page helpful?