> ## Documentation index
> Fetch the complete documentation index at: https://upstash.com/docs/llms.txt
> Ask it with GET https://upstash.com/docs/ask?q=<keywords or question>. Short keywords rank best.
> Use these to discover all available pages before exploring further.
> Feature requests: https://upstash.com/docs/common/help/feature-requests.md lists what users asked for and how to vote for a request or add one.
> Page rating: `GET https://upstash.com/docs/feedback?path=/docs/workflow/api-reference/dlq/restart/restart-list-of-ids&helpful={true|false}&comment={comment}` records whether this page helped. The `comment` (URL-encoded, at most 500 characters) says what helped, or what was missing or wrong; a `helpful=false` rating needs it. It is anonymous and needs no key. Comments hold no code, secrets or personal data.

# Multiple IDs

> Restart specific failed Workflow runs by their DLQ IDs.

`POST /v2/workflows/dlq/restart/multi`

## OpenAPI

````yaml workflow/openapi.yaml post /v2/workflows/dlq/restart/multi
openapi: 3.1.0
info:
  title: Upstash Workflow REST API
  description: >
    Upstash Workflow is a serverless workflow orchestration service built on top
    of Upstash QStash and Upstash Redis.
  version: 2.0.0
  contact:
    name: Upstash
    url: https://upstash.com
servers:
  - url: https://qstash-{region}.upstash.io
    description: Regional
    variables:
      region:
        default: eu-central-1
        enum:
          - us-east-1
          - eu-central-1
security:
  - bearerAuth: []
  - bearerAuthQuery: []
paths:
  /v2/workflows/dlq/restart/multi:
    post:
      tags:
        - DLQ
      summary: Restart Multiple IDs
      description: Restart the supplied failed Workflow runs from their first steps.
        Provide at least one `dlqId` in the JSON body or, if the body is empty,
        in the query string. A JSON body takes precedence over query parameters.
        Non-Workflow DLQ entries are skipped.
      x-mint:
        href: /workflow/api-reference/dlq/restart/restart-list-of-ids
        metadata:
          title: Multiple IDs
          sidebarTitle: Multiple IDs
          description: Restart specific failed Workflow runs by their DLQ IDs.
      parameters:
        - $ref: "#/components/parameters/DLQMultipleIdsQuery"
        - $ref: "#/components/parameters/DLQOverrideRetries"
        - $ref: "#/components/parameters/DLQOverrideDelay"
        - $ref: "#/components/parameters/DLQOverrideRetryDelay"
        - $ref: "#/components/parameters/DLQOverrideFlowControlKey"
        - $ref: "#/components/parameters/DLQOverrideFlowControlValue"
        - $ref: "#/components/parameters/DLQOverrideLabel"
        - $ref: "#/components/parameters/DLQOverrideFailureCallback"
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DLQMultipleIdsRequest"
      responses:
        "200":
          description: The specified failed Workflow runs were restarted.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DLQMultipleWorkflowResponse"
        "400":
          description: The ID list is empty or contains an invalid DLQ ID.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: A DLQ entry was not found.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: QStash authentication token
    bearerAuthQuery:
      type: apiKey
      in: query
      name: qstash_token
      description: QStash authentication token passed as a query parameter
  schemas:
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Error message
    DLQMultipleIdsRequest:
      type: object
      required:
        - dlqIds
      properties:
        dlqIds:
          type: array
          minItems: 1
          items:
            type: string
          description: DLQ IDs to process.
      example:
        dlqIds:
          - dlq_id_1
          - dlq_id_2
    DLQMultipleWorkflowResponse:
      type: object
      required:
        - workflowRuns
      properties:
        workflowRuns:
          type: array
          description: Results for the Workflow DLQ entries in the supplied ID list, in
            request order.
          items:
            type: object
            required:
              - workflowRunId
              - workflowCreatedAt
            properties:
              workflowRunId:
                type: string
                description: ID of the new workflow run.
              workflowCreatedAt:
                type: integer
                format: int64
                description: Creation time of the new run in Unix milliseconds.
              deduplicated:
                type: boolean
                description: Whether the workflow run was deduplicated.
  parameters:
    DLQMultipleIdsQuery:
      name: dlqIds
      in: query
      schema:
        type: array
        minItems: 1
        items:
          type: string
      style: form
      explode: true
      description: DLQ IDs to process when no JSON body is sent. Repeat this parameter
        or separate IDs with commas.
    DLQOverrideRetries:
      name: Upstash-Retries
      in: header
      schema:
        type: integer
      description: Override the number of retries for the workflow steps.
    DLQOverrideDelay:
      name: Upstash-Delay
      in: header
      schema:
        type: string
      description: Override the delay before executing the workflow. Format is
        `<value><unit>` (for example, `10s` or `5m`).
    DLQOverrideRetryDelay:
      name: Upstash-Retry-Delay
      in: header
      schema:
        type: string
      description: Override the retry delay expression for the workflow steps.
    DLQOverrideFlowControlKey:
      name: Upstash-Flow-Control-Key
      in: header
      schema:
        type: string
      description: Override the flow control key for the workflow.
    DLQOverrideFlowControlValue:
      name: Upstash-Flow-Control-Value
      in: header
      schema:
        type: string
      description: Override the flow control configuration in the format
        `parallelism=<value>, rate=<value>, period=<value>`.
    DLQOverrideLabel:
      name: Upstash-Label
      in: header
      schema:
        type: string
      description: Override the workflow labels. Use a comma-separated list for
        multiple labels, such as `label_1,label_2`.
    DLQOverrideFailureCallback:
      name: Upstash-Failure-Callback
      in: header
      schema:
        type: string
      description: Override the failure callback URL for the workflow.
````
