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

# Update Dream Configuration

> Enable or disable Synthesis (reflection) for a project, or change the reflection mode.



## OpenAPI

````yaml patch /api/v1/orgs/organizations/{org_id}/projects/{project_id}/dream/config/
openapi: 3.0.1
info:
  title: Mem0 API Docs
  description: mem0.ai API Docs
  contact:
    email: support@mem0.ai
  license:
    name: Apache 2.0
  version: v1
servers:
  - url: https://api.mem0.ai/
security:
  - ApiKeyAuth: []
paths:
  /api/v1/orgs/organizations/{org_id}/projects/{project_id}/dream/config/:
    patch:
      tags:
        - dream
      summary: Update Dream configuration
      description: >-
        Enable or disable Synthesis (reflection) for the project, or change the
        reflection mode. Requires a Pro or Enterprise (CUSTOM) plan and
        organization-owner permission. Synthesis is forward-only: after
        enabling, it only synthesizes memories added from that point on.
      operationId: update_dream_config
      parameters:
        - name: org_id
          in: path
          required: true
          description: Unique identifier of the organization.
          schema:
            type: string
        - name: project_id
          in: path
          required: true
          description: Unique identifier of the project.
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                reflection_enabled:
                  type: boolean
                  description: Turn background synthesis on or off.
                reflection_mode:
                  type: string
                  description: Synthesis execution mode.
                  enum:
                    - batch
                    - direct
      responses:
        '200':
          description: Updated configuration.
          content:
            application/json:
              schema:
                type: object
                properties:
                  config:
                    type: object
                    properties:
                      reflection_enabled:
                        type: boolean
                        description: >-
                          Whether background synthesis (reflection) is enabled
                          for the project.
                      reflection_enabled_at:
                        type: string
                        description: >-
                          When synthesis was last enabled. Synthesis only
                          considers memories created on or after this time
                          (forward-only).
                        format: date-time
                        nullable: true
                      reflection_mode:
                        type: string
                        description: Synthesis execution mode.
                        enum:
                          - batch
                          - direct
                  entitlements:
                    type: object
                    properties:
                      plan:
                        type: string
                        description: >-
                          Resolved billing tier for the project (e.g. `free`,
                          `pro`, `custom`).
                      reflection_interval_days:
                        type: integer
                        description: >-
                          How often synthesis runs for this plan, in days (Pro
                          weekly, Enterprise daily).
                      features:
                        type: object
                        properties: {}
                        description: >-
                          Per-feature entitlement snapshot, keyed by Dream
                          feature (e.g. `dream_reflection`, `dream_tab`,
                          `dream_preview`).
                        additionalProperties:
                          type: object
                          properties:
                            entitled:
                              type: boolean
                              description: Whether the plan is entitled to the feature.
                            killed:
                              type: boolean
                              description: >-
                                Whether the feature is globally disabled by a
                                kill switch.
                            enabled:
                              type: boolean
                              description: >-
                                Effective state: entitled AND not killed AND
                                turned on.
        '400':
          description: Validation error (e.g. a field the plan is not entitled to change).
        '403':
          description: >-
            Not entitled on the current plan (`upgrade_required: true`), or the
            caller is not an organization owner.
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        API key authentication. Prefix your Mem0 API key with 'Token '. Example:
        'Token your_api_key'

````