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

# Re-run rows

> Runs the workflow again on rows of its results table, reusing each row's original trigger data. Rows already running are skipped; if all are running you get 409 `ROWS_ALREADY_RUNNING`. The credit check covers the whole batch up front. Needs edit access.




## OpenAPI

````yaml /openapi/automations.yaml post /workflows/{workflowId}/rerun
openapi: 3.1.0
info:
  title: Connie Automations API
  version: 1.0.0
  description: >
    Endpoints the Connie web app uses for automations. They authenticate with
    your signed-in browser session — see
    https://docs.connie.ai/api-reference/authentication. These are the app's own
    endpoints and can change when the app changes.
servers:
  - url: https://connie.ai/api
security:
  - sessionCookie: []
tags:
  - name: Workflows
    description: List, create, read, update and delete workflows.
  - name: Runs
    description: >-
      Start, retry and stop workflow runs, switch a workflow Live, and read run
      counts.
  - name: Triggers
    description: A workflow's triggers and its schedule settings.
  - name: Templates
    description: The template gallery and copying a template into a workspace.
  - name: Agents
    description: Agents on the Agents page.
paths:
  /workflows/{workflowId}/rerun:
    post:
      tags:
        - Runs
      summary: Re-run rows
      description: >
        Runs the workflow again on rows of its results table, reusing each row's
        original trigger data. Rows already running are skipped; if all are
        running you get 409 `ROWS_ALREADY_RUNNING`. The credit check covers the
        whole batch up front. Needs edit access.
      operationId: rerunWorkflowRows
      parameters:
        - $ref: '#/components/parameters/workflowId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - rowIds
              properties:
                rowIds:
                  type: array
                  minItems: 1
                  maxItems: 500
                  items:
                    type: string
                    format: uuid
                runOnlyOnEmptyCells:
                  type: boolean
                  default: false
                  description: Only fill cells that are still empty.
      responses:
        '200':
          description: Runs started.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RowRunResult'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/InsufficientCredits'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: The workflow, its trigger, or the rows weren't found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            Every row is already running, or every row's source record was
            deleted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RowRunResult'
components:
  parameters:
    workflowId:
      name: workflowId
      in: path
      required: true
      description: >-
        The workflow's id, as in
        `https://connie.ai/<workspace-id>/workflows/<workflow-id>`.
      schema:
        type: string
        format: uuid
  schemas:
    RowRunResult:
      type: object
      properties:
        success:
          type: boolean
          description: True when at least one row started.
        started:
          type: integer
        failed:
          type: integer
        skippedRunning:
          type: integer
          description: Rows skipped because they were already running.
        runningRowIds:
          type: array
          items:
            type: string
        skippedDeletedSource:
          type: integer
          description: Rows skipped because their source record was deleted.
        code:
          type: string
          description: '`ROWS_ALREADY_RUNNING` on a 409 where every row was already running.'
        message:
          type: string
          description: Which rows were skipped and that they must be stopped first.
        error:
          type: string
    Error:
      type: object
      properties:
        error:
          type: string
          description: Human-readable message.
        code:
          type: string
          description: Machine-readable code, when there is one.
        details:
          description: Extra detail, for example the invalid fields.
      required:
        - error
  responses:
    BadRequest:
      description: The request is invalid (code `VALIDATION_ERROR`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: >-
        Not signed in (`UNAUTHORIZED`), or the session cookie has expired
        (`SESSION_EXPIRED`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InsufficientCredits:
      description: Not enough credits to run (`INSUFFICIENT_CREDITS`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: >-
        You aren't a member of the workspace, or don't have the access this
        needs.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    sessionCookie:
      type: apiKey
      in: header
      name: Cookie
      description: >-
        The full Cookie header copied from a signed-in connie.ai browser
        request. See the Authentication page.

````

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