Skip to main content
PATCH
/
v0.1
/
tasks
/
{id}
Edit Task with Instruction
curl --request PATCH \
  --url https://api.promptloop.com/v0.1/tasks/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "instruction": "Add a field for the company founding year"
}
'
{
  "task_id": "abc123-def456-...",
  "version": 2,
  "message": "Task updated successfully"
}

Authorizations

x-api-key
string
header
required

Path Parameters

id
string
required

Body

application/json
instruction
string
required

Natural language instruction for how to modify the task

Example:

"Add a field for the company founding year"

Response

Successfully edited task

task_id
string
required

The ID of the edited task

Example:

"abc123-def456-..."

version
number
required

The new version number

Example:

2

message
string
required

Status message

Example:

"Task updated successfully"