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

# Update Agent Preferences

> Update the current user's agent preferences.



## OpenAPI

````yaml /api-reference/openapi.json put /users/me/agent-preferences
openapi: 3.1.0
info:
  title: Aspect Platform API
  description: A FastAPI application for Aspect Platform functionality
  version: 0.0.0
servers:
  - url: https://api.aspect.inc
security:
  - BearerAuth: []
  - ApiKeyAuth: []
paths:
  /users/me/agent-preferences:
    put:
      tags:
        - Users
      summary: Update Agent Preferences
      description: Update the current user's agent preferences.
      operationId: put_Users_users_me_agent_preferences
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgentPreferences'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentPreferences'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AgentPreferences:
      properties:
        tool_approvals:
          additionalProperties:
            $ref: '#/components/schemas/AgentToolApprovalBehavior'
          type: object
          title: Tool Approvals
          description: Approval behavior keyed by agent tool name
      type: object
      title: AgentPreferences
      description: Per-user preferences for agent behavior.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AgentToolApprovalBehavior:
      type: string
      enum:
        - always_ask
        - always_allow
      title: AgentToolApprovalBehavior
      description: User preference for approval-gated agent tool calls.
    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
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT in Authorization header. 'Bearer ' prefix optional.
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Aspect API key (sk_...) in Authorization header. 'Bearer ' optional.

````