Codevisor Docs
Api reference

Wait for a background execute job to finish

POST/v1/jobs/{jobId}/wait

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

jobId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

timeoutMs?number||||null

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/jobs/string/wait" \  -H "Content-Type: application/json" \  -d '{}'
{  "job": {    "jobId": "string",    "sessionId": "string",    "description": "string",    "state": "running",    "startedAt": "string",    "finishedAt": "string",    "elapsedMs": 0,    "running": [      "string"    ],    "progress": "string",    "logs": [      "string"    ],    "outputPath": "string",    "result": null,    "error": "string"  },  "timedOut": true}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}