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

# Create

> Create or update transformation code



## OpenAPI

````yaml POST /transformations/{name}
openapi: 3.1.0
info:
  title: The Neighborhood - OpenAPI
  description: Schema for testing, deploying, and managing distributed pipelines
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://app.indexing.co/dw
security:
  - ApiKeyAuth: []
paths:
  /transformations/{name}:
    post:
      description: Update a transformation
      parameters:
        - name: name
          in: path
          required: true
          schema:
            type: string
      requestBody:
        description: Transformation to save
        content:
          application/json:
            schema:
              type: object
              properties:
                code:
                  type: string
                  examples:
                    - function transform(block) { ... }
          text/javascript:
            schema:
              type: string
              examples:
                - |
                  function transform(block) {
                  ...
                  }
        required: true
      responses:
        '200':
          description: success
          content:
            application/json:
              schema:
                required:
                  - message
                type: object
                properties:
                  message:
                    type: string
        '400':
          description: unexpected error
          content:
            application/json:
              schema:
                required:
                  - error
                type: object
                properties:
                  error:
                    type: string
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY

````