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

# UpdateEventPipelineAPI mirrors erdo_update_event_pipeline. Fields merge over


> the stored pipeline — an omitted field keeps its current value — so a caller can edit just the steps or the state without re-sending the rest.




## OpenAPI

````yaml /api/openapi.json put /v1/event-pipelines/{pipelineSlug}
openapi: 3.0.0
info:
  title: Erdo API
  description: >-
    Erdo's REST API: query and write datasets, run agents, manage threads,
    integrations, pages, evals, workstreams, and experiments. Authenticate with
    a Bearer API key (erdo_api_...) or scoped token (erdo_token_...).
  version: '2026-07-25'
servers:
  - url: https://api.erdo.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/event-pipelines/{pipelineSlug}:
    put:
      summary: >
        UpdateEventPipelineAPI mirrors erdo_update_event_pipeline. Fields merge
        over
      description: >
        the stored pipeline — an omitted field keeps its current value — so a
        caller can edit just the steps or the state without re-sending the rest.
      operationId: PUT:mcp.UpdateEventPipelineAPI
      parameters:
        - allowEmptyValue: true
          explode: false
          in: path
          name: pipelineSlug
          required: true
          schema:
            type: string
          style: simple
      requestBody:
        content:
          application/json:
            schema:
              properties:
                description:
                  type: string
                name:
                  type: string
                pipeline:
                  type: object
                purpose:
                  type: string
                request_schema:
                  type: object
                state:
                  type: string
                transform_js:
                  type: string
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  auth_config:
                    description: >
                      is stripped by toPipeline. The secret is surfaced only
                      once, at create and rotate, via the Secret field below.
                    title: >
                      AuthConfig is redacted on read paths — the plaintext
                      verification secret
                    type: object
                  auth_mode:
                    type: string
                  created_at:
                    format: date-time
                    type: string
                  created_by_user_id:
                    format: uuid
                    type: string
                  created_datasets:
                    description: >
                      auto-created because they didn't exist yet. Populated only
                      on the create and update responses (like Secret), empty on
                      list/get — the creation must be visible to the caller, not
                      silent.
                    items:
                      type: string
                    title: >
                      CreatedDatasets lists the dataset.write slug targets that
                      pipeline setup
                    type: array
                  created_from_thread_id:
                    format: uuid
                    type: string
                  description:
                    type: string
                  endpoint_url:
                    type: string
                  id:
                    format: uuid
                    type: string
                  last_updated_from_thread_id:
                    format: uuid
                    type: string
                  name:
                    type: string
                  organization_id:
                    format: uuid
                    type: string
                  owner_artifact_id:
                    format: uuid
                    type: string
                  pipeline:
                    type: object
                  purpose:
                    description: >
                      user/agent-authored ones: "custom" (the default) or
                      "page\_events" (the per-page first-party analytics
                      pipeline).
                    title: >
                      Purpose distinguishes auto-provisioned infrastructure
                      pipelines from
                    type: string
                  request_schema:
                    type: object
                  secret:
                    description: >
                      create and rotate responses (empty on list/get). It is a
                      bearer-equivalent credential, so it is encore:"sensitive"
                      (kept out of request traces).
                    title: >
                      Secret is the plaintext inbound verification secret,
                      populated ONLY on the
                    type: string
                  slug:
                    type: string
                  source_kind:
                    type: string
                  state:
                    type: string
                  transform_js:
                    type: string
                  updated_at:
                    format: date-time
                    type: string
                  write_target_datasets:
                    description: >
                      to (its dataset.write actions) — a convenience view of
                      where the pipeline's output lands, parsed from Pipeline.
                      Generic config, not tied to any use case.
                    items:
                      type: string
                    title: >
                      WriteTargetDatasets lists the dataset ids/slugs this
                      pipeline persists rows
                    type: array
                type: object
          description: Success response
        default:
          $ref: '#/components/responses/APIError'
components:
  responses:
    APIError:
      content:
        application/json:
          schema:
            externalDocs:
              url: https://pkg.go.dev/encore.dev/beta/errs#Error
            properties:
              code:
                description: Error code
                example: not_found
                externalDocs:
                  url: https://pkg.go.dev/encore.dev/beta/errs#ErrCode
                type: string
              details:
                description: Error details
                type: object
              message:
                description: Error message
                type: string
            title: APIError
            type: object
      description: Error response
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An Erdo API key (erdo_api_...) or scoped token (erdo_token_...).

````