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

# Replace the current tenant's configuration

> Overwrites the tenant's config with the supplied object — full replacement, not merge. The accepted shape carries the optional `enforcement` block (`strict_mode`, `source_allowlist`, `source_filter`) plus the per-tenant cleanup-job overrides (`audit_retention_days`, `event_log_retention_hours`, `trash_retention_days`). Cleanup-job override values must be non-negative — `0` disables the corresponding job for this tenant.

Admin or tenant_admin. See [Schema enforcement](/concepts/schema-enforcement).



## OpenAPI

````yaml /openapi.json put /tenants/current/config
openapi: 3.1.0
info:
  title: Marfa API
  version: 4.2.0
  description: Typed data layer for structured personal data
servers: []
security: []
paths:
  /tenants/current/config:
    put:
      tags:
        - Tenants
      summary: Replace the current tenant's configuration
      description: >-
        Overwrites the tenant's config with the supplied object — full
        replacement, not merge. The accepted shape carries the optional
        `enforcement` block (`strict_mode`, `source_allowlist`, `source_filter`)
        plus the per-tenant cleanup-job overrides (`audit_retention_days`,
        `event_log_retention_hours`, `trash_retention_days`). Cleanup-job
        override values must be non-negative — `0` disables the corresponding
        job for this tenant.


        Admin or tenant_admin. See [Schema
        enforcement](/concepts/schema-enforcement).
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                enforcement:
                  type: object
                  properties:
                    strict_mode:
                      type: object
                      properties:
                        types:
                          type: array
                          items:
                            type: string
                      required:
                        - types
                    source_allowlist:
                      type: object
                      properties:
                        types:
                          type: array
                          items:
                            type: string
                        sources:
                          type: array
                          items:
                            type: string
                      required:
                        - types
                        - sources
                    source_filter:
                      type: object
                      properties:
                        types:
                          type: array
                          items:
                            type: string
                        sources:
                          type: array
                          items:
                            type: string
                      required:
                        - types
                        - sources
                audit_retention_days:
                  type: integer
                  minimum: 0
                event_log_retention_hours:
                  type: integer
                  minimum: 0
                trash_retention_days:
                  type: integer
                  minimum: 0
      responses:
        '200':
          description: Tenant config updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  enforcement:
                    type: object
                    properties:
                      strict_mode:
                        type: object
                        properties:
                          types:
                            type: array
                            items:
                              type: string
                        required:
                          - types
                      source_allowlist:
                        type: object
                        properties:
                          types:
                            type: array
                            items:
                              type: string
                          sources:
                            type: array
                            items:
                              type: string
                        required:
                          - types
                          - sources
                      source_filter:
                        type: object
                        properties:
                          types:
                            type: array
                            items:
                              type: string
                          sources:
                            type: array
                            items:
                              type: string
                        required:
                          - types
                          - sources
                  audit_retention_days:
                    type: integer
                    minimum: 0
                  event_log_retention_hours:
                    type: integer
                    minimum: 0
                  trash_retention_days:
                    type: integer
                    minimum: 0
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - validation_error
                          - missing_required_field
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                      - code
                      - message
                required:
                  - error
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - unauthorized
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                      - code
                      - message
                required:
                  - error
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - forbidden
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                      - code
                      - message
                required:
                  - error
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key or OAuth Token
      description: Pass an API key (marfa_k1_...) or OAuth access token (marfa_at_...)

````