{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/AddManagedBy", "title": "AddManagedBy", "type": "object", "additionalProperties": false, "description": "Schema for adding an admin. Either 'id' or 'email' must be provided.", "properties": { "orgId": { "type": "string", "description": "The admin's organization ID." }, "type": { "type": "string", "description": "Type of administrator.", "enum": [ "user" ] }, "id": { "type": "string", "description": "Entryuuid of the user." }, "email": { "type": "string", "description": "Email of the user." }, "roles": { "type": "array", "description": "The roles assigned to the admin.", "items": { "type": "string" }, "minItems": 1, "uniqueItems": true } }, "required": [ "orgId", "type", "roles" ] }