> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vijil.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Persona

> Update an existing persona.

Supports partial updates - only provided fields will be updated.
Requires persona:write permission.



## OpenAPI

````yaml /openapi/api.json put /v1/personas/{id}
openapi: 3.1.0
info:
  title: Vijil Console API (Combined)
  description: Combined OpenAPI specification for all vijil-console microservices.
  version: 0.1.0
servers: []
security: []
tags:
  - name: Teams
    description: Authentication, users, and team management
  - name: Agent Environment
    description: Agent, persona, policy, and harness management
  - name: Diamond
    description: Evaluation management and report retrieval
  - name: Dome
    description: Protection, guardrails, and telemetry
  - name: Red Team
    description: Red team campaigns
paths:
  /v1/personas/{id}:
    put:
      tags:
        - Agent Environment
        - personas
      summary: Update Persona
      description: |-
        Update an existing persona.

        Supports partial updates - only provided fields will be updated.
        Requires persona:write permission.
      operationId: update_persona_v1_personas__id__put
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PersonaUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Persona'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PersonaUpdate:
      properties:
        name:
          anyOf:
            - type: string
              maxLength: 255
              minLength: 1
            - type: 'null'
          title: Name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        role:
          anyOf:
            - type: string
              maxLength: 100
              minLength: 1
            - type: 'null'
          title: Role
        role_description:
          anyOf:
            - type: string
            - type: 'null'
          title: Role Description
        knowledge_level:
          anyOf:
            - $ref: '#/components/schemas/KnowledgeLevel'
            - type: 'null'
        skill_level:
          anyOf:
            - $ref: '#/components/schemas/SkillLevel'
            - type: 'null'
        intent:
          anyOf:
            - $ref: '#/components/schemas/Intent'
            - type: 'null'
        language:
          anyOf:
            - type: string
            - type: 'null'
          title: Language
        access_permissions:
          anyOf:
            - $ref: '#/components/schemas/PersonaAccessPermissions'
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Access Permissions
        is_preset:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Preset
        preset_category:
          anyOf:
            - type: string
            - type: 'null'
          title: Preset Category
        tags:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Tags
        icon_filename:
          anyOf:
            - type: string
            - type: 'null'
          title: Icon Filename
      type: object
      title: PersonaUpdate
      description: Request model for updating a persona. All fields are optional.
    Persona:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        team_id:
          type: string
          format: uuid
          title: Team Id
        name:
          type: string
          title: Name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        role:
          type: string
          title: Role
        role_description:
          anyOf:
            - type: string
            - type: 'null'
          title: Role Description
        knowledge_level:
          $ref: '#/components/schemas/KnowledgeLevel'
          default: intermediate
        skill_level:
          $ref: '#/components/schemas/SkillLevel'
          default: competent
        intent:
          $ref: '#/components/schemas/Intent'
          default: benign
        language:
          type: string
          title: Language
          default: en
        access_permissions:
          anyOf:
            - $ref: '#/components/schemas/PersonaAccessPermissions'
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Access Permissions
        is_preset:
          type: boolean
          title: Is Preset
          default: false
        preset_category:
          anyOf:
            - type: string
            - type: 'null'
          title: Preset Category
        tags:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Tags
        icon_filename:
          anyOf:
            - type: string
            - type: 'null'
          title: Icon Filename
        created_at:
          type: integer
          title: Created At
        updated_at:
          type: integer
          title: Updated At
        created_by:
          type: string
          format: uuid
          title: Created By
      type: object
      required:
        - id
        - team_id
        - name
        - role
        - created_at
        - updated_at
        - created_by
      title: Persona
      description: Domain model for Persona archetype.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    KnowledgeLevel:
      type: string
      enum:
        - beginner
        - intermediate
        - advanced
        - expert
      title: KnowledgeLevel
      description: Knowledge level of the persona.
    SkillLevel:
      type: string
      enum:
        - novice
        - competent
        - proficient
        - expert
      title: SkillLevel
      description: Skill level of the persona.
    Intent:
      type: string
      enum:
        - benign
        - curious
        - adversarial
        - malicious
      title: Intent
      description: Intent type of the persona.
    PersonaAccessPermissions:
      properties:
        privilege_level:
          $ref: '#/components/schemas/PrivilegeLevel'
          default: user
        allowed_agents:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Allowed Agents
        allowed_tools:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Allowed Tools
        restricted_actions:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Restricted Actions
        data_access_scope:
          anyOf:
            - $ref: '#/components/schemas/DataAccessScope'
            - type: 'null'
      type: object
      title: PersonaAccessPermissions
      description: >-
        Access permissions for persona - used for test scenario definition.


        NOTE: This is NOT for actual RBAC enforcement - it defines expected
        access

        for generating test cases to verify agent access control.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    PrivilegeLevel:
      type: string
      enum:
        - guest
        - user
        - power_user
        - admin
        - super_admin
      title: PrivilegeLevel
      description: Privilege level for persona access control testing.
    DataAccessScope:
      type: string
      enum:
        - own
        - team
        - organization
        - global
      title: DataAccessScope
      description: Data access scope for persona testing.

````