> ## 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.

# Suspend a tenant

> Flips the tenant's `status` to 'suspended'. Future non-GET requests from credentials in this tenant are rejected at the auth middleware with HTTP 403 `tenant_suspended`. Reads pass through; platform admins bypass. Idempotent: re-suspending a suspended tenant is a no-op. Emits a `tenant.suspend` audit row.



## OpenAPI

````yaml /openapi.json post /admin/tenants/{id}/suspend
openapi: 3.1.0
info:
  title: Marfa API
  version: 4.2.0
  description: Typed data layer for structured personal data
servers: []
security: []
paths:
  /admin/tenants/{id}/suspend:
    post:
      tags:
        - Admin
      summary: Suspend a tenant
      description: >-
        Flips the tenant's `status` to 'suspended'. Future non-GET requests from
        credentials in this tenant are rejected at the auth middleware with HTTP
        403 `tenant_suspended`. Reads pass through; platform admins bypass.
        Idempotent: re-suspending a suspended tenant is a no-op. Emits a
        `tenant.suspend` audit row.
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
      responses:
        '200':
          description: Updated tenant row
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                    nullable: true
                  created_at:
                    type: string
                  status:
                    type: string
                    enum:
                      - active
                      - suspended
                required:
                  - id
                  - name
                  - created_at
                  - status
        '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
        '404':
          description: Tenant not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - not_found
                      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_...)

````