POST /api/deep-work/projects/{project_id}/resume Bearer

Resume Deep Work Project

Resume a paused Deep Work project and re-dispatch all ready tasks. Tasks whose blockers have been resolved during the pause are included in the next execution wave.

Overview

Resumes a paused Deep Work project. All ready tasks (with no unresolved blockers) are dispatched for execution.

Path Parameters

project_id string

The project ID. Project must be in paused status.

Response

success boolean

Whether the project was resumed.

project object

The updated project with status: "executing".

Terminal window
curl -X POST http://localhost:8000/api/deep-work/projects/PROJECT_ID/resume \
-H "Authorization: Bearer YOUR_TOKEN"
{
"success": true,
"project": {
"id": "a1b2c3d4...",
"status": "executing"
}
}
Request
curl -X POST "http://localhost:8000/api/deep-work/projects/{project_id}/resume" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <token>"
const response = await fetch("http://localhost:8000/api/deep-work/projects/{project_id}/resume", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
},
});

const data = await response.json();
console.log(data);
import requests

response = requests.post(
    "http://localhost:8000/api/deep-work/projects/{project_id}/resume",
    headers={'Content-Type':'application/json','Authorization':'Bearer <token>'},
)

print(response.json())
package main

import (
    "fmt"
    "net/http"
    "io"
)

func main() {
    req, _ := http.NewRequest("POST", "http://localhost:8000/api/deep-work/projects/{project_id}/resume", nil)
    req.Header.Set("Content-Type", "application/json")
    req.Header.Set("Authorization", "Bearer <token>")

    client := &http.Client{}
    resp, _ := client.Do(req)
    defer resp.Body.Close()

    body, _ := io.ReadAll(resp.Body)
    fmt.Println(string(body))
}
Response
Send a request to see the response