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

# Test

> Test transformation code without committing it



## OpenAPI

````yaml POST /transformations/test
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/test:
    post:
      description: Test a transformation without committing it
      parameters:
        - name: network
          in: query
          required: true
          schema:
            type: string
        - name: beat
          in: query
          required: true
          schema:
            type: integer
        - name: filter
          in: query
          description: Optional filter name to test against
          required: false
          schema:
            type: string
        - name: filterKeys
          in: query
          description: >-
            Optional filterKeys to test against. Required if also passing
            `filter`
          required: false
          schema:
            type: array
            items:
              type: string
      requestBody:
        description: Transformation to test
        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: Response from test
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
        '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

````