{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/calypsoai-com/json-schema/calypsoai-com-post-auth-roles-body-schema.json",
  "title": "PostAuthRolesBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/calypsoai-com-auth-api-openapi.yml#/components/schemas/PostAuthRolesBody",
  "properties": {
    "isDefault": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "description": "Set the new role as the default.",
      "title": "Isdefault"
    },
    "name": {
      "description": "Name of the role. Requires case insensitive uniqueness.",
      "maxLength": 100,
      "minLength": 1,
      "title": "Name",
      "type": "string"
    },
    "permissions": {
      "description": "Permissions to grant to users with the created role.",
      "items": {
        "type": "string"
      },
      "title": "Permissions",
      "type": "array"
    },
    "projectId": {
      "anyOf": [
        {
          "format": "uuid",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Assign the created role to a given project. If not provided, the role is associated with the organization.",
      "title": "Projectid"
    }
  },
  "required": [
    "name",
    "permissions"
  ],
  "type": "object"
}