Skip to main content
PATCH
Update Draft Task

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

task_id
string<uuid>
required

Body

application/json

Partial update for a draft task. All fields optional.

Note on description: NO min_length constraint here. Drafts are incomplete-by-design — the autosave fires on every keystroke, so requiring DESCRIPTION_MIN_LENGTH chars mid-typing would reject every interim save. The DESCRIPTION_MIN_LENGTH-char content requirement (typed OR transcript) is enforced at PUBLISH time by publish_draft_task in api/routes/tasks.py — the same rule TaskCreate's _require_content_or_synthesize_from_transcript enforces.

title
string | null
Maximum string length: 200
description
string | null
Maximum string length: 5000
category
string | null
task_type
string | null
requirements
Requirements · object | null
budget_usd
number | null
Required range: 3 <= x <= 300
experimentation
number | null
Required range: 0 <= x <= 1
brand_kit_id
string<uuid> | null

Response

Successful Response

id
string<uuid>
required
user_id
string<uuid>
required
title
string
required
description
string
required
category
string
required
task_type
string
required
requirements
Requirements · object
required
budget_usd
number
required
compute_budget
number | null
required
status
string
required
experimentation
number
required
created_at
string<date-time>
required
expires_at
string<date-time>
required
attachments
string[] | null
brand_kit_id
string<uuid> | null
prototype_tier
integer | null