PUT
/
api
/
user
/
setting
/
{settingId}
Update an instance variable
curl --request PUT \
  --url https://pria.praxislxp.com/api/user/setting/{settingId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "variable-2",
  "value": "variable value ",
  "admin_only": true,
  "editable_others": true,
  "institution_shared": true
}'
{
  "success": true,
  "setting": {
    "acknowledged": true,
    "modifiedCount": 0,
    "upsertedId": null,
    "upsertedCount": 0,
    "matchedCount": 1
  },
  "message": "Setting updated!"
}

Authorizations

Authorization
string
header
required

JWT token passed in x-access-token header

Path Parameters

settingId
string
required

The unique identifier of the setting to update

Body

application/json

Response

Setting successfully updated

The response is of type object.