Create task
Create a task on a ticket or project.
POST https://cotlet.dev/api/v1/accelo/againsts/{against_id}/tasks
write Confirm
Creates a task with a title against a ticket or project, and returns it with its status, which starts as Pending until the assignee accepts it. An assignee can be notified about the task. Set a due date and priority from the names Accelo shows. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| against_type enum required | enum | ticket or project. |
| against_id integer required | integer | Ticket or project ID. |
| title string required | string | Task title. |
| description string | string | Task details. |
| assignee_id integer | integer | Staff ID of the assignee. |
| due_date string | string | ISO date. |
| priority string | string | Priority name as shown in Accelo. |
Request
curl -X POST https://cotlet.dev/api/v1/accelo/againsts/1/tasks \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"against_type":"ticket","title":"title"}' result = client.call("accelo", "create_task", {"against_type":"ticket","against_id":1,"title":"title"}) const result = await cotlet.call('accelo', 'create_task', {"against_type":"ticket","against_id":1,"title":"title"}); cotlet call accelo create_task --data '{"against_type":"ticket","against_id":1,"title":"title"}' Example response
{
"task_id": 7712,
"title": "Ship the export fix",
"against": {
"type": "ticket",
"id": 1042
},
"assignee": "Sam Okafor",
"status": "Pending",
"priority": "High",
"date_due": "2026-10-20"
}