{
  "$id": "https://curveballjs.org/schemas/a12nserver/principal-edit.json",
  "$schema": "https://json-schema.org/draft/2019-09/schema",
  "additionalProperties": false,
  "description": "This is the request body used for editing principals.",
  "properties": {
    "_links": {},
    "active": {
      "type": "boolean"
    },
    "createdAt": {
      "readOnly": true
    },
    "modifiedAt": {
      "readOnly": true
    },
    "nickname": {
      "minLength": 3,
      "type": "string"
    },
    "privileges": {
      "readOnly": true
    },
    "type": {
      "enum": [
        "user",
        "app",
        "group"
      ]
    }
  },
  "required": [
    "nickname",
    "active",
    "type"
  ],
  "type": "object"
}