curl --request POST \
--url http://localhost:3000/api/v1/tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"description": "<string>",
"assignTo": "<string>",
"draft": true,
"expectations": [
null
],
"expectedOutcomes": [
{
"type": "file",
"label": "<string>",
"description": "<string>",
"path": "<string>",
"mimeType": "<string>",
"required": true,
"tags": [
"<string>"
]
}
],
"dependsOn": [
"<string>"
],
"group": "<string>",
"maxDuration": 1,
"retryPolicy": {
"escalateAfter": 1,
"fallbackAgent": "<string>",
"escalateModel": "<string>"
},
"notifications": {
"rules": [
{
"id": "<string>",
"name": "<string>",
"events": [
"<string>"
],
"channels": [
"<string>"
],
"condition": null,
"severity": "info",
"template": "<string>",
"cooldownMs": 1,
"includeOutcomes": true,
"outcomeFilter": [
"file"
],
"maxAttachmentSize": 1
}
],
"inherit": true
},
"sideEffects": true
}
'{
"ok": true,
"data": null
}curl --request POST \
--url http://localhost:3000/api/v1/tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"description": "<string>",
"assignTo": "<string>",
"draft": true,
"expectations": [
null
],
"expectedOutcomes": [
{
"type": "file",
"label": "<string>",
"description": "<string>",
"path": "<string>",
"mimeType": "<string>",
"required": true,
"tags": [
"<string>"
]
}
],
"dependsOn": [
"<string>"
],
"group": "<string>",
"maxDuration": 1,
"retryPolicy": {
"escalateAfter": 1,
"fallbackAgent": "<string>",
"escalateModel": "<string>"
},
"notifications": {
"rules": [
{
"id": "<string>",
"name": "<string>",
"events": [
"<string>"
],
"channels": [
"<string>"
],
"condition": null,
"severity": "info",
"template": "<string>",
"cooldownMs": 1,
"includeOutcomes": true,
"outcomeFilter": [
"file"
],
"maxAttachmentSize": 1
}
],
"inherit": true
},
"sideEffects": true
}
'{
"ok": true,
"data": null
}API key passed as a Bearer token. Configure via the apiKeys field in polpo.json or the POLPO_API_KEY environment variable.
111Show child attributes
x > 0Show child attributes
Show child attributes