Skip to main content
PATCH
/
api
/
tasks
/
{id}
Update a task
curl --request PATCH \
  --url https://app.solya.app/api/tasks/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "assigneeId": "550e8400-e29b-41d4-a716-446655440030",
  "status": "DONE"
}
'
{
  "assigneeId": "550e8400-e29b-41d4-a716-446655440030",
  "category": "APPROVAL",
  "createdAt": "2026-06-01T08:00:00.000Z",
  "domain": null,
  "dueDate": "2026-07-01T00:00:00.000Z",
  "evidence": null,
  "id": "550e8400-e29b-41d4-a716-446655440001",
  "kind": null,
  "organizationId": "550e8400-e29b-41d4-a716-446655440010",
  "payload": null,
  "priority": "HIGH",
  "shopId": null,
  "sourceId": "550e8400-e29b-41d4-a716-446655440020",
  "sourceType": "PLAN_APPROVAL",
  "status": "DONE",
  "updatedAt": "2026-06-19T10:00:00.000Z",
  "variantId": null
}

Authorizations

Authorization
string
header
required

User session token issued by NextAuth. For human users accessing Solya via the web application.

Path Parameters

id
string
required

Unique identifier of the resource (UUID)

Body

application/json
assigneeId
string | null

User ID to assign this task to, or null to clear the assignment.

priority
enum<string>

Update the task priority. Allowed values: LOW, MEDIUM, HIGH, URGENT.

Available options:
LOW,
MEDIUM,
HIGH,
URGENT
status
enum<string>

Transition the task to this status. Allowed values: OPEN, IN_PROGRESS, DONE, DISMISSED.

Available options:
OPEN,
IN_PROGRESS,
DONE,
DISMISSED

Response

Successful response

data
object
required
success
enum<boolean>
required
Available options:
true