Skip to main content
POST
/
api
/
v1
/
tasks
Criar tarefa
curl --request POST \
  --url https://app.switchkanban.com.br/api/v1/tasks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "task": {
    "name": "Implementar autenticação",
    "project_id": 1,
    "creator_by_id": 1,
    "description": "Implementar sistema de autenticação com JWT",
    "status_id": 1,
    "sprint_id": 1,
    "project_module_id": 1,
    "priority": "Alta",
    "estimate": 8,
    "assignee_ids": [
      1,
      2
    ]
  }
}
'
{
  "data": {
    "id": 123,
    "name": "<string>",
    "description": "<string>",
    "priority": "<string>",
    "created_at": "<string>",
    "updated_at": "<string>",
    "status_id": 123,
    "sprint_id": 123,
    "position": 123,
    "created_by_id": 123,
    "total_time_seconds": 123,
    "slug": "<string>",
    "estimate": 123,
    "tags": [
      {
        "id": 123,
        "color": "<string>",
        "bgColor": "<string>",
        "label": "<string>"
      }
    ],
    "assignees": [
      {
        "id": "<string>",
        "name": "<string>",
        "job_title": "<string>",
        "email": "<string>",
        "cost_cents": "<string>",
        "capacity": "<string>",
        "removed_at": "<string>",
        "role": "<string>",
        "status": "<string>",
        "avatar_color_id": "<string>"
      }
    ],
    "project": {
      "id": 123,
      "name": "<string>",
      "color": "<string>",
      "client_name": "<string>",
      "has_kanban": true,
      "scope": "fixed",
      "cost_cents": 123,
      "start_period": "<string>",
      "end_period": "<string>",
      "number_of_hours_per_sprint": 123,
      "number_of_sprints": 123,
      "discarded_at": "<string>"
    },
    "project_module": {
      "id": 123,
      "name": "<string>",
      "project_id": 123,
      "progress": 123,
      "order": 123,
      "description": "<string>",
      "start": "<string>",
      "end": "<string>",
      "dependencies": [
        123
      ],
      "custom_class": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

API token no formato Bearer. Exemplo: Bearer YOUR_API_TOKEN

Body

application/json
task
object
required

Response

Task created successfully

data
object
required