cURL
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" }
Edits an existing task with a natural language instruction. Creates a new version of the task.
Natural language instruction for how to modify the task
"Add a field for the company founding year"
Successfully edited task
The ID of the edited task
"abc123-def456-..."
The new version number
2
Status message
"Task updated successfully"