{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cogram-com/json-schema/cogram-com-user-update-v1-schema.json",
  "title": "UserUpdateV1",
  "description": "Update user roles request.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cogram-com-users-api-openapi.yml#/components/schemas/UserUpdateV1",
  "properties": {
    "roles": {
      "items": {
        "$ref": "#/$defs/AssignableUserRoleV1"
      },
      "type": "array",
      "title": "Roles",
      "description": "Replaces the current role set. Must be non-empty."
    }
  },
  "type": "object",
  "required": [
    "roles"
  ],
  "$defs": {
    "AssignableUserRoleV1": {
      "type": "string",
      "enum": [
        "MEMBER",
        "ADMIN"
      ],
      "title": "AssignableUserRoleV1",
      "description": "Roles that can be assigned via the External API."
    }
  }
}