Skip to main content
PATCH
/
projects
/
{id}
/
tasks
/
{taskId}
Update a task
curl --request PATCH \
  --url https://api.corebill.io/v1/projects/{id}/tasks/{taskId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "description": "<string>",
  "assigned_to": "<string>",
  "parent_task_id": "<string>",
  "depends_on": [
    "<string>"
  ],
  "status": "completed",
  "priority": "low",
  "estimated_hours": 123,
  "start_date": "2023-12-25",
  "due_date": "2023-12-25",
  "is_billable": true,
  "hourly_rate": 123,
  "position": 123,
  "tags": [
    "<string>"
  ],
  "metadata": {}
}
'
{
  "data": {
    "id": "tsk_a1b2c3d4e5f6",
    "public_id": "TSK-2025-000001",
    "project_id": "pro_a1b2c3d4e5f6",
    "parent_task_id": "<string>",
    "depends_on": [
      "<string>"
    ],
    "assigned_to": "<string>",
    "created_by": "<string>",
    "title": "Design homepage mockup",
    "description": "<string>",
    "status": "in_progress",
    "priority": "high",
    "estimated_hours": 8,
    "start_date": "2023-12-25",
    "due_date": "2023-12-25",
    "completed_at": "2023-11-07T05:31:56Z",
    "is_billable": true,
    "hourly_rate": 75,
    "position": 0,
    "tags": [
      "design",
      "frontend"
    ],
    "metadata": {},
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

API key authentication. Generate keys from the Corebill dashboard under the Developers section.

Example: Authorization: Bearer sk_live_abc123def456

Path Parameters

id
string
required

The project ID

taskId
string
required

Task ID

Example:

"tsk_a1b2c3d4e5f6"

Query Parameters

company_id
string
required

The company ID to scope the request to

Body

application/json

All fields are optional.

title
string
description
string
assigned_to
string | null
parent_task_id
string
depends_on
string[]
status
enum<string>
Available options:
backlog,
todo,
in_progress,
in_review,
completed,
cancelled
Example:

"completed"

priority
enum<string>
Available options:
low,
medium,
high,
urgent
estimated_hours
number
start_date
string<date>
due_date
string<date>
is_billable
boolean
hourly_rate
number<double>
position
integer
tags
string[]
metadata
object

Response

Updated task

data
object
required

Task object