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

# Turns transactional emails on or off.

> Send an object with a Settings list. Each item has Key and IsEnabled. A setting that
is not in the list keeps its state. Each change is recorded in the activity log.
Returns all settings.



## OpenAPI

````yaml /api-reference/openapi.json put /api/v1/templates/transactional-email-settings
openapi: 3.0.0
info:
  title: Outseta API
  description: >-
    Outseta REST API. See the [API
    overview](https://docs.outseta.com/api-reference/overview) for
    authentication, field selection, pagination, filtering, errors, rate limits
    and webhooks.
  version: v1
servers:
  - url: https://{subdomain}.outseta.com
    description: Your Outseta account
    variables:
      subdomain:
        default: your-subdomain
        description: >-
          Your Outseta account subdomain — the part before ".outseta.com" in
          your admin URL.
security: []
paths:
  /api/v1/templates/transactional-email-settings:
    put:
      tags:
        - Template
      summary: Turns transactional emails on or off.
      description: >-
        Send an object with a Settings list. Each item has Key and IsEnabled. A
        setting that

        is not in the list keeps its state. Each change is recorded in the
        activity log.

        Returns all settings.
      operationId: Template_UpdateTransactionalEmailSettings
      requestBody:
        x-name: request
        content:
          application/json:
            schema:
              nullable: true
              oneOf:
                - type: object
                  additionalProperties: false
                  properties:
                    Settings:
                      type: array
                      nullable: true
                      items:
                        $ref: '#/components/schemas/TransactionalEmailSettingUpdate'
                  title: TransactionalEmailSettingUpdateRequest
        x-position: 1
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  metadata:
                    limit: 0
                    offset: 0
                    total: 0
                  items:
                    - Key: string
                      Name: string
                      SentWhen: string
                      TemplateSystemNames: []
                      IsEnabled: false
                properties:
                  metadata:
                    $ref: '#/components/schemas/CollectionMetadata'
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/TransactionalEmailSetting'
        '401':
          description: Unauthorized
      security:
        - Bearer: []
        - ApiKey: []
components:
  schemas:
    TransactionalEmailSettingUpdate:
      type: object
      additionalProperties: false
      properties:
        Key:
          type: string
          nullable: true
        IsEnabled:
          type: boolean
    CollectionMetadata:
      type: object
      properties:
        limit:
          type: integer
        offset:
          type: integer
        total:
          type: integer
    TransactionalEmailSetting:
      type: object
      additionalProperties: false
      properties:
        Key:
          type: string
          nullable: true
        Name:
          type: string
          nullable: true
        SentWhen:
          type: string
          nullable: true
        TemplateSystemNames:
          type: array
          nullable: true
          items:
            type: string
        IsEnabled:
          type: boolean
  securitySchemes:
    Bearer:
      type: http
      description: Enter your access token (OAuth / JWT).
      scheme: bearer
      bearerFormat: JWT
    ApiKey:
      type: apiKey
      description: 'Enter: Outseta {api_key}:{api_secret}'
      name: Authorization
      in: header

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.