---
title: "Start a workflow execution as a new session or a new attempt of an existing session"
method: PUT
path: "/api/attempts"
tags: ["Attempt"]
---

# Start a workflow execution as a new session or a new attempt of an existing session

`PUT /api/attempts`

## Request body

- RestSessionAttemptRequest
  - `sessionTime` integer
  - `workflowId` Id
  - `resume` Resume
    - `attemptId` Id
    - `mode` 'FROM' | 'FAILED'
  - `retryAttemptName` string
  - `params` Config
    - `empty` boolean
    - `factory` ConfigFactory
    - `keys` string[]

## Response `default`

successful operation

---

[API](https://skmtc.dev/treasure-data/apis/digdag.md) · [All operations](https://skmtc.dev/treasure-data/apis/digdag/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/treasure-data/digdag/revisions/f20fc79e6266/schema)
