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

# Update custom data configuration

Updates the custom data settings. The template is validated for security (no includes, imports, or macros allowed) and HTML safety. Setting a new endpoint automatically disables the panel until template validation passes.


## OpenAPI

````yaml https://api.getfernand.com/openapi.json patch /organization/custom-data
openapi: 3.0.3
info:
  title: Fernand API Documentation
  version: '3.0'
  description: This is the documentation for the [Fernand](https://getfernand.com) API.
  termsOfService: https://getfernand.com/terms
  contact:
    name: Fernand Support
    url: https://getfernand.com
    email: support@getfernand.com
  x-logo:
    url: https://app.getfernand.com/images/favicon/icon_128.png
servers:
  - url: https://api.getfernand.com
    description: ''
    x-last-modified: 1764750693905
security:
  - apiKeyHeader: []
externalDocs:
  description: You can access our documentation online by visiting https://api.fernand.help
  url: https://api.fernand.help
paths:
  /organization/custom-data:
    patch:
      tags:
        - Custom Data
      summary: Update custom data configuration
      description: >-
        Updates the custom data settings. The template is validated for security
        (no includes, imports, or macros allowed) and HTML safety. Setting a new
        endpoint automatically disables the panel until template validation
        passes.
      operationId: updateCustomDataConfiguration
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                endpoint:
                  type: string
                  format: uri
                  maxLength: 250
                  description: API endpoint URL (must use HTTPS in production).
                  example: https://api.piedpiper.com/customer-data
                headers:
                  type: object
                  additionalProperties:
                    type: string
                  description: Custom HTTP headers (max 4096 chars when serialized).
                  example:
                    Authorization: Bearer token123
                    X-API-Key: key456
                template:
                  type: string
                  maxLength: 25000
                  description: >-
                    Jinja2 template for rendering (set to empty string to
                    clear).
                  example: >-
                    <div class='customer'><h2>{{ customer.name }}</h2><p>{{
                    customer.email }}</p></div>
                test_email:
                  type: string
                  format: email
                  description: >-
                    Test email for template validation (set to empty string to
                    clear).
                  example: test@customer.com
      responses:
        '200':
          description: Custom data configuration updated successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  endpoint:
                    type: string
                    format: uri
                    example: https://api.piedpiper.com/customer-data
                  headers:
                    type: object
                    additionalProperties:
                      type: string
                    example:
                      Authorization: Bearer token123
                  template:
                    type: string
                    example: <div>{{ customer.name }}</div>
                  test_email:
                    type: string
                    format: email
                    example: test@customer.com
                  is_enabled:
                    type: boolean
                    example: true
        '400':
          description: Invalid input or template validation error.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
components:
  securitySchemes:
    apiKeyHeader:
      type: apiKey
      description: >-
        Authenticate your account by including your secret key in API requests.

        You can manage your API keys in the
        [Dashboard](https://app.getfernand.com/).


        Authentication to the API is performed by using the HTTP Header
        X-API-Key.
      name: X-API-Key
      in: header
      x-last-modified: 1764750344730

````