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

# Edit one step

> Replaces one step's config, and on a pipeline step its label, in the draft when If-Match names that step's config_hash. Other steps keep their config. Requires engines:edit and a key bound to the engine.



## OpenAPI

````yaml /openapi.generated.json patch /engines/{engineSlug}/steps/{step}
openapi: 3.1.0
info:
  description: >-
    Public API reference. Generated from apps/engine/openapi.yaml by make
    docs-openapi-write. Do not edit.
  title: Nexio platform API
  version: '1'
servers:
  - url: https://api.usenexio.com
security: []
tags:
  - name: Access
  - name: Catalog
  - name: Conversations
  - name: Documents
  - name: Engines
  - name: Events
  - name: Feedback
  - name: Graph
  - name: Records
  - name: Roadmap
  - name: Runs
  - name: Webhooks
  - name: accounts
  - name: actions
  - name: activities
  - name: activity-feed
  - name: attachments
  - name: audit
  - name: benefit-plans
  - name: billing-transactions
  - name: carrier_documents
  - name: certificate-holders
  - name: certificate_drafts
  - name: certificates
  - name: change_feed
  - name: claims
  - name: classes
  - name: codes
  - name: commission_facts
  - name: connections
  - name: contacts
  - name: contingencies
  - name: conversations
  - name: customer
  - name: customer_contacts
  - name: deals
  - name: dependents
  - name: document_extractions
  - name: documents
  - name: drivers
  - name: eforms
  - name: employees
  - name: events
  - name: feature_requests
  - name: form-templates
  - name: invoices
  - name: leads
  - name: line_schedules_other
  - name: loss_history
  - name: machines
  - name: markets
  - name: motor-carriers
  - name: notes
  - name: opportunities
  - name: opportunity-signals
  - name: pages
  - name: personal_lines_detail
  - name: placement_choices
  - name: placement_feedback
  - name: placements
  - name: policies
  - name: policy_parties
  - name: policy_personnel
  - name: policy_transactions
  - name: premium_rows
  - name: procedures
  - name: proposals
  - name: quote_comparisons
  - name: quotes
  - name: records
  - name: register-views
  - name: renewal-entries
  - name: risk_review_choices
  - name: rollups
  - name: seats
  - name: sec-filings
  - name: service_agreements
  - name: submissions
  - name: suspenses
  - name: tasks
  - name: umbrella_underlying
  - name: underwriting_questions
  - name: uploaded_documents
  - name: vehicles
  - name: workflows
paths:
  /engines/{engineSlug}/steps/{step}:
    patch:
      tags:
        - Engines
      summary: Edit one step
      description: >-
        Replaces one step's config, and on a pipeline step its label, in the
        draft when If-Match names that step's config_hash. Other steps keep
        their config. Requires engines:edit and a key bound to the engine.
      operationId: patchEngineStep
      parameters:
        - description: The engine's slug, unique in the caller's org.
          in: path
          name: engineSlug
          required: true
          schema:
            description: The engine's slug, unique in the caller's org.
            type: string
        - description: >-
            A step id from GET /engines/{engineSlug}/steps; main on an Engine
            without steps.
          in: path
          name: step
          required: true
          schema:
            description: >-
              A step id from GET /engines/{engineSlug}/steps; main on an Engine
              without steps.
            type: string
        - description: >-
            The step's config_hash from GET /engines/{engineSlug}/steps. Missing
            answers 428; stale answers 412 draft_changed.
          in: header
          name: If-Match
          schema:
            description: >-
              The step's config_hash from GET /engines/{engineSlug}/steps.
              Missing answers 428; stale answers 412 draft_changed.
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchStepRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PatchStepResponse'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Not Found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Conflict
        '412':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Precondition Failed
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Unprocessable Entity
        '428':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Precondition Required
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Too Many Requests
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Internal Server Error
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Service Unavailable
      security:
        - bearer: []
components:
  schemas:
    PatchStepRequest:
      additionalProperties: false
      properties:
        config:
          description: >-
            The step's whole config, checked against config_schema from GET
            /engines/{engineSlug}/steps.
        label:
          description: A new display label, 1 to 60 characters. Pipeline steps only.
          type: string
      required:
        - config
      type: object
    PatchStepResponse:
      additionalProperties: false
      properties:
        config_hash:
          description: The draft hash after the write.
          type: string
        engine_slug:
          type: string
        step:
          $ref: '#/components/schemas/EngineStep'
      required:
        - engine_slug
        - config_hash
        - step
      type: object
    ErrorEnvelope:
      additionalProperties: false
      properties:
        code:
          description: The stable machine-readable error code. One meaning forever.
          type: string
        details:
          description: Structured detail for the code.
        message:
          description: A human-readable sentence about this occurrence.
          type: string
      required:
        - code
        - message
      type: object
    EngineStep:
      additionalProperties: false
      properties:
        config: {}
        config_hash:
          description: >-
            The hash of this step's config. Send it as If-Match on PATCH
            /engines/{engineSlug}/steps/{step}.
          type: string
        config_schema:
          description: JSON Schema 2020-12 of the step's config, or null.
        failures_7d:
          description: Of runs_7d, the Runs whose status is FAILED.
          format: int64
          type: integer
        id:
          description: >-
            The step id, unique in the Engine. An Engine with no pipeline has
            the one step main.
          type: string
        kind:
          description: The step kind; engine for the implicit main step.
          type: string
        label:
          type: string
        last_run_at:
          description: >-
            When the step's newest Run was created, or null when it has never
            run.
          format: date-time
          type:
            - string
            - 'null'
        request_schema:
          description: JSON Schema 2020-12 of a run request for this step, or null.
        response_schema:
          description: JSON Schema 2020-12 of a run output for this step, or null.
        runs_7d:
          description: >-
            Runs of this step created in the last 7 days, in every environment
            of the org.
          format: int64
          type: integer
        use:
          description: The implementation the step runs; the engine type for main.
          type: string
      required:
        - id
        - label
        - kind
        - config_hash
        - config
        - config_schema
        - request_schema
        - response_schema
        - runs_7d
        - failures_7d
        - last_run_at
      type: object
  securitySchemes:
    bearer:
      description: The org's platform API key.
      scheme: bearer
      type: http

````

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