From cbfdd379e746e6d9c4406a7362199a20a2e591f0 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 9 Jul 2026 10:19:18 +0000 Subject: [PATCH] docs(api): document /jobs/claim-sim as GET in API.md Fix documentation drift where API.md showed claim-sim as a POST request with a JSON body. The actual implementation in api/app/api/jobs/claim-sim/route.ts uses a GET request with query parameters (workerId and workerName). --- API.md | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/API.md b/API.md index cf6c22b4..21361013 100644 --- a/API.md +++ b/API.md @@ -168,19 +168,14 @@ Deletes multiple jobs (max 50) and their artifacts. ### Claim Next Simulation (Worker) -`POST /jobs/claim-sim` +`GET /jobs/claim-sim` Atomically claims the next PENDING simulation for a worker. **Auth:** Worker auth required. -**Body:** - -```json -{ - "workerId": "worker-1", - "workerName": "MyWorker" -} -``` +**Query params:** +- `workerId` — stable identifier for the worker +- `workerName` — display name for the worker **Response:**