Skip to main content
PATCH
/
api
/
v1
/
tasks
/
{taskId}
Update task
curl --request PATCH \
  --url http://localhost:3000/api/v1/tasks/{taskId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "description": "<string>",
  "assignTo": "<string>",
  "status": "draft",
  "expectations": [
    null
  ],
  "retries": 1,
  "maxRetries": 1,
  "sideEffects": true
}
'
{
  "ok": true,
  "data": null
}

Authorizations

Authorization
string
header
required

API key passed as a Bearer token. Configure via the apiKeys field in polpo.json or the POLPO_API_KEY environment variable.

Path Parameters

taskId
string
required

Body

application/json
description
string
Minimum string length: 1
assignTo
string
Minimum string length: 1
status
enum<string>
Available options:
draft,
pending,
awaiting_approval,
assigned,
in_progress,
review,
done,
failed
expectations
null[]
retries
integer
Required range: x >= 0
maxRetries
integer
Required range: x >= 0
sideEffects
boolean

Response

Task updated

ok
boolean
required
data
unknown